/* ===================================================================
   Private 경매 구독 - 실투자금 & 취득세·대출 간이 계산기 CSS
   gathering-house.kr/calculator.html
   =================================================================== */

.calc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 1.5rem 60px;
    position: relative;
    z-index: 1;
}

.calc-header {
    text-align: center;
    margin-bottom: 3rem;
}

.calc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--indigo-400);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.calc-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.calc-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 680px;
    margin: 0 auto;
}

/* --- Layout Grid --- */
.calc-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 960px) {
    .calc-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Input Card --- */
.calc-card {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.calc-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.calc-section-title .step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-label .val-korean {
    color: var(--blue-400);
    font-weight: 700;
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.calc-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: 0.85rem 3.2rem 0.85rem 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-mono);
    transition: all 0.2s ease;
}

.calc-input:focus {
    outline: none;
    border-color: var(--indigo-400);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: rgba(15, 23, 42, 0.95);
}

.input-unit {
    position: absolute;
    right: 1.2rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    pointer-events: none;
}

.quick-btns {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.btn-quick {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-quick:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--indigo-500);
    color: var(--text-primary);
}

/* Radio Cards Grid */
.radio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

@media (max-width: 600px) {
    .radio-grid {
        grid-template-columns: 1fr;
    }
}

.radio-card {
    position: relative;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.radio-card.active {
    background: rgba(99, 102, 241, 0.12);
    border-color: var(--indigo-400);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

.radio-card input {
    position: absolute;
    opacity: 0;
}

.radio-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.radio-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.radio-rate {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--cyan-400);
    background: rgba(34, 211, 238, 0.1);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

/* Segmented Buttons */
.segmented-control {
    display: flex;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 0.25rem;
    gap: 0.25rem;
}

.seg-btn {
    flex: 1;
    text-align: center;
    padding: 0.6rem 0.5rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border: none;
    background: transparent;
    transition: all 0.2s ease;
}

.seg-btn.active {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

/* Toggle Switch */
.toggle-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
}

.toggle-info .toggle-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.toggle-info .toggle-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    transition: .3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background: var(--gradient-primary);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* --- Result Card (Sticky) --- */
.calc-result-card {
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.75) 100%);
    border: 1px solid var(--border-accent);
    border-radius: 20px;
    padding: 2.2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.1);
    position: sticky;
    top: 90px;
}

.result-hero {
    text-align: center;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1.5rem;
}

.result-hero-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}

.result-hero-amount {
    font-size: clamp(2rem, 3.5vw, 2.7rem);
    font-weight: 900;
    font-family: var(--font-heading);
    background: linear-gradient(135deg, #60a5fa 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.result-hero-korean {
    color: var(--cyan-400);
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0.3rem;
}

.result-hero-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

/* Receipt Line Items */
.receipt-section {
    margin-bottom: 1.5rem;
}

.receipt-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0;
    font-size: 0.9rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.receipt-row:last-child {
    border-bottom: none;
}

.receipt-row.total-row {
    font-weight: 700;
    color: var(--text-primary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: none;
    padding-top: 0.75rem;
    margin-top: 0.25rem;
    font-size: 0.95rem;
}

.receipt-label {
    color: var(--text-secondary);
}

.receipt-val {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-primary);
}

.receipt-val.discount {
    color: var(--green-400);
}

.receipt-val.highlight {
    color: var(--blue-400);
}

/* Insight Cards */
.insight-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
}

.insight-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    text-align: center;
}

.insight-pill .pill-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

.insight-pill .pill-val {
    font-size: 1rem;
    font-weight: 800;
    color: var(--amber-400);
    margin-top: 0.15rem;
    font-family: var(--font-mono);
}

/* Action Buttons */
.calc-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-share {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-default);
    color: var(--text-primary);
    font-weight: 700;
    padding: 0.8rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-share:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.calc-cta-box {
    margin-top: 1.25rem;
    background: linear-gradient(135deg, rgba(254, 229, 0, 0.08) 0%, rgba(245, 158, 11, 0.04) 100%);
    border: 1px solid rgba(254, 229, 0, 0.25);
    border-radius: 14px;
    padding: 1.1rem;
    text-align: center;
}

.calc-cta-title {
    color: #ffd600;
    font-size: 0.92rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.calc-cta-desc {
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.4;
    margin-bottom: 0.85rem;
}
