/* CSS Variables */
:root {
    --audi-black: #000000;
    --audi-red: #F50537;
    --audi-grey-bg: #F2F2F2;
    --audi-grey-border: #D9D9D9;
    --audi-grey-text: #666666;
    --audi-white: #FFFFFF;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Audi Type', 'Helvetica Neue', Helvetica, Arial, 'Noto Sans KR', sans-serif;
}

body {
    background-color: var(--audi-white);
    color: var(--audi-black);
    line-height: 1.6;
    letter-spacing: -1.2%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

h1.page-title {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--audi-grey-border);
    letter-spacing: -0.5px;
}

/* Layout */
.simulation-wrap {
    background-color: var(--audi-grey-bg);
    padding: 50px;
    display: flex;
    gap: 60px;
    border-radius: 4px;
}

/* Left Column - Select Box */
.select-col {
    flex: 0 0 300px;
}

.select-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.select-group label {
    font-size: 16px;
    color: var(--audi-black);
    white-space: nowrap;
}

select.model-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid var(--audi-grey-border);
    border-radius: 0;
    background-color: var(--audi-white);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    cursor: pointer;
    transition: border-color 0.3s;
}

select.model-select:focus {
    outline: none;
    border-color: var(--audi-black);
}

/* Right Column - Data Table */
.data-col {
    flex: 1;
}

.table-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.table-title {
    font-size: 24px;
    font-weight: 300;
}

.table-unit {
    font-size: 14px;
    color: var(--audi-grey-text);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--audi-white);
}

.price-table th,
.price-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--audi-grey-border);
}

.price-table thead {
    background-color: #E6E6E6;
}

.price-table th {
    text-align: right;
    font-weight: 700;
    font-size: 15px;
}

.price-table td.product-name {
    text-align: left;
    font-size: 15px;
    color: var(--audi-black);
}

.price-table td.product-price {
    text-align: right;
    font-size: 16px;
    font-weight: 500;
    color: var(--audi-black);
}

.price-table td.empty-message {
    text-align: center;
    padding: 30px;
    color: var(--audi-grey-text);
}

.price-table tbody tr:last-child td {
    border-bottom: none;
}


/* -------------------------------------
   새로 추가된 기본 보증기간 확인 테이블
   ------------------------------------- */
.basic-warranty-wrap {
    margin-top: 60px;
    margin-bottom: 60px;
}

.section-title {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 20px;
    color: var(--audi-black);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--audi-white);
    border-top: 2px solid var(--audi-black);
}

.info-table th:nth-child(1),
.info-table td:nth-child(1) {
    width: 22%;
}

.info-table th:nth-child(2),
.info-table td:nth-child(2) {
    width: 30%;
}

.info-table th:nth-child(3),
.info-table td:nth-child(3) {
    width: 48%;
}

.info-table th,
.info-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--audi-black);
    border-right: 1px solid var(--audi-black);
    border-left: 1px solid var(--audi-black);
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.info-table th {
    background-color: var(--audi-white);
    font-weight: 700;
    text-align: center;
    font-size: 15px;
}

.info-table td {
    font-size: 15px;
    color: var(--audi-black);
    vertical-align: middle;
    line-height: 1.6;
}

/* Footer Notes (위치 변경으로 인한 여백 조정) */
.notes-area {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--audi-grey-border);
    font-size: 13px;
    color: var(--audi-grey-text);
    line-height: 1.8;
}


/* Responsive Design */
@media (max-width: 768px) {
    .simulation-wrap {
        flex-direction: column;
        padding: 30px 20px;
        gap: 40px;
    }

    .select-col {
        flex: 1;
    }

    .select-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .table-header-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .table-unit {
        align-self: flex-end;
    }

    .info-table th,
    .info-table td {
        padding: 12px 16px;
    }

    .info-table {
        min-width: 600px;
        /* Force scroll on small screens */
    }
}