/* =============================================
   AZM-E-NAU 2026 — Landing Page Stylesheet
   Theme: deep green poster style, Quran Academy Islamabad
   ============================================= */

:root {
    --an-green-deep:  #031a14;
    --an-green-dark:  #06352a;
    --an-green:       #0b5a43;
    --an-teal:        #17a883;
    --an-teal-glow:   rgba(23, 168, 131, 0.35);
    --an-white:       #ffffff;
    --an-text:        #e8f3ef;
    --an-muted:       #9fbfb4;
    --an-border:      rgba(255, 255, 255, 0.14);
    --an-card:        rgba(4, 30, 23, 0.78);
    --an-form-surface: rgba(4, 30, 23, 0.94);
    --an-form-field:   rgba(3, 26, 20, 0.7);
    --an-form-ink:     #e8f3ef;
    --an-form-muted:   #9fbfb4;
    --an-form-border:  rgba(255, 255, 255, 0.18);

    --font-en:        'Montserrat', 'Inter', sans-serif;
    --font-body:      'Inter', sans-serif;
    --font-ur:        'Aref Ruqaa', 'Amiri', serif;
    --transition:     all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--an-text);
    background: var(--an-green-deep);
    line-height: 1.6;
    overflow-x: hidden;
}

.an-page {
    position: relative;
    overflow-x: hidden;
    background: linear-gradient(180deg, var(--an-green) 0%, var(--an-green-dark) 45%, var(--an-green-deep) 100%);
}

.an-event-main {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.an-event-main::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(180deg, rgba(3, 26, 20, 0.48) 0%, rgba(3, 26, 20, 0.68) 42%, rgba(3, 26, 20, 0.88) 76%, var(--an-green-deep) 100%),
        var(--an-event-background);
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* ============ HERO ============ */
.an-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 24px 56px;
    isolation: isolate;
}

.an-brand {
    width: 100%;
    max-width: 1040px;
    display: flex;
    align-items: center;
}

.an-brand-logo {
    height: 56px;
    width: auto;
}

.an-hero-inner {
    flex: 1;
    width: 100%;
    max-width: 1040px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 40px;
}

/* Title logo (Azm-e-Naue lockup) */
.an-title-logo {
    width: 100%;
    margin-bottom: 8px;
}

.an-title-logo img {
    display: block;
    width: 100%;
    max-width: 880px;
    height: auto;
    margin-left: auto;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
    animation: anReveal 0.9s ease-out both;
}

@keyframes anReveal {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.an-special {
    font-family: var(--font-en);
    color: var(--an-white);
    font-size: clamp(1.6rem, 3.6vw, 2.6rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.5px;
    margin: 0 0 40px;
}
.an-special em { font-style: italic; font-weight: 700; }
.an-special span { display: block; }

/* Info block */
.an-info {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--an-teal);
}

.an-invite h4 {
    font-family: var(--font-en);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--an-white);
    padding-bottom: 6px;
    margin-bottom: 8px;
    display: inline-block;
    border-bottom: 1px solid var(--an-teal);
}

.an-invite ul { list-style: none; }
.an-invite li {
    position: relative;
    padding-left: 22px;
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--an-text);
    line-height: 1.7;
}
.an-invite li::before {
    content: "";
    position: absolute;
    left: 6px; top: 0.8em;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--an-white);
}

.an-when {
    border-left: 2px solid var(--an-teal);
    padding-left: 28px;
    font-family: var(--font-en);
    color: var(--an-white);
    font-weight: 700;
    font-size: clamp(1.5rem, 3.4vw, 2.3rem);
    line-height: 1.05;
    letter-spacing: -1px;
    align-self: center;
}

.an-venue-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 32px;
    padding: 20px 0;
    border-bottom: 2px solid var(--an-teal);
}

.an-venue {
    font-family: var(--font-en);
    font-weight: 700;
    color: var(--an-white);
    font-size: clamp(1.5rem, 3.4vw, 2.3rem);
    letter-spacing: -1px;
    line-height: 1.1;
}
.an-venue small {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0;
    margin-left: 8px;
    text-transform: uppercase;
    color: var(--an-text);
}
.an-map-link {
    color: #5eead4;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0;
    text-decoration: underline;
}
.an-map-link:hover,
.an-map-link:focus { color: var(--an-white); }
.an-venue .an-map-link { display: block; margin-top: 8px; }

.an-contact { text-align: right; }
.an-contact span {
    display: block;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--an-text);
    margin-bottom: -4px;
}
.an-contact a {
    font-family: var(--font-en);
    font-weight: 700;
    color: var(--an-white);
    text-decoration: none;
    font-size: clamp(1.6rem, 3.8vw, 2.6rem);
    letter-spacing: -1px;
}

.an-meet {
    text-align: center;
    padding: 18px 0 22px;
    font-size: clamp(0.95rem, 2vw, 1.3rem);
    font-weight: 300;
    color: var(--an-text);
}
.an-meet b { font-weight: 700; color: var(--an-white); }

.an-cta-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.an-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-en);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--an-green-dark);
    background: var(--an-teal);
    padding: 14px 34px;
    border-radius: 6px;
    box-shadow: 0 10px 28px var(--an-teal-glow);
    transition: var(--transition);
}
.an-cta:hover { transform: translateY(-3px); background: #1fc29a; }

.an-cta-url { font-family: var(--font-en); font-weight: 700; color: var(--an-white); font-size: 1.05rem; }

/* ============ REGISTRATION ============ */
.an-registration {
    position: relative;
    padding: 24px 24px 72px;
    background: radial-gradient(ellipse at 50% 0, rgba(23, 168, 131, 0.2), transparent 52%);
}
.an-section-inner { max-width: 760px; margin: 0 auto; text-align: center; }

.an-reg-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 auto 34px;
}
.an-reg-brand img { width: auto; height: 42px; }
.an-reg-brand span {
    border-left: 1px solid rgba(255, 255, 255, 0.35);
    padding-left: 16px;
    color: var(--an-text);
    font-family: var(--font-en);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.an-reg-heading { margin-bottom: 28px; }
.an-reg-kicker {
    margin-bottom: 8px;
    color: #5eead4;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.an-section-title {
    font-family: var(--font-en);
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    color: var(--an-white);
    line-height: 1.2;
    margin-bottom: 10px;
}
.an-section-subtitle { color: var(--an-muted); }

.an-form-card {
    background: var(--an-form-surface);
    border: 1px solid var(--an-border);
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
}

.an-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.an-form-group { margin-bottom: 20px; }
.an-form-label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--an-form-ink); margin-bottom: 7px; }
.an-form-label .required { color: #f87171; }
.an-form-label .optional { color: var(--an-form-muted); font-weight: 400; font-size: 0.78rem; }

.an-form-control {
    width: 100%;
    min-height: 52px;
    padding: 13px 16px;
    border-radius: 9px;
    border: 1px solid var(--an-form-border);
    background: var(--an-form-field);
    color: var(--an-form-ink);
    font-family: var(--font-body);
    font-size: 16px;
    transition: var(--transition);
}
.an-form-control:focus {
    outline: none;
    border-color: var(--an-teal);
    box-shadow: 0 0 0 3px rgba(23, 168, 131, 0.18);
    background: rgba(3, 26, 20, 0.92);
}
.an-form-control::placeholder { color: #83a397; }

.an-form-sublabel { display: block; font-size: 0.78rem; color: var(--an-muted); margin-bottom: 6px; }
.an-male-only-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 9px;
    border: 1px solid rgba(23, 168, 131, 0.35);
    background: rgba(23, 168, 131, 0.08);
    color: var(--an-form-ink);
    font-size: 0.88rem;
}
.an-male-only-note i { color: var(--an-teal); }

.an-option-row,
.an-option-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.an-option-grid > .an-option { flex: 1 1 calc(50% - 8px); }

.an-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 9px;
    border: 1px solid var(--an-form-border);
    background: var(--an-form-field);
    color: var(--an-form-ink);
    font-size: 0.92rem;
    cursor: pointer;
    transition: var(--transition);
}
.an-option:hover { border-color: var(--an-teal); background: rgba(23, 168, 131, 0.12); }
.an-option input { accent-color: var(--an-teal); width: 16px; height: 16px; }

.an-error {
    display: none;
    color: #f87171;
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.3);
    padding: 12px;
    border-radius: 10px;
    font-size: 0.88rem;
    margin-bottom: 16px;
    text-align: center;
}

.an-submit {
    width: 100%;
    background: var(--an-teal);
    color: var(--an-green-dark);
    border: none;
    padding: 16px 24px;
    font-size: 1.05rem;
    font-weight: 800;
    font-family: var(--font-en);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 25px var(--an-teal-glow);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
}
.an-submit:hover { transform: translateY(-2px); background: #1fc29a; }
.an-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.an-success {
    display: none;
    background: rgba(4, 40, 30, 0.92);
    border: 1px solid var(--an-teal);
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 20px 50px var(--an-teal-glow);
    max-width: 600px;
    margin: 0 auto;
}
.an-success-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(23,168,131,0.2);
    color: #5eead4;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 16px;
    border: 2px solid var(--an-teal);
}
.an-success h3 { font-family: var(--font-en); font-size: 1.8rem; color: #fff; margin-bottom: 4px; }
.an-success p.lead { color: #5eead4; font-weight: 600; }

.an-ticket {
    background: rgba(0,0,0,0.35);
    border: 1px dashed rgba(255,255,255,0.25);
    border-radius: 14px;
    padding: 18px 20px;
    margin: 24px 0 0;
    text-align: left;
}
.an-ticket-row {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.an-ticket-row:last-child { border-bottom: none; }
.an-ticket-row span:first-child { color: var(--an-muted); }
.an-ticket-row span:last-child { color: #fff; font-weight: 700; text-align: right; }

/* ============ FOOTER ============ */
.an-footer {
    background: rgba(2, 15, 12, 0.95);
    border-top: 1px solid var(--an-border);
    padding: 36px 24px;
    text-align: center;
}
.an-footer p { font-size: 0.85rem; color: var(--an-muted); margin-top: 8px; }
.an-footer a { color: #5eead4; text-decoration: none; }
.an-footer a:hover { text-decoration: underline; }
.an-footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.an-footer-logos img { height: 44px; width: auto; object-fit: contain; }

.an-whatsapp-fab {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
    z-index: 99;
    text-decoration: none;
    transition: var(--transition);
}
.an-whatsapp-fab:hover { transform: scale(1.1); }

/* ============ RESPONSIVE ============ */
@media (max-width: 760px) {
    .an-hero-inner { padding-top: 24px; }
    .an-title-logo img { margin: 0 auto; }
    .an-special { margin: 0 0 32px; }
    .an-info { grid-template-columns: 1fr; gap: 22px; }
    .an-when { border-left: none; padding-left: 0; border-top: 2px solid var(--an-teal); padding-top: 18px; }
    .an-contact { text-align: left; }
    .an-reg-brand { margin-bottom: 28px; }
    .an-form-card { padding: 24px 20px; }
}

@media (max-width: 560px) {
    .an-registration { padding: 20px 16px 56px; }
    .an-reg-brand { margin-bottom: 24px; }
    .an-reg-brand img { height: 36px; }
    .an-reg-brand span { font-size: 0.78rem; }
    .an-reg-heading { margin-bottom: 22px; }
    .an-form-grid { grid-template-columns: 1fr; gap: 0; }
    .an-option-grid > .an-option { flex-basis: 100%; }
    .an-male-only-note { align-items: flex-start; text-align: left; }
}
