@charset "utf-8";

:root {
    --primary: #ff5a1d;
}

/* 리스트 공통  ******************/
.lease-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 150px 0;
}

/* 리스트 아이템  ******************/
.lease-list-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 1280px;
    margin: 0 auto;
}

.lease-list-wrap .car-card {
    flex: 1 1 calc(25% - 20px);
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    position: relative;
    text-align: center;
    box-sizing: border-box;
}

.lease-list-wrap .badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #ff4d00;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: bold;
}

.lease-list-wrap .car-image img {
    width: 100%;
    height: auto;
    margin-bottom: 12px;
}

.lease-list-wrap .car-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
}

.lease-list-wrap .car-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.lease-list-wrap .car-price {
    font-size: 14px;
    color: #333;
    margin-bottom: 16px;
}

.lease-list-wrap .car-price > div:first-child {
    margin-bottom: 2px;
}

.lease-list-wrap .price {
    display: inline-block;
    margin-left: 6px;
    font-weight: bold;
    color: #0066ff;
}

.lease-list-wrap .car-btn {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.lease-list-wrap .car-btn button {
    flex: 1;
    padding: 10px 0;
    font-size: 15px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
}

.lease-list-wrap .btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
}

.lease-list-wrap .btn-outline {
    background: #fff;
    color: #333;
    border: 1px solid #555;
}


/* 리스트 검색  ******************/
.search-bar {
    display: flex;
    align-items: center;
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.search-bar input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: border 0.2s ease;
}

.search-bar input:focus {
    border-color: #2563eb;
}

.search-bar button {
    width: 44px;
    height: 44px;
    margin-left: 10px;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: border-color 0.2s ease;
}

.search-bar button:hover {
    border-color: #2563eb;
}

.search-bar button img {
    width: 20px;
    height: 20px;
}

.filter-buttons .df {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    align-items: flex-end;
    justify-content: flex-end;
}

.filter-btn {
    padding: 10px 18px;
    font-size: 15px;
    font-weight: bold;
    color: #333;
    border: 1px solid #555;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}


.custom-select {
    position: relative;
    display: inline-block;
    font-size: 15px;
}

.select-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1px solid #555;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    width: 160px;
    font-weight: bold;
}

.select-toggle svg {
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.custom-select.open .select-toggle svg {
    transform: rotate(180deg);
}

.select-options {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    width: 100%;
    background: #fff;
    border: 1px solid #555;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    list-style: none;
    padding: 8px 0;
    display: none;
    z-index: 100;
}

.custom-select.open .select-options {
    display: block;
}

.select-options li {
    padding: 10px 16px;
    cursor: pointer;
}

.select-options li:hover {
    background-color: #f5f5f5;
}

/* 리스트 모달  ******************/
/* 전체 스코프 기준 */
.lease-modal-wrap {
    /* 아무것도 안 넣어도 됨 – 기준 스코프 */
}

/* ✅ 상담신청 딤 */
.lease-modal-wrap .lease-modal-dim {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

/* ✅ 상담신청 모달 */
.lease-modal-wrap .lease-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    transform: translate(-50%, -50%);
    z-index: 1000;
    padding: 24px;
    box-sizing: border-box;
}

.lease-modal-wrap .lease-modal-inner {
    position: relative;
}

.lease-modal-wrap .modal-close {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.lease-modal-wrap .modal-close svg {
    width: 20px;
    height: 20px;
    stroke: #333;
}

.lease-modal-wrap .modal-title {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 24px;
}

.lease-modal-wrap .modal-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    font-size: 14px;
}

.lease-modal-wrap .modal-form input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.lease-modal-wrap .car-model {
    padding: 12px;
    background: #f8f8f8;
    border-radius: 6px;
    margin-bottom: 16px;
    font-weight: bold;
    font-size: 15px;
}

.lease-modal-wrap .checkbox-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.lease-modal-wrap .checkbox-wrap label {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lease-modal-wrap .checkbox-text {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
}


.lease-modal-wrap .checkbox-wrap button {
    font-size: 13px;
    border: 1px solid #ccc;
    padding: 4px 10px;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

.lease-modal-wrap .form-group {
    position: relative;
}

.lease-modal-wrap .form-group .tooltip {
    position: absolute;
    font-size: 13px;
    background: #000;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    margin-top: 4px;
    z-index: 10;
}

.lease-modal-wrap .submit-btn {
    background-color: #000;
    color: #fff;
    width: 100%;
    padding: 12px 0;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
}

.lease-modal-wrap .submit-btn.disabled {
    background-color: #ccc;
    color: #fff;
    cursor: not-allowed;
    pointer-events: none;
}

.lease-modal-wrap .submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    color: #fff;
}

/* ✅ 약관 딤 */
.lease-modal-wrap .lease-policy-dim {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1001;
}

/* ✅ 약관 팝업 */
.lease-modal-wrap .lease-policy-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    transform: translate(-50%, -50%);
    z-index: 1002;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.lease-modal-wrap .lease-policy-inner {
    padding: 24px;
    position: relative;
    max-height: 70vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.lease-modal-wrap .policy-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
}

.lease-modal-wrap .policy-close svg {
    width: 20px;
    height: 20px;
    stroke: #333;
}

.lease-modal-wrap .policy-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 16px;
    text-align: center;
}

.lease-modal-wrap .policy-content {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

.lease-modal-wrap .checkbox-wrap input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: #fff;
    border: 2px solid #ccc;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
    cursor: pointer;
}

.lease-modal-wrap .checkbox-wrap input[type="checkbox"]:checked {
    background-color: var(--primary, #1d5cff);
    border-color: var(--primary, #1d5cff);
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 20 20' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.629 14.314a1 1 0 01-1.414 0L3.05 11.15a1 1 0 111.415-1.414l2.45 2.45 7.07-7.071a1 1 0 111.415 1.414l-8.77 8.785z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
}

.lease-modal-wrap .checkbox-wrap label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
}

.lease-modal-wrap .checkbox-wrap button {
    font-size: 13px;
    border: 1px solid #ccc;
    padding: 4px 10px;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}


/* 리스트 제조사/모델 모달  ******************/
.model-search-wrap {
    padding: 20px;
    margin: 0 auto;
}

.model-search-wrap input[type="radio"] {
    display: none;
}

.model-search-wrap .tab {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.model-search-wrap .tab button {
    flex: 1;
    padding: 10px;
    font-weight: bold;
    background: #e5e5e5;
    cursor: pointer;
    text-align: center;
    color: #888;
    outline: inherit;
}

.model-search-wrap .tab button.active {
    background: #fff;
    color: #111;
    border: 1.5px solid #868686;
}

.model-search-wrap .section {
    display: none;
}

.model-search-wrap .section.active {
    display: block;
}

.model-search-wrap label {
    display: block;
    margin-bottom: 5px;
}

.model-search-wrap label span {
    position: relative;
    display: block;
    padding-left: 35px;
    font-size: 15px;
    line-height: 40px;
    cursor: pointer;
    background: #f9f9f9;
    border: 1px solid #ccc;
    height: 40px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.model-search-wrap label span:hover {
    background: #eee;
}

.model-search-wrap label span::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #999;
    border-radius: 50%;
    background: #fff;
    transition: all 0.2s ease;
}

.model-search-wrap input[type="radio"]:checked + span::before {
    border-color: #c5192d;
}

.model-search-wrap input[type="radio"]:checked + span::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #c5192d;
    border-radius: 50%;
}

.model-search-wrap .selected-filter {
    margin-bottom: 10px;
    font-size: 14px;
}

.model-search-wrap .selected-filter span {
    background: #eee;
    padding: 5px 10px;
    margin-right: 5px;
    border-radius: 3px;
    cursor: pointer;
}

.model-search-wrap .submit-btn {
    display: block;
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 30px;
    font-weight: bold;
    font-size: 16px;
}

.model-modal-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}
.model-modal-dim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
}
.model-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    max-width: 90%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    z-index: 2001;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.model-modal-inner {
    padding: 24px;
    position: relative;
}
.model-modal .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
}
.model-modal .modal-close svg {
    width: 20px;
    height: 20px;
    stroke: #333;
}
