/* ===== PAGE HERO ===== */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem 0 3.5rem;
    text-align: center;
}

.wb-hero { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.central-hero { background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%); }

.breadcrumb { font-size: 0.9rem; margin-bottom: 1rem; opacity: 0.9; }
.breadcrumb a { color: white; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.5rem; }

.page-hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.page-hero .hero-subtitle { font-size: 1.1rem; opacity: 0.95; margin-bottom: 1.5rem; }

.quick-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-label { font-size: 0.8rem; opacity: 0.9; margin-bottom: 0.25rem; }
.stat-value { font-size: 1.5rem; font-weight: 700; }

.stat-new { background: rgba(255, 255, 255, 0.95); color: var(--text-dark); }
.stat-new .stat-label { color: var(--text-light); }
.stat-arrears { background: rgba(16, 185, 129, 0.3); border-color: #10b981; }

/* ===== CALCULATOR SECTION ===== */
.calculator-section {
    padding: 1.5rem 0 3rem;
    background: var(--bg-light);
    margin-top: -2rem;
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: start;
    margin-top: 1rem;
}

.calculator-form {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary-color);
}

.calculator-form h2 { color: var(--text-dark); margin-bottom: 0.5rem; font-size: 1.5rem; }
.form-subtitle { color: var(--text-light); margin-bottom: 1.5rem; font-size: 0.95rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.required { color: var(--danger-color); }

.tooltip-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-size: 0.75rem;
    cursor: help;
    margin-left: 0.5rem;
    font-weight: bold;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--bg-white);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
}

.btn-full { width: 100%; margin-bottom: 0.75rem; }

.info-box {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1.25rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.info-box strong { color: var(--text-dark); display: block; margin-bottom: 0.5rem; }
.info-box p { color: var(--text-dark); margin: 0; line-height: 1.6; }

/* ===== RESULTS PANEL ===== */
.results-panel {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--success-color);
    min-height: 500px;
}

.results-panel h2 { color: var(--text-dark); margin-bottom: 1.5rem; font-size: 1.5rem; }

/* Placeholder */
.results-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    color: var(--text-light);
}

.results-placeholder .placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.results-placeholder h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.results-placeholder p { font-size: 1rem; }

/* Result Cards */
.result-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--border-color);
    display: flex;
    gap: 1rem;
    align-items: center;
    transition: transform 0.3s;
}

.result-card:hover { transform: translateY(-3px); }

.result-highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left-color: var(--accent-color);
}

.result-positive {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-left-color: var(--success-color);
}

.result-icon { font-size: 2rem; }
.result-content { flex: 1; }

.result-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.result-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.result-sub { display: block; font-size: 0.8rem; color: var(--text-light); }

/* Breakdown */
.breakdown-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.breakdown-section:last-of-type { border-bottom: none; }
.breakdown-section h3 { color: var(--text-dark); margin-bottom: 1rem; font-size: 1.2rem; }

.breakdown-table { background: var(--bg-light); border-radius: 8px; overflow: hidden; }

.breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

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

.highlight-row {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    font-weight: 600;
}

.total-row {
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.total-row .breakdown-label, .total-row .breakdown-value { color: white; }

.breakdown-label { color: var(--text-light); font-size: 0.95rem; }
.breakdown-value { color: var(--text-dark); font-weight: 600; font-size: 0.95rem; }

/* Arrears */
.arrears-info { background: var(--bg-light); border-radius: 8px; padding: 1rem; }

.arrears-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px dashed var(--border-color);
}

.arrears-item:last-child { border-bottom: none; }

.highlight-item {
    background: #fef3c7;
    padding: 0.75rem 0.75rem;
    border-radius: 6px;
    margin: 0.5rem 0;
}

.total-item {
    background: var(--primary-color);
    color: white;
    padding: 1rem 0.75rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    font-weight: 700;
}

.arrears-label { color: var(--text-light); font-size: 0.9rem; }
.arrears-value { color: var(--text-dark); font-weight: 600; font-size: 0.95rem; }
.total-item .arrears-label, .total-item .arrears-value { color: white; font-size: 1rem; }

/* Actions */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.action-buttons .btn { flex: 1; min-width: 140px; }

.result-disclaimer {
    background: #fef3c7;
    border-left: 4px solid var(--accent-color);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.result-disclaimer a { color: var(--primary-color); text-decoration: none; }

/* ===== INFO SECTION ===== */
.info-section { padding: 4rem 0; background: var(--bg-white); }

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-card {
    background: var(--bg-light);
    padding: 1.75rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.info-card h3 { color: var(--text-dark); margin-bottom: 1rem; font-size: 1.2rem; }
.info-card p { color: var(--text-light); line-height: 1.7; margin-bottom: 0.75rem; font-size: 0.95rem; }

.benefit-list { list-style: none; padding: 0; margin: 0; }
.benefit-list li {
    padding: 0.5rem 0;
    color: var(--text-light);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
}
.benefit-list li:last-child { border-bottom: none; }

/* ===== HISTORY ===== */
.history-section { padding: 4rem 0; background: var(--bg-light); }

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .calculator-wrapper { grid-template-columns: 1fr; }
    .results-panel { order: -1; }
}

@media (max-width: 768px) {
    .page-hero h1 { font-size: 1.75rem; }
    .form-row { grid-template-columns: 1fr; }
    .quick-stats { flex-direction: column; align-items: center; }
    .stat-badge { width: 100%; max-width: 300px; }
    .result-cards { grid-template-columns: 1fr; }
    .action-buttons { flex-direction: column; }
    .action-buttons .btn { width: 100%; }
}

@media (max-width: 480px) {
    .calculator-form, .results-panel { padding: 1rem 0.875rem; }
    .result-value { font-size: 1.1rem; }
    .result-cards { grid-template-columns: 1fr; gap: 0.75rem; }
    .result-icon { font-size: 1.5rem; }
    .calculator-form h2 { font-size: 1.15rem; }
    .results-panel h2 { font-size: 1.15rem; }
    .breakdown-section h3 { font-size: 1rem; }
    .faq-question { font-size: 0.9rem; }
    .faq-answer { font-size: 0.85rem; }
    .section-title { font-size: 1.2rem; }
    .info-card { padding: 1rem; }
    .info-card h3 { font-size: 1rem; }
    .info-card p { font-size: 0.85rem; }
}

/* ===== PRINT ===== */
@media print {
    .header, .footer, .calculator-form, .action-buttons, .info-section, .history-section, .calculator-faq {
        display: none;
    }
    .results-panel {
        display: block !important;
        box-shadow: none;
        border: 2px solid #000;
    }
    body { background: white; }
}
/* ── COMBO INPUT (dropdown + custom value) ───────────────── */
.combo-input-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
}
.combo-input-wrap select,
.combo-input-wrap input[type="number"] {
    height: 42px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 14px;
    font-family: inherit;
    color: #1e293b;
    background: #fff;
    transition: border-color .15s;
    appearance: none;
    -webkit-appearance: none;
    width: auto;
}
.combo-input-wrap select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}
.combo-input-wrap select:focus,
.combo-input-wrap input[type="number"]:focus {
    outline: none;
    border-color: #1a2f5e;
    box-shadow: 0 0 0 3px rgba(26,47,94,.1);
}
