@charset "utf-8";

.estimate-step1 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
}

.cm-step-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 150px 20px 80px;
}

.cm-step-wrap .sec-title {
    margin-bottom: 60px;
    text-align: center;
}

.cm-step-wrap .sec-title h2 {
    font-size: 36px;
    line-height: 1;
    margin-bottom: 12px;
}

/* step bar */
.cm-step-wrap .stepbar {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
}

.cm-step-wrap .step {
    flex: 1;
    padding: 18px 20px;
    border-radius: 14px;
    background: #f2f4f7;
    display: flex;
    align-items: center;
    gap: 14px;
}

.cm-step-wrap .step.on {
    background: #0b2c5f;
}

.cm-step-wrap .step .num {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: #e5e7eb;
    color: #555;
}

.cm-step-wrap .step.on .num {
    background: #fff;
    color: #0b2c5f;
}

.cm-step-wrap .step .txt {
    font-size: 15px;
    color: #666;
}

.cm-step-wrap .step.on .txt {
    color: #fff;
    font-weight: 600;
}


/* type tab */
.estimate-step1 .type-tab {
    display: flex;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 40px;
}

.estimate-step1 .type-tab .tab {
    flex: 1;
    padding: 18px 0;
    font-size: 16px;
    background: #fff;
    border: 0;
    cursor: pointer;
    color: #666;
    text-align: center;
}

.estimate-step1 .type-tab .tab.on {
    color: #0b2c5f;
    font-weight: 600;
    border: 2px solid #0b2c5f;
    margin: -1px;
    border-radius: 8px;
}

/* section */
.estimate-step1 .brand-sec,
.estimate-step1 .car-sec {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 50px;
}

.estimate-step1 .sec-ttl {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 30px;
}

/* brand list */
.estimate-step1 .brand-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}

.estimate-step1 .brand-list li {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}

.estimate-step1 .brand-list li.on {
    border: 2px solid #0b2c6d;
    box-shadow: 0 0 0 1px rgba(11, 44, 109, 0.1);
}

.estimate-step1 .brand-list li img {}

.estimate-step1 .brand-list li .name {
    font-weight: 600;
    color: #111;
}


.estimate-step1 .brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.estimate-step1 .brand img {
    height: auto;
    object-fit: contain;
}

.estimate-step1 .brand span {
    font-size: 14px;
    color: #333;
}

/* car list */
.estimate-step1 .car-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.estimate-step1 .car {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}

.estimate-step1 .car:hover {
    border-color: #0b2c5f;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.estimate-step1 .car .thumb {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 160px;
}

.estimate-step1 .car .thumb img {
    max-width: 100%;
    max-height: 100%;
}

.estimate-step1 .car .info {
    text-align: left;
    padding: 20px;
}

.estimate-step1 .car .info .name-df {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.estimate-step1 .car .name {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

.estimate-step1 .car .price {
    font-size: 14px;
    color: #666;
}

/* responsive */
@media (max-width: 1024px) {
    .estimate-step1 .brand-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .estimate-step1 .car-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.estimate-step2 .car-summary {
    margin: 80px 0;
}

.estimate-step2 .car-summary .inner {
    padding: 100px 20px;
    display: flex;
    gap: 80px;
    align-items: center;
    background: rgb(253 253 253 / 70%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid #f5f5f5;
}

.estimate-step2 .car-image {
    flex: 1;
}

.estimate-step2 .car-image img {
    width: 100%;
    max-width: 520px;
    display: block;
}

.estimate-step2 .car-info {
    flex: 1;
    min-width: 0;
}

.estimate-step2 .title-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.estimate-step2 .car-name {
    font-size: 28px;
    font-weight: 700;
}

.estimate-step2 .btn-catalog {
    padding: 8px 18px;
    background: #0b2c63;
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
}

.estimate-step2 .car-spec {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.estimate-step2 .color-select {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px dashed #eee;
}

.estimate-step2 .color-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 16px;
}

.estimate-step2 .current-color {
    color: #888;
}


.estimate-step2 .color {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
}

.estimate-step2 .color.on {
    border-color: #0b2c63;
}

.estimate-step2 .sec-head {
    background: linear-gradient(to right, #f1f3f7 0%, rgba(226, 232, 242, 0) 100%);
    color: #062a63;
    padding: 16px 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.estimate-step2 .sec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.estimate-step2 .model-item-list {
    max-height: 380px;
    overflow-y: auto;
}

.estimate-step2 .model-item-list .model-item:not(:last-child) {
    margin-bottom: 16px;
}


.estimate-step2 .model-item {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.estimate-step2 .model-btn {
    width: 100%;
    padding: 0 20px;
    height: 60px;
    background: #fff;
    border: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    cursor: pointer;
}

.estimate-step2 .arrow {
    width: 12px;
    height: 12px;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
    transform: rotate(45deg);
    transition: transform .2s;
}

.estimate-step2 .model-item.open .arrow {
    transform: rotate(-135deg);
}

.estimate-step2 .trim-list {
    display: none;
    border-top: 1px solid #ddd;
}

.estimate-step2 .model-item.open .trim-list {
    display: block;
}

.estimate-step2 .trim {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.estimate-step2 .trim.on {
    background: #f9f9f9;
}

.estimate-step2 .sec-option .option-body {
    margin-top: 16px;
}

.estimate-step2 .sec-option .option-empty {
    color: #888;
    text-align: center;
    padding: 80px 0;
}

.estimate-step2 .sec-option .option-list {
    display: none;
    flex-direction: column;
    gap: 16px;
    max-height: 380px;
    overflow-y: auto;
}

.estimate-step2 .sec-option .option-list li:not(:last-child) {
    margin-bottom: 16px;
}


.estimate-step2 .sec-option .option-item label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
}

.estimate-step2 .sec-option .option-item input {
    display: none;
}

.estimate-step2 .sec-option .option-item .label {
    font-size: 16px;
    font-weight: 500;
}

.estimate-step2 .sec-option .option-item .price {
    font-size: 16px;
    font-weight: 700;
}

.estimate-step2 .sec-option .option-item input:checked + .label {
    color: #002b6c;
}

.estimate-step2 .sec-option .option-item input:checked ~ .price {
    color: #002b6c;
}

.estimate-step2 .sec-option .option-item input:checked ~ * {
    pointer-events: none;
}

.estimate-step2 .sec-option .option-item input:checked {
    display: none;
}

.estimate-step2 .sec-option .option-item label:has(input:checked) {
    border-color: #002b6c;
    background: #eef1f5;
}

.estimate-step2 .cond-block-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.estimate-step2 .sec-condition .cond-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.estimate-step2 .sec-condition .cond-title {
    font-size: 15px;
    font-weight: 600;
}

.estimate-step2 .sec-condition .cond-title.add-inp {
    margin-bottom: 16px;
}

.estimate-step2 .sec-condition .inp-block {
    min-width: 100%;
    padding: 14px 16px;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    background: #fff;
    font-size: 15px;
    cursor: pointer;
    text-align: left;
}

.estimate-step2 .sec-condition [data-deposit-block],
.estimate-step2 .sec-condition [data-prepay-block] {
    display: none;
}

.estimate-step2 .sec-condition .btn-group {
    display: grid;
    gap: 12px;
}

/* 컬럼 수 제어 */
.estimate-step2 .sec-condition .btn-group.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.estimate-step2 .sec-condition .btn-group.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.estimate-step2 .sec-condition .btn-group.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.estimate-step2 .sec-condition .btn-group.cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

.estimate-step2 .sec-condition input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* 기본 버튼 */
.estimate-step2 .sec-condition .btns {
    padding: 14px 16px;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    background: #fff;
    font-size: 15px;
    cursor: pointer;
    text-align: center;
}

/* 체크된 라디오 = 선택 상태 */
.estimate-step2 .sec-condition .btns input[type="radio"]:checked + span {
    color: #0b2f6b;
    font-weight: 600;
}

.estimate-step2 .sec-condition .btns:has(input[type="radio"]:checked) {
    border-color: #0b2f6b;
}


/* =========================
   04. 최종 견적
========================= */

/*
.estimate-step2 .sec-summary {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
*/

.estimate-step2 .sec-summary .summary-box {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.estimate-step2 .sec-summary dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 12px;
    column-gap: 24px;
    font-size: 14px;
}

.estimate-step2 .sec-summary dt {
    color: #666;
}

.estimate-step2 .sec-summary dd {
    text-align: right;
    font-weight: 600;
}

.estimate-step2 .sec-summary .price-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.estimate-step2 .sec-summary .price-block .row,
.estimate-step2 .sec-summary .price-block .total {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.estimate-step2 .sec-summary .price-block .row span {
    color: #666;
}

.estimate-step2 .sec-summary .price-block .total {
    padding-top: 16px;
    border-top: 1px solid #ddd;
    font-size: 18px;
    font-weight: 700;
}

.estimate-step2 .sec-summary .price-head {
    font-size: 18px;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 14px;
}

.estimate-step2 .sec-summary .price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.estimate-step2 .sec-summary .price-name {
    color: #666;
    font-size: 15px;
}

.estimate-step2 .sec-summary .price-value {
    font-size: 18px;
    font-weight: 700;
}


.estimate-step2 .sec-summary .btn-submit {
    margin-top: 16px;
    width: 100%;
    padding: 18px 0;
    background: #0b2f6b;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
}

.estimate-step2 .sec-summary .detail {
    padding-left: 16px;
    border-left: 2px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.estimate-step2 .sec-summary .detail div {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.estimate-step2 .color-swiper-wrap {
    width: 100%;
}

.estimate-step2 .colorSwiper {
    width: 100%;
    overflow: hidden;
    padding-bottom: 12px;
}

.estimate-step2 .colorSwiper .swiper-wrapper {
    width: auto;
}

.estimate-step2 .colorSwiper .swiper-slide {
    width: calc((100% - 80px) / 7);
    margin-right: 16px;
    flex-shrink: 0;
    box-sizing: border-box;
    border: 2px solid #eee;
}

.estimate-step2 .colorSwiper .swiper-slide:last-child {
    margin-right: 0;
}

.estimate-step2 .colorSwiper .color-list .color {
    position: relative;
}

.estimate-step2 .colorSwiper .color-list .color.on::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 6px solid #111;
}

.estimate-step2 .sec-grid > * {
    min-width: 0;
}

@media (max-width:550px) {
    .cm-step-wrap .stepbar {
        flex-direction: column;
    }

    .estimate-step1 .brand-sec,
    .estimate-step1 .car-sec {
        padding: 20px;
    }

    .cm-step-wrap .sec-title h2 {
        font-size: 24px;
    }

    .estimate-step2 .car-summary .inner {
        flex-direction: column;
        padding: 40px 0;
        align-items: flex-start;
    }

    .estimate-step2 .sec-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

}
