/**
 * Overseas Study Cost Calculator Styles
 * 해외 유학비용 계산기
 *
 * @package Zipper
 */

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

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

.osc-input-col {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 100%;
    box-sizing: border-box;
}

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

.osc-section,
.osc-breakdown-section,
.osc-yearly-section,
.osc-tips-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;
}

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

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

.osc-section-title i,
.osc-block-title i {
    color: #d4af37;
    font-size: 15px;
}

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

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

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

.osc-select,
.osc-number-input,
.osc-rate-input,
.osc-amount-input {
    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;
}

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

.osc-select {
    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;
    padding-right: 32px;
}

.osc-amount-input {
    text-align: right;
    font-weight: 600;
    padding-right: 52px;
}

.osc-rate-input {
    text-align: right;
    font-weight: 600;
    padding-right: 36px;
}

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

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

.osc-amount-input::placeholder,
.osc-rate-input::placeholder,
.osc-number-input::placeholder {
    color: #c4c0bc;
    font-weight: 400;
}

.osc-amount-input-wrap {
    position: relative;
}

.osc-amount-suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9e9a96;
    font-size: 11px;
    pointer-events: none;
}

.osc-currency-unit {
    font-weight: 500;
}

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

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

.osc-source-note {
    margin-top: 6px;
    border: 1px solid #efe8d6;
    border-radius: 8px;
    background: #fdfbf6;
    color: #7b715b;
    font-size: 11px;
    line-height: 1.5;
    padding: 10px 12px;
}

.osc-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.osc-slider {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 6px;
    border-radius: 999px;
    background: #ece7da;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

.osc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #d4af37;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.22);
    cursor: pointer;
}

.osc-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #d4af37;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.22);
    cursor: pointer;
}

.osc-slider-value {
    font-size: 12px;
    font-weight: 700;
    color: #d4af37;
}

.osc-slider-labels {
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    color: #9e9a96;
    font-size: 10px;
}

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

.osc-calculate-btn {
    flex: 1;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #d4af37 0%, #c89f2f 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.osc-reset-btn:hover {
    background: #ece8e1;
}

.osc-waiting {
    text-align: center;
    padding: 40px 20px;
    color: #9e9a96;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.osc-waiting i {
    font-size: 32px;
    color: #d4af37;
    opacity: 0.42;
}

.osc-waiting p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
}

.osc-waiting strong {
    color: #5f5a56;
    font-weight: 600;
}

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

.osc-summary-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f0e6c8;
    color: #7b6430;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
}

.osc-summary-title {
    font-size: 13px;
    color: #7a6f56;
    margin-bottom: 2px;
}

.osc-summary-main {
    font-size: 30px;
    line-height: 1.25;
    font-weight: 800;
    color: #2d2a26;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.osc-summary-sub {
    font-size: 12px;
    color: #7a756d;
    margin-bottom: 12px;
}

.osc-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.osc-summary-item {
    border: 1px solid #eee7d4;
    border-radius: 8px;
    background: #fffdf8;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.osc-summary-label {
    font-size: 11px;
    color: #8a7f69;
}

.osc-summary-value {
    font-size: 13px;
    font-weight: 700;
    color: #2d2a26;
}

.osc-pill-list {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.osc-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    border: 1px solid #e8dfc7;
    background: #fff;
    color: #6f654f;
    font-size: 11px;
    padding: 5px 10px;
}

.osc-pill strong {
    color: #2d2a26;
}

.osc-table-wrap {
    overflow-x: auto;
}

.osc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.osc-table th,
.osc-table td {
    border-bottom: 1px solid #f0ece4;
    padding: 9px 8px;
    text-align: right;
    white-space: nowrap;
}

.osc-table th:first-child,
.osc-table td:first-child {
    text-align: left;
}

.osc-table th {
    font-size: 11px;
    color: #8c867c;
    font-weight: 600;
    background: #fcfaf6;
}

.osc-table tr:last-child td {
    border-bottom: 0;
}

.osc-table .osc-total-row td {
    font-weight: 700;
    color: #2d2a26;
    background: #fdfbf5;
}

.osc-table .osc-negative {
    color: #0f7b4b;
    font-weight: 600;
}

.osc-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.osc-metric-card {
    border: 1px solid #ece6d8;
    border-radius: 10px;
    background: #fcfbf8;
    padding: 10px 12px;
}

.osc-metric-label {
    font-size: 11px;
    color: #8a857a;
    margin-bottom: 4px;
}

.osc-metric-value {
    font-size: 15px;
    font-weight: 700;
    color: #2d2a26;
    line-height: 1.35;
}

.osc-tips-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.osc-tip-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    border-radius: 8px;
    border: 1px solid #ece6d8;
    background: #fcfbf8;
    padding: 8px 10px;
}

.osc-tip-item i {
    margin-top: 1px;
    color: #d4af37;
    font-size: 13px;
    flex-shrink: 0;
}

.osc-tip-item span {
    font-size: 12px;
    color: #5f5a56;
    line-height: 1.5;
}

.osc-disclaimer {
    border-radius: 10px;
    border: 1px solid #efe9dc;
    background: #faf8f2;
    color: #7f796c;
    font-size: 11px;
    line-height: 1.55;
    padding: 10px 12px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.osc-disclaimer i {
    margin-top: 1px;
    color: #d4af37;
    font-size: 13px;
    flex-shrink: 0;
}

@media (max-width: 1100px) {
    .osc-main-layout {
        grid-template-columns: 1fr;
    }

    .osc-input-col {
        position: static;
    }
}

@media (max-width: 900px) {
    .osc-input-col,
    .osc-result-col,
    .osc-section,
    .osc-breakdown-section,
    .osc-yearly-section,
    .osc-tips-section {
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .osc-amount-input,
    .osc-number-input,
    .osc-rate-input,
    .osc-select {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .osc-summary-grid,
    .osc-metric-grid {
        grid-template-columns: 1fr;
    }

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

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

    .osc-section,
    .osc-breakdown-section,
    .osc-yearly-section,
    .osc-tips-section {
        padding: 14px;
    }

    .osc-btn-group {
        flex-direction: column;
    }

    .osc-reset-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .osc-section,
    .osc-breakdown-section,
    .osc-yearly-section,
    .osc-tips-section,
    .osc-select,
    .osc-number-input,
    .osc-rate-input,
    .osc-amount-input,
    .osc-calculate-btn,
    .osc-reset-btn {
        transition: none !important;
    }

    .osc-section:hover,
    .osc-breakdown-section:hover,
    .osc-yearly-section:hover,
    .osc-tips-section:hover,
    .osc-calculate-btn:hover {
        transform: none !important;
    }
}
