/* ════════════════════════════════════════════════════
   INSTALLMENT PAGE — Custom Styles
════════════════════════════════════════════════════ */

:root {
    --inst-gold:    #f5a623;
    --inst-green:   #22c55e;
    --inst-blue:    #466cfb;
    --inst-purple:  #7c3aed;
    --inst-red:     #ff2a5f;
    --inst-dark:    #0a0a12;
    --inst-card-bg: rgba(255,255,255,0.04);
    --inst-border:  rgba(255,255,255,0.1);
}

/* ── HERO ───────────────────────────────────────── */
.inst-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #07070f 0%, #0d0d1f 40%, #110d22 100%);
    overflow: hidden;
    padding: 120px 0 80px;
}
.inst-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 30%, rgba(70,108,251,0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 20% 70%, rgba(245,166,35,0.1) 0%, transparent 60%);
    pointer-events: none;
}
.inst-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.inst-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245,166,35,0.15);
    border: 1px solid rgba(245,166,35,0.3);
    color: var(--inst-gold);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: clamp(11px, 1.2vw, 14px);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}
.inst-hero-title {
    font-size: clamp(38px, 6vw, 78px);
    font-weight: 900;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 24px;
}

/* Malayalam Font Size Override */
html[lang="ml"] .inst-hero-title {
    font-size: clamp(28px, 3.5vw, 48px) !important;
    line-height: 1.4 !important;
}
/* Arabic Font Size Override */
html[lang="ar"] .inst-hero-title {
    font-size: clamp(32px, 4.5vw, 60px) !important;
    line-height: 1.3 !important;
}

.inst-hero-title .line-gold { color: var(--inst-gold); }
.inst-hero-title .line-grad {
    background: linear-gradient(90deg, #466cfb, #ff2a5f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.inst-hero-desc {
    font-size: clamp(14px, 1.5vw, 17px);
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 520px;
}
.inst-hero-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.inst-stat-pill {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 14px 20px;
    text-align: center;
    min-width: 110px;
}
.inst-stat-pill .val {
    display: block;
    font-size: clamp(14px, 1.6vw, 16px);
    font-weight: 800;
    color: var(--inst-gold);
    margin-bottom: 4px;
}
.inst-stat-pill .lbl {
    font-size: clamp(10px, 1vw, 12px);
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

/* ── VISUAL CARD ─────────────────────────────────── */
.inst-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.inst-card-main {
    background: linear-gradient(145deg, rgba(70,108,251,0.15), rgba(124,58,237,0.1));
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 28px;
    padding: 40px;
    backdrop-filter: blur(20px);
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 2;
}
.inst-card-main .card-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--inst-gold), #e08500);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(245,166,35,0.4);
}
.inst-card-main h3 {
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}
.inst-card-main p {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 24px;
}
.inst-plan-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.inst-plan-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s;
}
.inst-plan-row:hover {
    border-color: rgba(245,166,35,0.3);
    background: rgba(245,166,35,0.08);
}
.inst-plan-row .pmonths {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.inst-plan-row .pmonths i { color: var(--inst-gold); }
.inst-plan-row .ppercent {
    font-size: 13px;
    color: var(--inst-gold);
    font-weight: 700;
}
.inst-float-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    background: linear-gradient(135deg, var(--inst-green), #16a34a);
    color: #fff;
    padding: 10px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(34,197,94,0.35);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 3;
}
.inst-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
}

/* ── CALCULATOR ─────────────────────────────────── */
.inst-calc-section {
    padding: 100px 0;
    background: #0a0a14;
    position: relative;
    overflow: hidden;
}
.inst-calc-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(70,108,251,0.07) 0%, transparent 70%);
    pointer-events: none;
}
.inst-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(70,108,251,0.12);
    border: 1px solid rgba(70,108,251,0.3);
    color: var(--inst-blue);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    text-transform: uppercase;
}
.inst-section-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.15;
}
.inst-section-desc {
    font-size: clamp(14px, 1.4vw, 16px);
    color: rgba(255,255,255,0.55);
    margin-bottom: 50px;
}
.inst-calc-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.inst-calc-form {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 36px;
}
.inst-form-group {
    margin-bottom: 24px;
}
.inst-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.inst-input {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    outline: none;
    transition: all 0.3s;
    font-family: inherit;
}
.inst-input:focus {
    border-color: var(--inst-gold);
    background: rgba(245,166,35,0.06);
    box-shadow: 0 0 0 3px rgba(245,166,35,0.12);
}
.inst-month-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.inst-month-btn {
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 12px 8px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-family: inherit;
}
.inst-month-btn:hover {
    border-color: rgba(245,166,35,0.4);
    color: var(--inst-gold);
}
.inst-month-btn.active {
    background: linear-gradient(135deg, var(--inst-gold), #e08500);
    border-color: var(--inst-gold);
    color: #fff;
    box-shadow: 0 4px 15px rgba(245,166,35,0.4);
}
.inst-calc-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--inst-gold) 0%, #e08500 100%);
    border: none;
    border-radius: 14px;
    padding: 16px 24px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    box-shadow: 0 6px 25px rgba(245,166,35,0.35);
}
.inst-calc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(245,166,35,0.5);
}

/* ── RESULT CARD ─────────────────────────────────── */
.inst-result-card {
    background: linear-gradient(145deg, rgba(70,108,251,0.12), rgba(124,58,237,0.08));
    border: 1px solid rgba(70,108,251,0.25);
    border-radius: 24px;
    padding: 36px;
    position: relative;
    overflow: hidden;
}
.inst-result-card::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(245,166,35,0.12), transparent 70%);
    pointer-events: none;
}
.inst-result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}
.inst-result-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--inst-gold), #e08500);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(245,166,35,0.35);
}
.inst-result-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}
.inst-result-header p {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin: 4px 0 0;
}
.inst-emi-display {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255,255,255,0.04);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 24px;
}
.inst-emi-label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.inst-emi-amount {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    color: var(--inst-gold);
    line-height: 1;
    margin-bottom: 4px;
    transition: all 0.4s;
}
.inst-emi-unit {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}
.inst-result-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}
.inst-detail-box {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}
.inst-detail-box .dval {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}
.inst-detail-box .dlbl {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.inst-start-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: linear-gradient(135deg, var(--inst-blue) 0%, var(--inst-purple) 100%);
    color: #fff;
    padding: 15px 24px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 6px 25px rgba(70,108,251,0.35);
}
.inst-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(70,108,251,0.5);
    color: #fff;
}

/* ── HOW IT WORKS ─────────────────────────────────── */
.inst-how-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #0d0d1f 0%, #080812 100%);
    position: relative;
    overflow: hidden;
}
.inst-steps-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}
.inst-steps-wrap::before {
    content: '';
    position: absolute;
    top: 55px;
    left: 16%;
    right: 16%;
    height: 2px;
    background: linear-gradient(90deg, var(--inst-gold), var(--inst-blue), var(--inst-purple));
    z-index: 0;
    opacity: 0.4;
}
.inst-step-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 36px 28px;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: all 0.4s;
}
.inst-step-card:hover {
    border-color: rgba(245,166,35,0.3);
    background: rgba(245,166,35,0.05);
    transform: translateY(-8px);
}
.inst-step-num {
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    margin: 0 auto 20px;
    position: relative;
    z-index: 2;
}
.inst-step-num.s1 {
    background: linear-gradient(135deg, var(--inst-gold), #c97900);
    color: #fff;
    box-shadow: 0 6px 20px rgba(245,166,35,0.4);
}
.inst-step-num.s2 {
    background: linear-gradient(135deg, var(--inst-blue), #2340e0);
    color: #fff;
    box-shadow: 0 6px 20px rgba(70,108,251,0.4);
}
.inst-step-num.s3 {
    background: linear-gradient(135deg, var(--inst-green), #16a34a);
    color: #fff;
    box-shadow: 0 6px 20px rgba(34,197,94,0.4);
}
.inst-step-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}
.inst-step-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
}

/* ── PLANS SECTION ────────────────────────────────── */
.inst-plans-section {
    padding: 100px 0;
    background: #070710;
    position: relative;
    overflow: hidden;
}
.inst-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.inst-plan-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 28px;
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
}
.inst-plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.inst-plan-card.featured {
    border-color: rgba(245,166,35,0.35);
    background: linear-gradient(145deg, rgba(245,166,35,0.08), rgba(70,108,251,0.06));
}
.inst-plan-card.featured:hover {
    box-shadow: 0 20px 60px rgba(245,166,35,0.2);
}
.inst-plan-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--inst-gold), #e08500);
    color: #fff;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}
.inst-plan-badge.blue {
    background: linear-gradient(135deg, var(--inst-blue), var(--inst-purple));
}
.inst-plan-badge.green {
    background: linear-gradient(135deg, var(--inst-green), #16a34a);
}
.inst-plan-card h3 {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
}
.inst-plan-fraction {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 900;
    color: var(--inst-gold);
    margin-bottom: 4px;
    line-height: 1.1;
}
.inst-plan-fraction span { font-size: 50%; color: rgba(255,255,255,0.6); }
.inst-plan-of {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 24px;
}
.inst-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}
.inst-plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.inst-plan-features li:last-child { border-bottom: none; }
.inst-plan-features li i { color: var(--inst-green); font-size: 13px; }
.inst-plan-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 13px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    font-family: inherit;
}
.inst-plan-cta:hover,
.inst-plan-cta.gold {
    background: linear-gradient(135deg, var(--inst-gold), #e08500);
    border-color: var(--inst-gold);
    color: #fff;
    box-shadow: 0 6px 20px rgba(245,166,35,0.35);
    text-decoration: none;
}
.inst-plan-card.featured .inst-plan-cta {
    background: linear-gradient(135deg, var(--inst-gold), #e08500);
    border-color: var(--inst-gold);
    box-shadow: 0 6px 20px rgba(245,166,35,0.35);
}

/* ── FAQ ─────────────────────────────────────────── */
.inst-faq-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #0a0a14 0%, #0d0d1f 100%);
}
.inst-faq-wrap {
    max-width: 800px;
    margin: 0 auto;
}
.inst-faq-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 16px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: all 0.3s;
}
.inst-faq-item.open {
    border-color: rgba(245,166,35,0.3);
    background: rgba(245,166,35,0.04);
}
.inst-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    gap: 16px;
    user-select: none;
}
.inst-faq-q i.arrow {
    color: var(--inst-gold);
    flex-shrink: 0;
    transition: transform 0.3s;
}
.inst-faq-item.open .inst-faq-q i.arrow { transform: rotate(180deg); }
.inst-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    line-height: 1.8;
    padding: 0 24px;
}
.inst-faq-item.open .inst-faq-a {
    max-height: 200px;
    padding: 0 24px 20px;
}

/* ── CTA ─────────────────────────────────────────── */
.inst-cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #07070f 0%, #0f0f25 100%);
    position: relative;
    overflow: hidden;
}
.inst-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 60% at 20% 50%, rgba(245,166,35,0.1) 0%, transparent 60%),
        radial-gradient(ellipse 60% 60% at 80% 50%, rgba(70,108,251,0.1) 0%, transparent 60%);
    pointer-events: none;
}
.inst-cta-inner {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}
.inst-cta-inner h2 {
    font-size: clamp(30px, 5vw, 56px);
    font-weight: 900;
    color: #fff;
    margin-bottom: 16px;
}
.inst-cta-inner p {
    font-size: clamp(14px, 1.5vw, 17px);
    color: rgba(255,255,255,0.65);
    margin-bottom: 36px;
    line-height: 1.7;
}
.inst-cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.inst-btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--inst-gold), #e08500);
    color: #fff;
    padding: 16px 34px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 6px 25px rgba(245,166,35,0.35);
}
.inst-btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(245,166,35,0.5);
    color: #fff;
}
.inst-btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(37,211,102,0.15);
    border: 1px solid rgba(37,211,102,0.35);
    color: #25d366;
    padding: 16px 34px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s;
}
.inst-btn-wa:hover {
    background: #25d366;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(37,211,102,0.3);
}

/* ── Floating decorative orbs ─────────────────────── */
.inst-orb-1 {
    top: -100px; left: -100px;
    width: 400px; height: 400px;
    background: rgba(70,108,251,0.15);
}
.inst-orb-2 {
    bottom: -100px; right: -100px;
    width: 350px; height: 350px;
    background: rgba(245,166,35,0.1);
}

/* RTL fixes */
[dir="rtl"] .inst-hero-grid,
[dir="rtl"] .inst-calc-wrap { direction: rtl; }
[dir="rtl"] .inst-steps-wrap::before { left: 16%; right: 16%; }

/* RESPONSIVE */
@media (max-width: 992px) {
    .inst-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .inst-visual { order: -1; }
    .inst-calc-wrap { grid-template-columns: 1fr; }
    .inst-steps-wrap { grid-template-columns: 1fr; }
    .inst-steps-wrap::before { display: none; }
    .inst-plans-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}
@media (max-width: 576px) {
    .inst-hero { padding: 100px 0 60px; }
    .inst-hero-stats { gap: 12px; }
    .inst-stat-pill { min-width: 90px; padding: 10px 14px; }
    .inst-month-selector { grid-template-columns: repeat(2, 1fr); }
    .inst-result-details { grid-template-columns: 1fr; }
    .inst-cta-btns { flex-direction: column; align-items: center; }
}
