/* Ensure Playfair Display is available */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&display=swap');

/* ═══════════════════════════════════════════════════════
   DABAS FINANCE — PREMIUM PAGE ENHANCEMENTS
   Upgrades cards, context sections, FAQs, forms & buttons
   across ALL calculator and loan pages
══════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────
   CARDS GRID & CARD COMPONENT
   ────────────────────────────────────────────────── */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.card {
    position: relative;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 20px;
    padding: 32px 28px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.4s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #f0d060, #d4af37);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(212, 175, 55, 0.3);
    border-color: rgba(212, 175, 55, 0.4);
}

.card:hover::before {
    opacity: 1;
}

.card:hover::after {
    opacity: 1;
}

.card .card-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin-bottom: 16px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.04));
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.2);
}

.card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #000;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.card:hover h3 {
    background: linear-gradient(135deg, #d4af37, #b8940f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* ──────────────────────────────────────────────────
   CONTEXT GRID & CARDS (Why / How sections)
   ────────────────────────────────────────────────── */
.context-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.context-card {
    position: relative;
    background: linear-gradient(145deg, #000000 0%, #1a1a1a 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    padding: 32px 24px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s ease;
}

.context-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.context-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.5);
}

.context-card i {
    font-size: 1.8rem;
    color: #d4af37;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    margin-bottom: 16px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.context-card:hover i {
    transform: scale(1.1);
    background: rgba(212, 175, 55, 0.2);
}

.context-card h3 {
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.context-card p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

/* ──────────────────────────────────────────────────
   FAQ SECTION
   ────────────────────────────────────────────────── */
.faq-list {
    display: grid;
    gap: 14px;
    margin-top: 32px;
    max-width: 800px;
}

.faq-item {
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    color: #000;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: color 0.3s ease;
}

.faq-item summary:hover {
    color: #d4af37;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    color: #d4af37;
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-item[open] summary {
    color: #d4af37;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.faq-item p {
    margin: 0;
    padding: 16px 22px 20px;
    color: #6b7280;
    line-height: 1.7;
    animation: faqSlideDown 0.3s ease;
}

@keyframes faqSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ──────────────────────────────────────────────────
   SECTION ENHANCEMENTS
   ────────────────────────────────────────────────── */
.section-title {
    font-family: 'Playfair Display', serif;
    color: #000;
    position: relative;
}

.section-subtitle {
    color: #6b7280;
    font-size: 1.05rem;
    line-height: 1.7;
}

.accent-line {
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #f0d060);
    border-radius: 999px;
    margin-bottom: 16px;
}

/* ──────────────────────────────────────────────────
   HERO BUTTON UPGRADES
   ────────────────────────────────────────────────── */
.category-hero-cta .btn.btn-primary {
    background: linear-gradient(135deg, #d4af37, #f0d060);
    color: #000;
    font-weight: 700;
    border: none;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-hero-cta .btn.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(212, 175, 55, 0.5);
}

.category-hero-cta .btn.btn-outline {
    border: 2px solid rgba(212, 175, 55, 0.5);
    color: #d4af37;
    background: transparent;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.category-hero-cta .btn.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #d4af37;
    transform: translateY(-3px);
}

/* ──────────────────────────────────────────────────
   FORM CARD — used in split layouts
   ────────────────────────────────────────────────── */
.form-card {
    background: linear-gradient(145deg, #000000 0%, #1a1a1a 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    padding: 36px 28px;
    color: #fff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.form-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #d4af37;
    margin-bottom: 16px;
}

.form-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.6;
}

.form-card .btn-primary {
    background: linear-gradient(135deg, #d4af37, #f0d060) !important;
    color: #000 !important;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.form-card .btn-primary:hover {
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.5);
}

/* ──────────────────────────────────────────────────
   CALCULATOR FORM STYLING
   ────────────────────────────────────────────────── */
.calc-card,
.calculator-card {
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.calc-card:hover,
.calculator-card:hover {
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.12);
}

/* Form Elements */
.calc-card label,
.calculator-card label,
.form-card label {
    display: block;
    font-weight: 600;
    color: #111;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.calc-card input[type="number"],
.calc-card input[type="text"],
.calc-card select,
.calculator-card input[type="number"],
.calculator-card input[type="text"],
.calculator-card select,
input.calc-input,
select.calc-select {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.calc-card input:focus,
.calculator-card input:focus,
.calc-card select:focus,
.calculator-card select:focus,
input.calc-input:focus,
select.calc-select:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

/* Range Slider Gold Theme */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #d4af37, #f0d060);
    border-radius: 999px;
    outline: none;
    margin: 16px 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #f0d060);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
    transition: transform 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #f0d060);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* Calculate Button */
button[type="button"],
button.calc-btn,
.calc-card button,
.calculator-card button {
    background: linear-gradient(135deg, #d4af37, #f0d060);
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

button[type="button"]:hover,
button.calc-btn:hover,
.calc-card button:hover,
.calculator-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.5);
}

/* Result Display */
.calc-result,
.result-box,
.calculator-result {
    background: linear-gradient(145deg, #000000 0%, #1a1a1a 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
    color: #fff;
}

.calc-result h3,
.result-box h3,
.calculator-result h3 {
    color: #d4af37;
    font-family: 'Playfair Display', serif;
    margin-bottom: 12px;
}

.calc-result p,
.result-box p,
.calculator-result p {
    color: rgba(255, 255, 255, 0.8);
}

.calc-result .amount,
.result-box .amount {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #d4af37, #f0d060);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ──────────────────────────────────────────────────
   ALTERNATING DARK SECTIONS
   ────────────────────────────────────────────────── */
.section:nth-of-type(even) {
    background: linear-gradient(180deg, #fafafa 0%, #f3f4f6 100%);
}

/* ──────────────────────────────────────────────────
   SPLIT LAYOUT ENHANCEMENTS
   ────────────────────────────────────────────────── */
.split .reveal {
    position: relative;
}

.split .accent-line {
    background: linear-gradient(90deg, #d4af37, #f0d060);
}

/* ──────────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────────── */
@media (max-width: 980px) {
    .context-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .card {
        padding: 24px 20px;
    }

    .context-card {
        padding: 24px 20px;
    }

    .faq-item summary {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .calc-card,
    .calculator-card {
        padding: 28px 20px;
    }
}

/* ──────────────────────────────────────────────────
   CALCULATOR SHELL PREMIUM OVERRIDES
   These target the actual classes used in calculator pages
   ────────────────────────────────────────────────── */
.calculator-shell {
    background: linear-gradient(145deg, #ffffff 0%, #f9f9fb 100%);
    border-radius: 24px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(212, 175, 55, 0.06);
    padding: 36px;
    position: relative;
    overflow: hidden;
}

.calculator-shell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #f0d060, #d4af37);
}

.calculator-tab {
    border: 1.5px solid rgba(212, 175, 55, 0.25);
    background: rgba(255, 255, 255, 0.9);
    color: #6b7280;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

.calculator-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.5);
    color: #000;
}

.calculator-tab.is-active {
    background: linear-gradient(135deg, #d4af37, #f0d060);
    color: #000;
    border-color: #d4af37;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
    font-weight: 700;
}

.calculator-panel {
    background: linear-gradient(145deg, #fafafa 0%, #f3f4f6 100%);
    border-radius: 20px;
    padding: 28px 24px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
}

.calculator-panel h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #000;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 12px;
}

.calculator-panel h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #f0d060);
    border-radius: 999px;
}

.calculator-fields label {
    display: block;
    font-weight: 600;
    color: #333;
    margin: 16px 0 8px;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.calculator-fields input,
.calculator-fields select {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    font-size: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.calculator-fields input:focus,
.calculator-fields select:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12);
}

.calculator-actions .btn {
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 700;
}

.calculator-actions .btn.btn-primary {
    background: linear-gradient(135deg, #d4af37, #f0d060);
    color: #000;
    border: none;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calculator-actions .btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.5);
}

.calculator-output {
    background: linear-gradient(145deg, #000000 0%, #1a1a1a 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 16px;
    padding: 20px;
    color: #fff;
    margin-top: 20px;
}

.calculator-metric {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-weight: 600;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.3s ease;
}

.calculator-metric:hover {
    border-color: rgba(212, 175, 55, 0.3);
}

.calculator-metric span {
    color: rgba(255, 255, 255, 0.7);
}

.calculator-metric strong {
    background: linear-gradient(135deg, #d4af37, #f0d060);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1rem;
}

.calculator-note {
    margin-top: 14px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    border-left: 3px solid rgba(212, 175, 55, 0.3);
    padding-left: 12px;
}

.calculator-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.05));
    color: #000;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.calculator-table th {
    color: #6b7280;
    font-weight: 600;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.calculator-table td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* ──────────────────────────────────────────────────
   CARD ICON (used in loan index cards)
   ────────────────────────────────────────────────── */
.card i {
    font-size: 2rem;
    color: #d4af37;
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.04));
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: transform 0.4s ease, background 0.4s ease;
}

.card:hover i {
    transform: scale(1.1) rotate(-4deg);
    background: rgba(212, 175, 55, 0.2);
}

/* ──────────────────────────────────────────────────
   CALCULATOR-SHELL RESPONSIVE
   ────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }

    .calculator-shell {
        padding: 24px 18px;
    }
}

@media (max-width: 600px) {
    .calculator-panel {
        padding: 20px 16px;
    }

    .calculator-tab {
        padding: 8px 14px;
        font-size: 0.88rem;
    }
}

/* ══════════════════════════════════════════════════════════
   INNER PAGE THEMING — Match Homepage Premium Design
   Applies to ALL loan, calculator, and apply pages
══════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────
   1. PAGE HERO — Enhanced with floating animation
   ────────────────────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, #0a0e1a 0%, #101828 40%, #0d1321 100%) !important;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background:
        radial-gradient(circle at 15% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 20%, rgba(212, 175, 55, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(100, 130, 200, 0.04) 0%, transparent 50%) !important;
    z-index: 0 !important;
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

/* Grid texture overlay on hero */
.page-hero::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background-image:
        linear-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px) !important;
    background-size: 40px 40px !important;
    opacity: 0.5 !important;
    z-index: 0 !important;
    pointer-events: none;
}

.page-hero .container,
.page-hero .category-hero-grid,
.page-hero .apply-hero-grid {
    position: relative;
    z-index: 2 !important;
}

/* Hero text visibility */
.page-hero h1 {
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-hero p,
.page-hero .category-bullets li,
.page-hero .apply-hero-points li {
    color: rgba(255, 255, 255, 0.85) !important;
}

.page-hero .category-bullets i,
.page-hero .apply-hero-points i {
    color: #d4af37 !important;
}

/* Hero poster card glow */
.hero-poster-card {
    position: relative;
}

.hero-poster-card::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.4), rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.3));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-poster-card:hover::after {
    opacity: 1;
}

/* ──────────────────────────────────────────────────
   2. SECTION BACKGROUNDS — Alternating Dark / Light
   ────────────────────────────────────────────────── */

/* Odd sections: dark navy theme */
.section:nth-of-type(odd) {
    background: linear-gradient(135deg, #0a0e1a 0%, #111827 50%, #0d1321 100%) !important;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Gold radial glow on dark sections */
.section:nth-of-type(odd)::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(212, 175, 55, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Grid pattern on dark sections */
.section:nth-of-type(odd)::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.section:nth-of-type(odd)>.container {
    position: relative;
    z-index: 1;
}

/* Even sections: silver/light theme */
.section:nth-of-type(even) {
    background: linear-gradient(135deg, #e8eef5 0%, #dfe6f0 50%, #e0eafc 100%) !important;
    position: relative;
    overflow: hidden;
}

.section:nth-of-type(even)::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(0, 0, 0, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.section:nth-of-type(even)>.container {
    position: relative;
    z-index: 1;
}

/* ──────────────────────────────────────────────────
   3. CONTENT VISIBILITY — High contrast on both themes
   ────────────────────────────────────────────────── */

/* Dark section text colors */
.section:nth-of-type(odd) .section-title {
    color: #fff !important;
}

.section:nth-of-type(odd) .section-subtitle {
    color: rgba(255, 255, 255, 0.7) !important;
}

.section:nth-of-type(odd) .feature-list li {
    color: rgba(255, 255, 255, 0.85) !important;
}

.section:nth-of-type(odd) .accent-line {
    background: linear-gradient(90deg, #d4af37, #f0d060) !important;
}

/* Light section text colors */
.section:nth-of-type(even) .section-title {
    color: #0a0e1a !important;
}

.section:nth-of-type(even) .section-subtitle {
    color: #4b5563 !important;
}

.section:nth-of-type(even) .feature-list li {
    color: #374151 !important;
}

/* ──────────────────────────────────────────────────
   4. CARD GLASSMORPHISM — Premium depth effect
   ────────────────────────────────────────────────── */

/* Cards on dark background */
.section:nth-of-type(odd) .card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.15) !important;
}

.section:nth-of-type(odd) .card h3 {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.section:nth-of-type(odd) .card:hover h3 {
    background: linear-gradient(135deg, #d4af37, #f0d060) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.section:nth-of-type(odd) .card p {
    color: rgba(255, 255, 255, 0.7) !important;
}

.section:nth-of-type(odd) .card:hover {
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.3), 0 0 20px rgba(212, 175, 55, 0.1) !important;
    border-color: rgba(212, 175, 55, 0.4) !important;
}

/* Cards on light background */
.section:nth-of-type(even) .card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fb 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.12) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.section:nth-of-type(even) .card h3 {
    color: #0a0e1a !important;
    -webkit-text-fill-color: #0a0e1a !important;
}

.section:nth-of-type(even) .card:hover h3 {
    background: linear-gradient(135deg, #d4af37, #b8940f) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.section:nth-of-type(even) .card p {
    color: #6b7280 !important;
}

/* ──────────────────────────────────────────────────
   5. CONTEXT CARD ON LIGHT SECTIONS
   ────────────────────────────────────────────────── */
.section:nth-of-type(even) .context-card {
    background: linear-gradient(145deg, #0a0e1a 0%, #1a1f2e 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
}

.section:nth-of-type(even) .context-card h3 {
    color: #fff !important;
}

.section:nth-of-type(even) .context-card p {
    color: rgba(255, 255, 255, 0.65) !important;
}

/* Context cards on dark sections — glass variant */
.section:nth-of-type(odd) .context-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
}

.section:nth-of-type(odd) .context-card h3 {
    color: #fff !important;
}

.section:nth-of-type(odd) .context-card p {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ──────────────────────────────────────────────────
   6. FAQ STYLING ON DARK SECTIONS
   ────────────────────────────────────────────────── */
.section:nth-of-type(odd) .faq-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 55, 0.15) !important;
}

.section:nth-of-type(odd) .faq-item summary {
    color: #fff !important;
}

.section:nth-of-type(odd) .faq-item summary:hover {
    color: #d4af37 !important;
}

.section:nth-of-type(odd) .faq-item[open] summary {
    color: #d4af37 !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15) !important;
}

.section:nth-of-type(odd) .faq-item p {
    color: rgba(255, 255, 255, 0.7) !important;
}

.section:nth-of-type(odd) .faq-item:hover {
    border-color: rgba(212, 175, 55, 0.35) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

/* ──────────────────────────────────────────────────
   7. FORM CARD ENHANCEMENTS — Animated gold glow
   ────────────────────────────────────────────────── */
.form-card {
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.4), rgba(212, 175, 55, 0.1), rgba(240, 208, 96, 0.3));
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.form-card:hover::before {
    opacity: 1;
}

/* Form label colors on dark backgrounds */
.form-card label {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Form inputs on dark form cards */
.form-card input,
.form-card select,
.form-card textarea {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1.5px solid rgba(212, 175, 55, 0.2) !important;
    color: #fff !important;
    border-radius: 12px;
    padding: 14px 18px;
    font-family: 'Space Grotesk', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
    border-color: #d4af37 !important;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15) !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

.form-card input::placeholder,
.form-card textarea::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.form-card select option {
    background: #1a1a2e;
    color: #fff;
}

.form-card .form-note {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* ──────────────────────────────────────────────────
   8. CALCULATOR SHELL — Gold glow border animation
   ────────────────────────────────────────────────── */
.calculator-shell {
    position: relative;
    overflow: hidden;
}

.section:nth-of-type(odd) .calculator-shell {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3) !important;
}

.section:nth-of-type(odd) .calculator-panel {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(212, 175, 55, 0.1) !important;
}

.section:nth-of-type(odd) .calculator-panel h2 {
    color: #fff !important;
}

.section:nth-of-type(odd) .calculator-fields label {
    color: rgba(255, 255, 255, 0.85) !important;
}

.section:nth-of-type(odd) .calculator-fields input,
.section:nth-of-type(odd) .calculator-fields select {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1.5px solid rgba(212, 175, 55, 0.15) !important;
    color: #fff !important;
}

.section:nth-of-type(odd) .calculator-fields input:focus,
.section:nth-of-type(odd) .calculator-fields select:focus {
    border-color: #d4af37 !important;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12) !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

.section:nth-of-type(odd) .calculator-note {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ──────────────────────────────────────────────────
   9. SECTION DIVIDERS — Subtle gold gradient lines
   ────────────────────────────────────────────────── */
.section+.section {
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

/* ──────────────────────────────────────────────────
   10. FLOATING ICON ANIMATION — Background motion
   ────────────────────────────────────────────────── */
@keyframes innerPageFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(3deg);
    }
}

@keyframes innerPagePulse {

    0%,
    100% {
        opacity: 0.03;
    }

    50% {
        opacity: 0.06;
    }
}

/* Floating decorative ring on dark sections */
.section:nth-of-type(odd)>.container::before {
    content: '₹';
    position: absolute;
    top: -20px;
    right: -40px;
    font-size: 12rem;
    font-weight: 900;
    color: rgba(212, 175, 55, 0.03);
    pointer-events: none;
    animation: innerPageFloat 8s ease-in-out infinite;
    z-index: 0;
}

/* Another floating accent on even sections */
.section:nth-of-type(even)>.container::before {
    content: '%';
    position: absolute;
    bottom: -20px;
    left: -30px;
    font-size: 10rem;
    font-weight: 900;
    color: rgba(212, 175, 55, 0.04);
    pointer-events: none;
    animation: innerPageFloat 10s ease-in-out infinite;
    animation-delay: 2s;
    z-index: 0;
}

/* ──────────────────────────────────────────────────
   11. APPLY PAGE HERO — Special gold accent
   ────────────────────────────────────────────────── */
.apply-hero {
    border-bottom: 3px solid rgba(212, 175, 55, 0.3) !important;
}

.apply-hero .apply-hero-copy h1 {
    position: relative;
}

.apply-hero .apply-hero-copy h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #f0d060);
    border-radius: 2px;
    margin-top: 16px;
}

/* ──────────────────────────────────────────────────
   12. SPLIT LAYOUT VISIBILITY FIX
   ────────────────────────────────────────────────── */
.section:nth-of-type(odd) .split .reveal .section-title {
    color: #fff !important;
}

.section:nth-of-type(odd) .split .reveal .section-subtitle {
    color: rgba(255, 255, 255, 0.7) !important;
}

.section:nth-of-type(odd) .split .reveal .feature-list li {
    color: rgba(255, 255, 255, 0.85) !important;
}

.section:nth-of-type(odd) .split .reveal .feature-list li::before {
    color: #d4af37 !important;
}

/* ──────────────────────────────────────────────────
   13. CARD ICON ON DARK SECTIONS
   ────────────────────────────────────────────────── */
.section:nth-of-type(odd) .card i {
    color: #d4af37 !important;
    background: rgba(212, 175, 55, 0.1) !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
}

/* ──────────────────────────────────────────────────
   14. CALCULATOR TABS ON DARK SECTIONS
   ────────────────────────────────────────────────── */
.section:nth-of-type(odd) .calculator-tab {
    background: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(212, 175, 55, 0.2) !important;
}

.section:nth-of-type(odd) .calculator-tab:hover {
    color: #fff !important;
    border-color: rgba(212, 175, 55, 0.5) !important;
}

.section:nth-of-type(odd) .calculator-tab.is-active {
    background: linear-gradient(135deg, #d4af37, #f0d060) !important;
    color: #000 !important;
    border-color: #d4af37 !important;
}

/* ──────────────────────────────────────────────────
   15. RESPONSIVE ADJUSTMENTS
   ────────────────────────────────────────────────── */
@media (max-width: 768px) {

    .section:nth-of-type(odd)>.container::before,
    .section:nth-of-type(even)>.container::before {
        font-size: 6rem;
        top: auto;
        bottom: -10px;
        right: -10px;
        left: auto;
    }
}

@media (max-width: 480px) {}

/* ──────────────────────────────────────────────────
   HERO SPACING ENHANCEMENTS
   ────────────────────────────────────────────────── */
.page-hero,
.calc-hero {
    padding-top: 140px;
    /* Account for fixed header */
    padding-bottom: 80px;
    min-height: auto;
    /* Remove excessive height constraint */
}

@media (max-width: 991px) {

    .page-hero,
    .calc-hero {
        padding-top: 120px;
        padding-bottom: 60px;
        text-align: center;
    }

    .apply-hero-grid,
    .calculator-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-poster-card {
        order: -1;
        /* Image above text on mobile */
        max-width: 400px;
        margin: 0 auto;
    }

    .apply-hero-copy h1,
    .calc-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {

    .page-hero,
    .calc-hero {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .apply-hero-copy h1,
    .calc-hero h1 {
        font-size: 2rem;
    }
}

/* ──────────────────────────────────────────────────
   CATEGORY HERO REFINEMENTS (Explore Section)
   ────────────────────────────────────────────────── */
.category-hero {
    padding-top: 120px;
    padding-bottom: 60px;
    position: relative;
}

.category-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.category-hero-copy {
    max-width: 650px;
}

.category-hero-copy h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-hero-copy p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Creative Bullet Points */
.category-bullets {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 30px;
    padding: 0;
    list-style: none;
}

.category-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.category-bullets li:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateX(5px);
}

.category-bullets i {
    font-size: 1.4rem;
    color: #d4af37;
    flex-shrink: 0;
    margin-top: 2px;
}

.category-bullets strong {
    color: #fff;
    font-weight: 600;
}

/* Tighter Hero Poster */
.hero-poster-card {
    position: relative;
    max-width: 480px;
    margin-left: auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.hero-poster-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.hero-poster-card:hover img {
    transform: scale(1.03);
}

/* Button Group Adjustment */
.category-hero-cta {
    display: flex;
    gap: 16px;
    margin-top: 30px;
}

@media (max-width: 991px) {
    .category-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .category-hero-copy {
        margin: 0 auto;
    }

    .category-bullets {
        text-align: left;
    }

    .hero-poster-card {
        margin: 0 auto;
        max-width: 100%;
    }


    .category-hero-cta {
        justify-content: center;
    }
}

/* Trust Indicators styling */
.hero-trust-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.trust-item i {
    color: #d4af37;
    font-size: 1.1rem;
}

/* ──────────────────────────────────────────────────
   CALCULATOR HERO REDESIGN
   ────────────────────────────────────────────────── */

/* ──────────────────────────────────────────────────
   CALCULATOR HERO REDESIGN - VISUAL UPDATE
   ────────────────────────────────────────────────── */

/* Centers the hero content for calculators */
.calc-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, #11141a 0%, #050608 100%);
    padding-top: 100px;
    padding-bottom: 80px;
}

.calc-hero .category-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Background Floating Icons */
.calc-bg-visuals {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.calc-bg-visuals i {
    position: absolute;
    color: rgba(212, 175, 55, 0.04);
    font-size: 8rem;
    animation: floatIcon 20s infinite linear;
}

.calc-bg-visuals i:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-duration: 25s;
}

.calc-bg-visuals i:nth-child(2) {
    top: 70%;
    left: -5%;
    font-size: 15rem;
    animation-duration: 35s;
}

.calc-bg-visuals i:nth-child(3) {
    top: 15%;
    right: 15%;
    font-size: 8rem;
    animation-duration: 28s;
}

.calc-bg-visuals i:nth-child(4) {
    bottom: 5%;
    right: -2%;
    font-size: 12rem;
    animation-duration: 32s;
}

.calc-bg-visuals i:nth-child(5) {
    top: 45%;
    right: 80%;
    font-size: 6rem;
    animation-duration: 22s;
}

@keyframes floatIcon {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(15deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.calc-hero .category-hero-copy {
    margin: 0 auto;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.calc-hero .category-hero-copy p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin-bottom: 40px;
}

.calc-hero .hero-poster-card {
    display: none;
}

.calc-hero h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem) !important;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.15;
}

.calc-hero .category-bullets {
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
    width: 100%;
}


/* New Feature Grid for Calculator Hero - Boxed Style */
.hero-features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin: 45px auto 50px auto;
    width: 100%;
}

.hero-feature-card {
    background: rgba(20, 25, 35, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 16px;
    padding: 22px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    flex: 1 1 220px;
    max-width: 280px;
}

.hero-feature-card:hover {
    background: rgba(30, 35, 45, 0.6);
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.hero-feature-card i {
    font-size: 2.2rem;
    color: #d4af37;
    margin-bottom: 5px;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5));
}

.hero-feature-card span {
    font-size: 1.05rem;
    line-height: 1.4;
    color: rgba(240, 240, 240, 0.95);
    font-weight: 500;
}

/* Buttons Update */
.btn-pill {
    border-radius: 50px;
    padding: 15px 38px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.category-hero-cta {
    display: flex;
    gap: 24px;
    margin-top: 50px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* ──────────────────────────────────────────────────
   CALCULATOR SHELL - PREMIUM GLASS UPGRADE
   ────────────────────────────────────────────────── */
/* ──────────────────────────────────────────────────
   CALCULATOR SHELL - HIGH CONTRAST PREMIUM
   ────────────────────────────────────────────────── */
.calculator-shell {
    /* Solid premium dark background for strong contrast regardless of section color behind it */
    background: linear-gradient(145deg, #161b22, #0d1117);
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(212, 175, 55, 0.15),
        inset 0 0 40px rgba(0, 0, 0, 0.5);
    padding: 50px;
    border-radius: 30px;
    position: relative;
    overflow: visible;
    margin-top: -80px;
    z-index: 10;
}

.calculator-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 30px !important;
}

/* Enhanced Gold Glow */
.calculator-shell::after {
    content: '';
    position: absolute;
    inset: -3px;
    z-index: -1;
    border-radius: 32px;
    background: linear-gradient(135deg, transparent 20%, rgba(212, 175, 55, 0.4) 50%, transparent 80%);
    opacity: 0.6;
    filter: blur(15px);
    animation: borderGlow 5s ease-in-out infinite alternate;
}

@keyframes borderGlow {
    0% {
        opacity: 0.4;
        transform: scale(0.99);
    }

    100% {
        opacity: 0.7;
        transform: scale(1.01);
    }
}

/* Tab Styling - Solid contrast */
.calculator-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    /* Connected tabs */
    margin-bottom: 35px;
    background: #050810;
    padding: 6px;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.calculator-tab {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.calculator-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.calculator-tab.is-active {
    background: linear-gradient(135deg, #d4af37, #f0d060);
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

/* Panel & Inputs - Increased Visibility */
.calculator-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px;
}

.calculator-fields label {
    color: #d4af37;
    /* Gold labels for visibility */
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
    display: block;
}

.calculator-fields input {
    width: 100%;
    background: #111822 !important;
    /* Dark solid background for contrast */
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    font-size: 1.2rem;
    padding: 16px 20px;
    border-radius: 14px;
    transition: all 0.3s ease;
}

.calculator-fields input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.calculator-fields input:hover {
    border-color: rgba(255, 255, 255, 0.4) !important;
    background: #151d2a !important;
}

.calculator-fields input:focus {
    border-color: #d4af37 !important;
    box-shadow: 0 0 0 1px #d4af37, 0 10px 25px rgba(0, 0, 0, 0.3) !important;
    background: #000 !important;
    transform: translateY(-2px);
}

/* Results Section - Distinct Box */
.calculator-output {
    background: linear-gradient(145deg, #1a1f2e, #0f121a);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    padding: 30px;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.calculator-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
}

.calculator-metric:last-child {
    border-bottom: none;
}

.calculator-metric strong {
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    background: linear-gradient(90deg, #fff, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.calculator-note {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 900px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }

    .calc-hero h1 {
        font-size: 2.5rem !important;
    }

    .calculator-shell {
        margin-top: 0;
        padding: 24px;
    }

    /* ──────────────────────────────────────────────────
   THEME CONSISTENCY UPDATES (From About Us)
   ────────────────────────────────────────────────── */

    /* Typography Updates */
    .calc-hero h1,
    .calculator-panel h2,
    .section-title {
        font-family: 'Playfair Display', serif;
    }

    /* Gradient & Color Refinements */
    .calc-hero h1 {
        background: linear-gradient(135deg, #d4af37, #f0d060, #d4af37) !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-size: 200% auto;
        animation: shine 5s linear infinite;
        text-shadow: none !important;
    }

    @keyframes shine {
        to {
            background-position: 200% center;
        }
    }

    /* Button Refinements (Matching .btn-gold) */
    .btn-pill.btn-primary {
        background: linear-gradient(135deg, #d4af37, #f0d060) !important;
        color: #000 !important;
        box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3) !important;
        border: none !important;
        transition: transform 0.3s, box-shadow 0.3s !important;
    }

    .btn-pill.btn-primary:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 12px 32px rgba(212, 175, 55, 0.5) !important;
    }

    /* Secondary Button (Matching .btn-ghost) */
    .btn-pill.btn-outline {
        border: 2px solid rgba(212, 175, 55, 0.6) !important;
        color: #d4af37 !important;
        background: transparent !important;
        backdrop-filter: blur(10px);
    }

    .btn-pill.btn-outline:hover {
        background: rgba(212, 175, 55, 0.1) !important;
        border-color: #d4af37 !important;
        transform: translateY(-3px) !important;
        color: #fff !important;
    }

    /* Hero Badge Style for Context */
    .calc-hero .hero-instruction {
        display: inline-flex;
        background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(0, 0, 0, 0.3));
        border: 1px solid rgba(212, 175, 55, 0.3);
        color: #d4af37;
        padding: 10px 24px;
        border-radius: 50px;
        font-size: 0.9rem;
        margin-bottom: 30px;
    }

    .calc-hero .hero-instruction i {
        color: #fff;
        margin-right: 8px;
    }
}



/* Hub Premium Hero Styles */
.hero-premium-calc {
    padding: 120px 0 80px;
    position: relative;
    min-height: 85vh;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #000 100%) !important;
    color: #fff !important;
    overflow: hidden;
}

.hero-premium-calc-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-premium-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    z-index: 5;
    position: relative;
    width: 100%;
    max-width: 1280px;
}

.hero-premium-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    line-height: 1.1;
    margin-bottom: 24px;
    color: #fff !important;
}

.hero-premium-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.15rem;
    max-width: 540px;
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-premium-content .hero-prem-vis {
    display: block !important;
    position: relative;
}

.vis-card-main {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    min-width: 320px;
}

.vis-stat-box .vis-value {
    color: #fff !important;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 5px;
    display: block;
}

.vis-logo-tag {
    color: #fff;
    font-weight: bold;
}

.vis-graph-area {
    height: 160px;
    display: flex !important;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.vis-bar {
    width: 12%;
    background: linear-gradient(0deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 1) 100%);
    border-radius: 4px 4px 0 0;
}

/* ========================================================================= */
/* Calculator Global Visibility & Dashboard Enhancements
/* ========================================================================= */

/* Enhance Text and Icon Visibility universally on Calculator Pages */
body.calculator-page p,
body.calculator-page .section-subtitle,
body.calculator-page .faq-item p,
body.calculator-page .card p,
body.calculator-page .context-card p {
    color: #c4c4c4 !important;
    /* Brighter grey for much better legibility */
}

body.calculator-page .card i,
body.calculator-page .context-card i {
    color: #d4af37 !important;
    /* Gold icons */
    font-size: 2.2rem;
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.5));
    transition: transform 0.3s ease, filter 0.3s ease;
}

body.calculator-page .card:hover i,
body.calculator-page .context-card:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.8));
}

body.calculator-page .calculator-fields label {
    color: #f0f0f0 !important;
    font-weight: 600;
}

body.calculator-page .calculator-fields input,
body.calculator-page .calculator-fields select {
    background: rgba(10, 10, 10, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
}

/* DASHBOARD RESULT SECTION CREATIVE REDESIGN */
body.calculator-page .calculator-output {
    background: linear-gradient(145deg, rgba(20, 24, 34, 0.9), rgba(10, 12, 18, 0.95)) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), inset 0 0 30px rgba(212, 175, 55, 0.05) !important;
    position: relative;
    overflow: hidden;
    padding: 35px 25px;
}

/* Rotating Glow behind the results panel */
body.calculator-page .calculator-output::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, transparent, transparent, rgba(212, 175, 55, 0.15));
    animation: spinGlow 8s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes spinGlow {
    100% {
        transform: rotate(360deg);
    }
}

body.calculator-page .calculator-metrics {
    position: relative;
    z-index: 1;
}

/* Animated Result Rows */
body.calculator-page .calculator-metric {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 18px 25px !important;
    border-radius: 12px;
    margin-bottom: 15px;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.calculator-page .calculator-metric:hover {
    background: rgba(212, 175, 55, 0.08) !important;
    border-color: rgba(212, 175, 55, 0.4) !important;
    transform: scale(1.02) translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

body.calculator-page .calculator-metric span {
    font-size: 1.15rem;
    color: #e2e8f0;
    font-weight: 500;
}

/* Highly visible glowing result numbers */
body.calculator-page .calculator-metric strong {
    font-size: 2.2rem !important;
    font-family: 'Space Grotesk', sans-serif !important;
    background: linear-gradient(90deg, #fff, #d4af37, #fff) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: 0 0 25px rgba(212, 175, 55, 0.4) !important;
    background-size: 200% auto !important;
    animation: textShine 4s linear infinite;
    letter-spacing: 0.5px;
}

@keyframes textShine {
    to {
        background-position: 200% center;
    }
}

/* Creative entry animation for results when calculation triggers */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

body.calculator-page .calculator-metric {
    animation: slideUpFade 0.6s ease forwards;
}

body.calculator-page .calculator-metric:nth-child(1) {
    animation-delay: 0.1s;
}

body.calculator-page .calculator-metric:nth-child(2) {
    animation-delay: 0.2s;
}

body.calculator-page .calculator-metric:nth-child(3) {
    animation-delay: 0.3s;
}

body.calculator-page .calculator-metric:nth-child(4) {
    animation-delay: 0.4s;
}

/* Dashboard Pulse Action Button */
body.calculator-page .calculator-actions .btn-primary {
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    animation: glowingButton 2s infinite;
}

@keyframes glowingButton {
    0% {
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.7);
        transform: scale(1.01);
    }

    100% {
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    }
}

/* Input sliders and fields focus effect */
body.calculator-page input:focus {
    box-shadow: 0 0 0 2px #000, 0 0 0 4px #d4af37 !important;
    border-color: #d4af37 !important;
}

/* Calculator specific tabs redesign */
body.calculator-page .calculator-tabs {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.calculator-page .calculator-tab {
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

body.calculator-page .calculator-tab.is-active {
    background: linear-gradient(135deg, #d4af37, #f0d060) !important;
    color: #000 !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4) !important;
    transform: scale(1.02);
}

/* ══════════════════════════════════════════════════════════
   IFRAME EMBED MODE (For All-In-One Dashboard)
══════════════════════════════════════════════════════════ */
body.is-iframe header,
body.is-iframe footer,
body.is-iframe .page-hero,
body.is-iframe .skip-link,
body.is-iframe .float-stack,
body.is-iframe h2.section-title,
body.is-iframe p.section-subtitle,
body.is-iframe .accent-line,
body.is-iframe section#features-actions-section,
body.is-iframe section:last-child {
    display: none !important;
}

body.is-iframe {
    padding: 0 !important;
    background: transparent !important;
}

body.is-iframe #main {
    padding: 0 !important;
    margin: 0 !important;
}

body.is-iframe section#calculator-section {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

body.is-iframe .calculator-shell {
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 20px !important;
    background: transparent !important;
}