/* Used Car Acquisition Tax Calculator (차량용) */

.ucatc-main-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 20px;
    align-items: start;
}

.ucatc-input-col {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ucatc-result-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ucatc-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
    transition: box-shadow 0.2s ease;
}

.ucatc-section:hover {
    box-shadow: 0 2px 8px rgba(45, 42, 38, 0.1);
}

.ucatc-input-section {
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.ucatc-section-title {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ucatc-section-title i {
    color: #d4af37;
}

.ucatc-input-group {
    margin-bottom: 12px;
    max-width: 100%;
    box-sizing: border-box;
}

.ucatc-input-group:last-child {
    margin-bottom: 0;
}

.ucatc-input-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #5f5a56;
}

.ucatc-amount-input,
.ucatc-number-input,
.ucatc-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #faf9f7;
    color: #2d2a26;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ucatc-amount-input,
.ucatc-number-input {
    padding: 10px 12px;
    font-size: 14px;
}

.ucatc-amount-input {
    text-align: right;
    font-weight: 600;
}

.ucatc-number-input {
    text-align: right;
    font-weight: 500;
}

.ucatc-amount-input::placeholder {
    color: #c4c0bc;
    font-weight: 400;
}

.ucatc-select {
    padding: 10px 12px;
    padding-right: 34px;
    font-size: 13px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%235f5a56' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.ucatc-amount-input:hover,
.ucatc-number-input:hover,
.ucatc-select:hover {
    border-color: #d4c67a;
}

.ucatc-amount-input:focus,
.ucatc-number-input:focus,
.ucatc-select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    background: #fff;
}

.ucatc-korean-amount {
    margin-top: 4px;
    min-height: 16px;
    font-size: 11px;
    color: #d4af37;
    text-align: right;
}

.ucatc-hint {
    margin-top: 5px;
    font-size: 11px;
    color: #9e9a96;
    line-height: 1.45;
}

.ucatc-input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ucatc-range-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ucatc-range-row input[type="range"] {
    flex: 1;
    min-width: 0;
    accent-color: #d4af37;
}

.ucatc-range-value {
    min-width: 52px;
    text-align: right;
    font-size: 12px;
    font-weight: 600;
    color: #5f5a56;
}

.ucatc-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #faf9f7;
    font-size: 12px;
    color: #5f5a56;
    line-height: 1.45;
}

.ucatc-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 1px 0 0;
    flex-shrink: 0;
    accent-color: #d4af37;
}

.ucatc-btn-group {
    display: flex;
    gap: 8px;
}

.ucatc-calculate-btn {
    flex: 1;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #d4af37, #c89d2c);
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ucatc-calculate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.ucatc-reset-btn {
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #5f5a56;
    background: #f5f3f0;
    cursor: pointer;
}

.ucatc-reset-btn:hover {
    background: #ece8e2;
}

.ucatc-waiting {
    text-align: center;
    color: #9e9a96;
    padding: 36px 18px;
}

.ucatc-waiting i {
    display: block;
    margin-bottom: 10px;
    font-size: 30px;
    color: #d4af37;
    opacity: 0.45;
}

.ucatc-waiting p {
    margin: 0;
    font-size: 13px;
}

.ucatc-result-summary {
    border: 1px solid #e8e0c8;
    border-radius: 12px;
    padding: 18px;
    background: linear-gradient(135deg, #fdfbf5 0%, #faf6ec 100%);
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.12);
}

.ucatc-summary-title {
    font-size: 13px;
    font-weight: 600;
    color: #8c8578;
}

.ucatc-summary-main {
    margin-top: 6px;
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: #b58913;
}

.ucatc-summary-sub {
    margin-top: 4px;
    font-size: 12px;
    color: #7d7567;
}

.ucatc-summary-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ucatc-summary-item {
    background: #fff;
    border: 1px solid #ece5d0;
    border-radius: 10px;
    padding: 10px;
}

.ucatc-summary-label {
    font-size: 12px;
    font-weight: 600;
    color: #7d7567;
}

.ucatc-summary-value {
    margin-top: 4px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
    color: #2d2a26;
}

.ucatc-summary-item-kpi .ucatc-summary-value {
    font-size: 22px;
    color: #b58913;
}

.ucatc-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.ucatc-download-btn {
    border: 1px solid #e8e4dc;
    border-radius: 7px;
    padding: 7px 10px;
    font-size: 12px;
    color: #5f5a56;
    background: #f8f6f3;
    cursor: pointer;
}

.ucatc-download-btn:hover {
    border-color: #d4af37;
    color: #b58913;
}

.ucatc-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.ucatc-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #faf9f7;
    border: 1px solid #ece7de;
    border-radius: 8px;
    padding: 9px 10px;
}

.ucatc-detail-label {
    font-size: 12px;
    color: #7a756d;
}

.ucatc-detail-value {
    font-size: 13px;
    color: #2d2a26;
}

.ucatc-table-wrap {
    overflow-x: auto;
    border: 1px solid #ece7de;
    border-radius: 10px;
}

.ucatc-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.ucatc-table thead th {
    background: #f8f5ef;
    color: #5f5a56;
    font-size: 12px;
    font-weight: 700;
    padding: 9px;
    border-bottom: 1px solid #ece7de;
    text-align: left;
}

.ucatc-table tbody td {
    padding: 9px;
    border-bottom: 1px solid #f0ece3;
    font-size: 12px;
    color: #3c3833;
}

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

.ucatc-row-total td {
    font-weight: 700;
    background: #fffdf7;
}

.ucatc-chart-wrap {
    position: relative;
    height: 260px;
}

.ucatc-chart-fallback {
    margin-top: 10px;
    font-size: 12px;
    color: #9e9a96;
}

.ucatc-guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.ucatc-guide-card {
    border: 1px solid #ece7de;
    background: #faf9f7;
    border-radius: 9px;
    padding: 10px;
}

.ucatc-guide-label {
    font-size: 11px;
    color: #7d7567;
}

.ucatc-guide-value {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
}

.ucatc-disclaimer {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #faf9f7;
    color: #9e9a96;
    font-size: 11px;
    line-height: 1.5;
}

.ucatc-disclaimer i {
    flex-shrink: 0;
    margin-top: 2px;
    color: #d4af37;
}

.ucatc-hidden {
    display: none !important;
}

@media (max-width: 900px) {
    .ucatc-main-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ucatc-input-col {
        position: static;
        max-width: 100%;
        overflow: hidden;
    }

    .ucatc-input-section {
        max-width: 100%;
        overflow: hidden;
    }

    .ucatc-amount-input:not([type="radio"]):not([type="checkbox"]),
    .ucatc-number-input,
    .ucatc-select {
        width: 100% !important;
        max-width: 100% !important;
    }

    .ucatc-summary-grid,
    .ucatc-detail-grid,
    .ucatc-guide-grid,
    .ucatc-input-grid {
        grid-template-columns: 1fr;
    }

    .ucatc-chart-wrap {
        height: 230px;
    }
}

@media (max-width: 480px) {
    .tool-section,
    .ucatc-main-layout,
    .ucatc-input-col,
    .ucatc-result-col {
        max-width: 100%;
        overflow-x: hidden;
    }

    .ucatc-summary-main {
        font-size: 26px;
    }

    .ucatc-summary-value {
        font-size: 16px;
    }

    .ucatc-summary-item-kpi .ucatc-summary-value {
        font-size: 19px;
    }

    .ucatc-btn-group {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ucatc-section,
    .ucatc-calculate-btn,
    .ucatc-amount-input,
    .ucatc-number-input,
    .ucatc-select {
        transition: none !important;
    }

    .ucatc-calculate-btn:hover,
    .ucatc-section:hover {
        transform: none !important;
    }
}
