/* ==========================================================================
   Vasan Eye Care — Eye Donation Landing Page
   Brand font: Anek Latin (Google Fonts, loaded from index.php <head>)
   ========================================================================== */

:root {
    /* --- Brand palette (Vasan blue) --- */
    --asg-blue: #1C45A5;
    --asg-blue-dark: #163584;
    --asg-blue-deep: #10285F;
    --asg-blue-soft: #92A9D9;
    --asg-blue-light: #C7D4EF;
    --asg-blue-pale: #E9EDFA;

    --asg-green: #157C3C;
    --asg-green-dark: #0F6330;
    --asg-green-pale: #EDF7F0;

    /* Buttons that used to be --asg-blue now use this orange (green buttons untouched) */
    --brand-orange: #FF851F;
    --brand-orange-dark: #E6740F;
    --brand-orange-soft: #FFC48A;
    --brand-orange-light: #FFDFB8;
    --brand-orange-pale: #FFF3E6;

    --asg-purple: #6B3FA0;
    --asg-purple-dark: #57318A;
    --asg-purple-pale: #F2EDF9;

    --asg-red: #C62828;
    --asg-red-pale: #FDF1F1;

    --asg-text: #231F20;
    --asg-text-muted: #54595F;
    --asg-border: #DCE7F2;
    --asg-surface: #F4F8FC;

    /* --- Type scale --- */
    --fs-hero: 58px;
    --fs-section: 42px;
    --fs-card-title: 28px;
    --fs-lg: 24px;
    --fs-md: 21px;
    --fs-base: 18px;
    --fs-sm: 17px;
    --fs-xs: 16px;
    --fs-xxs: 15px;

    --font-body: 'Anek Latin', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    --radius: 14px;
    --shadow-sm: 0 2px 10px rgba(14, 47, 99, 0.06);
    --shadow-md: 0 8px 26px rgba(14, 47, 99, 0.10);
    --shadow-lg: 0 16px 40px rgba(14, 47, 99, 0.14);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    color: var(--asg-text);
    background-color: #ffffff;
    font-size: var(--fs-base);
    font-weight: 400;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg, video, iframe { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 { color: var(--asg-text); line-height: 1.28; }

a { color: var(--asg-blue); }

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-size: var(--fs-section);
    font-weight: 700;
    color: var(--asg-blue);
    text-align: center;
    margin-bottom: 42px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
header {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(14, 47, 99, 0.07);
    position: sticky;
    top: 0;
    z-index: 200;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 24px;
}

/* --- Brand --- */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo { max-height: 52px; width: auto; }

/* --- Navigation --- */
.main-nav { flex: 1 1 auto; display: flex; justify-content: center; }

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 18px;
}

.nav-links a {
    text-decoration: none;
    color: var(--asg-text);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover {
    color: var(--asg-blue);
    border-bottom-color: var(--asg-blue);
}

/* --- Header actions --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.helpline-wrapper { display: flex; align-items: center; gap: 10px; }

.helpline-icon-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--brand-orange);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.helpline-details { display: flex; flex-direction: column; line-height: 1.25; }

.helpline-title { font-size: var(--fs-xxs); color: var(--asg-text-muted); font-weight: 500; }

.helpline-number {
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--asg-blue);
    text-decoration: none;
    white-space: nowrap;
}

.helpline-number:hover { color: var(--asg-blue); }

.helpline-note { font-size: 12px; color: var(--asg-text-muted); }

/* --- Mobile toggle (far right, hidden on desktop) --- */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--asg-border);
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    background-color: var(--asg-blue);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 74px 0 84px;
    overflow: hidden;
    background: linear-gradient(120deg, #EAF4FD 0%, #DCEDFA 100%);
}

.hero-media { position: absolute; inset: 0; z-index: 0; }

.hero-img {
    position: absolute;
    right: 0;
    top: 0;
    width: 62%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg,
        #E9F4FD 0%,
        #E9F4FD 34%,
        rgba(233, 244, 253, 0.92) 44%,
        rgba(233, 244, 253, 0.55) 55%,
        rgba(233, 244, 253, 0.10) 70%,
        rgba(233, 244, 253, 0) 100%);
}

.hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-content { max-width: 680px; }

.hero-tag {
    display: block;
    font-size: var(--fs-md);
    font-weight: 500;
    color: var(--asg-text-muted);
    margin-bottom: 10px;
}

.hero-title {
    font-size: var(--fs-hero);
    font-weight: 700;
    line-height: 1.14;
    color: var(--asg-text);
    margin-bottom: 14px;
}

.hero-title-accent { color: var(--asg-blue); }

.hero-subtitle {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--asg-text);
    margin-bottom: 18px;
}

.hero-desc {
    font-size: var(--fs-sm);
    color: var(--asg-text-muted);
    line-height: 1.75;
    margin-bottom: 30px;
    max-width: 520px;
}

.hero-btn-group { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: var(--fs-xs);
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-hero.btn-green { background: var(--asg-green); color: #ffffff; }
.btn-hero.btn-green:hover { background: var(--asg-green-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-hero.btn-blue { background: var(--brand-orange); color: #ffffff; }
.btn-hero.btn-blue:hover { background: var(--brand-orange-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-hero.btn-outline { background: #ffffff; color: var(--brand-orange); border: 1.5px solid var(--brand-orange-soft); }
.btn-hero.btn-outline:hover { background: var(--brand-orange-pale); transform: translateY(-2px); }

/* ==========================================================================
   FORMS ROW
   ========================================================================== */
.forms-section {
    background: var(--asg-surface);
    padding: 46px 0 52px;
}

.forms-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 24px;
    align-items: start;
}

.forms-side { display: flex; flex-direction: column; gap: 22px; }

.forms-main { position: sticky; top: 96px; }

/* Each card ends where its content ends - no empty run-off below the button */
.card {
    background: #ffffff;
    border: 1px solid var(--asg-border);
    border-radius: var(--radius);
    padding: 26px 22px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: var(--fs-card-title);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 6px;
    color: var(--asg-blue);
}

.card-sub {
    font-size: var(--fs-xs);
    color: var(--asg-text-muted);
    margin-bottom: 18px;
}

/* All four cards share one surface, title colour and button treatment */
.card-green,
.card-blue,
.card-purple {
    background: #F7FAFE;
    border-color: #D6E6F5;
}

.card-green .card-title,
.card-blue .card-title,
.card-purple .card-title { color: var(--asg-blue); }


/* Forms */
.card-form { display: flex; flex-direction: column; gap: 13px; }
.card-form .btn + .form-note,
.card-form .btn + .form-help { margin-top: -2px; }

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

/* Paired fields are narrow - keep placeholders from clipping */
.form-row .form-control { font-size: 14px; padding-left: 12px; padding-right: 12px; }
.form-row select.form-control { padding-right: 30px; background-position: right 11px center; }

/* The main pledge form is wide enough to keep full-size text in paired rows */
.card-pledge .form-row .form-control {
    font-size: var(--fs-xs);
    padding-left: 14px;
    padding-right: 14px;
}

.card-pledge .form-row select.form-control {
    padding-right: 34px;
    background-position: right 14px center;
}

.card-pledge .form-row { gap: 16px; }

.form-group { width: 100%; }

/* Honeypot: kept off-screen rather than display:none/visibility:hidden,
   since some bots specifically skip fields hidden that way. */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-control {
    width: 100%;
    height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--asg-border);
    border-radius: 8px;
    background: #ffffff;
    font-size: var(--fs-xs);
    color: var(--asg-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control::placeholder { color: #8D949C; }

.form-control:focus {
    outline: none;
    border-color: var(--asg-blue);
    box-shadow: 0 0 0 3px rgba(28, 69, 165, 0.14);
}

select.form-control { cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%2354595F' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 11px;
    padding-right: 34px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: var(--fs-xxs);
    color: var(--asg-text-muted);
    line-height: 1.5;
}

.checkbox-group input { margin-top: 3px; cursor: pointer; width: 16px; height: 16px; flex-shrink: 0; }
.checkbox-group label { cursor: pointer; }

.btn {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: var(--fs-xs);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.12s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.995); }

/* All three card forms share one button treatment */
.card-form .btn,
.btn-green,
.btn-blue,
.btn-purple { background: var(--brand-orange); }

.card-form .btn:hover,
.btn-green:hover,
.btn-blue:hover,
.btn-purple:hover { background: var(--brand-orange-dark); }

.form-note {
    font-size: 13px;
    color: var(--asg-text-muted);
    text-align: center;
}

.form-help {
    font-size: var(--fs-xxs);
    color: var(--asg-text-muted);
    text-align: center;
    line-height: 1.6;
}

.form-help a { color: var(--asg-blue); font-weight: 700; text-decoration: none; font-size: var(--fs-xs); }

/* --- Main pledge form (right column) --- */
.card-pledge {
    background: #ffffff;
    border: 1px solid #CFE1F2;
    border-top: 4px solid var(--brand-orange);
    padding: 32px 30px;
}

.card-pledge .card-title { font-size: var(--fs-card-title); }

.card-pledge .card-form { gap: 16px; }

.card-form label {
    display: block;
    font-size: var(--fs-xxs);
    font-weight: 400;
    color: var(--asg-text);
    margin-bottom: 7px;
}

.card-form .checkbox-group label { display: inline; font-weight: 400; margin-bottom: 0; }

.req { color: var(--asg-red); }

.btn-pledge-main {
    height: 54px;
    font-size: var(--fs-sm);
    background: var(--brand-orange);
}

.btn-pledge-main:hover { background: var(--brand-orange-dark); }

/* --- Why Eye Donation Matters card (left column) --- */
.why-card { background: #F7FAFE; }

.why-list { list-style: none; display: flex; flex-direction: column; gap: 15px; }

.why-list li {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: var(--fs-xxs);
    color: var(--asg-text);
    line-height: 1.55;
}

.why-ico {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--asg-blue-pale);
    color: var(--asg-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

/* ==========================================================================
   PROCESS
   ========================================================================== */
.process-section { padding: 60px 0; background: #ffffff; }

.process-panel {
    position: relative;
    background: linear-gradient(180deg, #F6FBFF 0%, #FFFFFF 62%);
    border: 1px solid var(--asg-border);
    border-radius: 22px;
    padding: 48px 38px 44px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* Brand accent bar across the top of the panel */
.process-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--brand-orange);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    position: relative;
}

.step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 8px 6px 0;
}

/* Connector between steps */
.step-card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 56px;
    left: calc(50% + 62px);
    width: calc(100% - 124px);
    height: 2px;
    background-image: linear-gradient(90deg, var(--asg-blue-soft) 55%, transparent 55%);
    background-size: 10px 2px;
    opacity: 0.75;
}

.step-icon-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--asg-blue-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    box-shadow: 0 6px 18px rgba(28, 69, 165, 0.10);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.step-card:hover .step-icon-wrapper {
    transform: translateY(-6px);
    background: var(--asg-blue-pale);
    border-color: var(--asg-blue);
    box-shadow: 0 12px 26px rgba(28, 69, 165, 0.22);
}

.step-icon-wrapper i {
    font-size: 42px;
    color: var(--asg-blue);
    transition: transform 0.3s ease;
}

.step-card:hover .step-icon-wrapper i { transform: scale(1.08); }

.step-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 32px;
    height: 32px;
    background: linear-gradient(140deg, var(--brand-orange) 0%, var(--brand-orange-dark) 100%);
    color: #ffffff;
    font-size: var(--fs-xxs);
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #ffffff;
    box-shadow: 0 3px 8px rgba(21, 124, 60, 0.28);
}

.step-card h4 {
    font-size: var(--fs-md);
    font-weight: 700;
    color: var(--asg-blue);
    margin-bottom: 10px;
    min-height: 2.6em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-card p {
    font-size: var(--fs-xs);
    color: var(--asg-text-muted);
    line-height: 1.7;
}

/* ==========================================================================
   MYTHS & ELIGIBILITY
   ========================================================================== */
.myths-eligibility-section { padding: 20px 0 60px; background: var(--asg-surface); }

.myths-grid {
    display: grid;
    grid-template-columns: 1.9fr 1fr;
    gap: 24px;
    align-items: start;
}

.myths-card {
    background: #ffffff;
    border: 1px solid var(--asg-border);
    border-radius: var(--radius);
    padding: 30px 28px;
    box-shadow: var(--shadow-sm);
}

.myths-title {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--asg-blue-deep);
    margin-bottom: 24px;
}

.myths-table-header {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 24px;
    font-weight: 700;
    font-size: var(--fs-sm);
    padding-bottom: 14px;
    border-bottom: 1px solid #EAF1F8;
}

.col-myth { color: var(--asg-red); }
.col-truth { color: var(--asg-green); }

.myth-row {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid #EFF4F9;
    align-items: flex-start;
    font-size: var(--fs-xs);
    color: var(--asg-text);
}

.myth-row:last-child { border-bottom: none; padding-bottom: 4px; }

.myth-text, .truth-text { display: flex; align-items: flex-start; gap: 11px; line-height: 1.6; }

.icon-red { color: var(--asg-red); font-size: 17px; margin-top: 2px; flex-shrink: 0; }
.icon-green { color: var(--asg-green); font-size: 17px; margin-top: 2px; flex-shrink: 0; }

/* --- Eligibility cards --- */
.eligibility-cards { display: flex; flex-direction: column; gap: 22px; }

.eligibility-card {
    border-radius: var(--radius);
    padding: 26px 24px;
    border-left: 6px solid;
    box-shadow: var(--shadow-sm);
}

.can-donate { background: var(--asg-green-pale); border-left-color: var(--asg-green); }
.cannot-donate { background: var(--asg-red-pale); border-left-color: var(--asg-red); }

.eligibility-card h4 {
    font-size: var(--fs-md);
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.can-donate h4 { color: var(--asg-green); }
.cannot-donate h4 { color: var(--asg-red); }

.eligibility-card ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }

.eligibility-card ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--fs-xs);
    color: var(--asg-text);
    line-height: 1.5;
}

.can-donate ul li i { color: var(--asg-green); font-size: 16px; }
.cannot-donate ul li i { color: var(--asg-red); font-size: 16px; }

/* ==========================================================================
   VIDEO RESOURCES
   ========================================================================== */
.video-resources-section { padding: 60px 0; background: #ffffff; }

.video-cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.video-card {
    display: flex;
    background: #F7FAFE;
    border: 1px solid var(--asg-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.video-thumbnail {
    position: relative;
    width: 46%;
    flex-shrink: 0;
    cursor: pointer;
    overflow: hidden;
    display: block;
}

.video-thumbnail img { transition: transform 0.45s ease; }
.video-card:hover .video-thumbnail img { transform: scale(1.05); }

.video-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(255, 133, 31, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.play-button i { color: #ffffff; font-size: 24px; margin-left: 4px; }

.video-thumbnail:hover .play-button { transform: translate(-50%, -50%) scale(1.1); background: var(--brand-orange); }

.video-card-content {
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
}

.video-card-content h3 { font-size: var(--fs-lg); font-weight: 700; color: var(--asg-blue); }

.video-card-content p { font-size: var(--fs-xs); color: var(--asg-text-muted); line-height: 1.65; }

.btn-video {
    display: inline-block;
    margin-top: 6px;
    background: var(--brand-orange);
    color: #ffffff;
    padding: 11px 22px;
    font-size: var(--fs-xxs);
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-video:hover { background: var(--brand-orange-dark); color: #ffffff; }

/* ==========================================================================
   EYE BANK CENTRES
   ========================================================================== */
.centres-section { padding: 20px 0 64px; background: #1c45a5; }

.centres-section .section-title { color: #ffffff; }

.centres-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.centre-card {
    background: #ffffff;
    border: 1px solid var(--asg-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.centre-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--asg-blue-soft);
}

/* --- Photo --- */
.centre-media { position: relative; height: 190px; overflow: hidden; background: var(--asg-blue-pale); }

.centre-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,40,70,0.62) 100%);
}

.centre-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.centre-card:hover .centre-media img { transform: scale(1.08); }

.centre-rating {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.95);
    color: #8A6100;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(14, 47, 99, 0.18);
}

.centre-rating i { color: #E8A21C; font-size: 12px; }

.centre-city {
    position: absolute;
    left: 14px;
    bottom: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #ffffff;
    font-size: var(--fs-xxs);
    font-weight: 700;
    letter-spacing: 0.3px;
}

.centre-city i { font-size: 13px; }

/* --- Body --- */
.centre-body {
    padding: 20px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.centre-body h3 {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--asg-blue);
    line-height: 1.4;
}

.centre-address {
    font-size: var(--fs-xxs);
    color: var(--asg-text-muted);
    line-height: 1.6;
}

/* --- Actions --- */
.centre-actions {
    margin-top: auto;
    padding-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.centre-call,
.centre-dir {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 10px;
    border-radius: 8px;
    font-size: var(--fs-xxs);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.centre-call {
    background: var(--brand-orange);
    color: #ffffff;
}

.centre-call:hover { background: var(--brand-orange-dark); }

.centre-dir {
    background: #ffffff;
    color: var(--brand-orange);
    border: 1.5px solid var(--brand-orange-light);
}

.centre-dir:hover { background: var(--brand-orange-pale); border-color: var(--brand-orange-soft); }

.centre-call i, .centre-dir i { font-size: 13px; }

.view-all-wrapper { display: flex; justify-content: center; margin-top: 36px; }

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--brand-orange);
    color: #ffffff;
    padding: 14px 36px;
    font-size: var(--fs-xs);
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease, gap 0.2s ease;
}

.btn-view-all:hover { background: var(--brand-orange-dark); transform: translateY(-2px); gap: 14px; }

/* ==========================================================================
   CTA BANNER
   ========================================================================== */
.cta-banner-section { padding: 34px 0; background: #ffffff; }

.cta-banner-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    background: linear-gradient(100deg, var(--brand-orange-dark) 0%, var(--brand-orange) 60%, #FFA34D 120%);
    border-radius: 18px;
    padding: 32px 38px;
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.cta-left { display: flex; align-items: center; gap: 24px; }

.cta-art {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #ffffff;
    flex-shrink: 0;
}

.cta-heading {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.cta-subheading { font-size: var(--fs-xs); color: #ffffff; margin-bottom: 16px; }

.btn-pledge {
    display: inline-block;
    background: #ffffff;
    color: var(--brand-orange);
    padding: 12px 26px;
    font-size: var(--fs-xs);
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-pledge:hover { background: var(--brand-orange-pale); color: var(--brand-orange-dark); transform: translateY(-2px); }

.cta-helpline { display: flex; flex-direction: column; align-items: flex-end; text-align: right; flex-shrink: 0; }

.helpline-label { font-size: var(--fs-xs); color: #ffffff; margin-bottom: 4px; }

.helpline-phone { display: flex; align-items: center; gap: 12px; }

.helpline-phone i { font-size: 32px; color: #ffffff; }

.helpline-phone a {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.helpline-tagline { font-size: var(--fs-xxs); color: #ffffff; margin-top: 4px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer { background: #ffffff; color: #000000; padding: 44px 0 0; border-top: 1px solid var(--asg-border); }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 34px;
    padding-bottom: 34px;
}

.footer-col h4 {
    color: var(--asg-text);
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.4px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.footer-logo { display: inline-block; margin-bottom: 16px; }

.footer-logo img {
    max-height: 52px;
    width: auto;
}

.footer-col p {
    font-size: var(--fs-xxs);
    color: #000000;
    line-height: 1.7;
    max-width: 420px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }

.footer-col ul li a {
    font-size: var(--fs-xxs);
    color: #000000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover { color: var(--asg-blue); }

.footer-commitment-text { font-size: var(--fs-xxs); color: #000000; }

.footer-social { display: flex; gap: 10px; margin-top: 18px; }

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--asg-blue-pale);
    color: var(--asg-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.footer-social a:hover { background: var(--asg-blue); color: #ffffff; transform: translateY(-2px); }

.footer-bottom {
    border-top: 1px solid var(--asg-border);
    padding: 18px 0;
    text-align: center;
}

.footer-bottom p { font-size: var(--fs-xxs); color: #000000; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* ---------- <= 1400px ---------- */
@media (max-width: 1400px) {
    :root { --fs-hero: 52px; --fs-section: 38px; --fs-card-title: 26px; }
    .nav-links { gap: 16px; }
    .helpline-note { display: none; }
}

/* ---------- <= 1300px : shed header extras before they overflow ---------- */
@media (max-width: 1300px) {
    .helpline-title { display: none; }
    .navbar { gap: 18px; }
    .nav-links { gap: 15px; }
}

/* ---------- <= 1200px ---------- */
@media (max-width: 1200px) {
    .navbar { gap: 14px; }
    .nav-links { gap: 12px; }
    .nav-links a { font-size: 13px; }
    .helpline-icon-circle { width: 36px; height: 36px; font-size: 15px; }
    .helpline-number { font-size: var(--fs-sm); }
    .site-logo { max-height: 46px; }
    .forms-layout { grid-template-columns: 1fr; }
    .forms-main { position: static; }
    .myths-grid { grid-template-columns: 1.5fr 1fr; }
    .hero-img { width: 54%; }
}

/* ---------- <= 992px : nav collapses ---------- */
@media (max-width: 992px) {
    :root { --fs-hero: 44px; --fs-section: 33px; --fs-card-title: 24px; --fs-lg: 22px; }

    .navbar { flex-wrap: wrap; padding: 12px 20px; }

    .main-nav { order: 3; width: 100%; }

    .nav-toggle { display: flex; }


    .site-logo { max-height: 44px; }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
        margin-top: 6px;
        padding-top: 6px;
        border-top: 1px solid var(--asg-border);
    }

    .nav-links.is-open { display: flex; }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 14px 4px;
        font-size: var(--fs-sm);
        border-bottom: 1px solid var(--asg-blue-pale);
    }

    .nav-links a:hover { border-bottom-color: var(--asg-blue-pale); }

    .nav-links li:last-child a { border-bottom: none; }

    /* Hero: image becomes a framed banner card above the copy */
    .hero-section {
        padding: 20px 0 44px;
        background: linear-gradient(170deg, #EAF4FD 0%, #DCEDFA 100%);
        overflow: visible;
    }

    .hero-media {
        position: relative;
        inset: auto;
        margin: 0 20px 30px;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 12px 30px rgba(28, 69, 165, 0.16);
        aspect-ratio: 16 / 10;
    }

    .hero-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        /* frame the doctor and couple rather than the far-left eye graphic */
        object-position: 68% center;
    }

    /* Soft brand wash so the banner sits with the page instead of floating */
    .hero-overlay {
        background: linear-gradient(180deg,
            rgba(28, 69, 165, 0.06) 0%,
            rgba(28, 69, 165, 0) 45%,
            rgba(0, 82, 136, 0.22) 100%);
    }

    .hero-container { position: static; }
    .hero-content { max-width: 100%; }
    .hero-desc { max-width: 100%; }

    /* Process */
    .process-panel { padding: 32px 22px; }
    .process-steps { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
    .step-card:not(:last-child)::after { display: none; }

    /* Video */
    .video-cards-grid { grid-template-columns: 1fr; }

    /* Centres */

    /* CTA */
    .cta-banner-container { flex-direction: column; text-align: center; padding: 30px 26px; }
    .cta-left { flex-direction: column; text-align: center; gap: 16px; }
    .cta-helpline { align-items: center; text-align: center; }

    /* Footer */
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
    .footer-brand { grid-column: 1 / -1; }
}

/* ---------- <= 768px ---------- */
@media (max-width: 768px) {
    :root { --fs-hero: 37px; --fs-section: 30px; --fs-base: 17px; }

    .helpline-title, .helpline-note { display: none; }
    .helpline-number { font-size: var(--fs-sm); }
    .helpline-icon-circle { width: 36px; height: 36px; font-size: 15px; }


    .forms-section { padding: 34px 0 38px; }

    .myths-grid { grid-template-columns: 1fr; }

    .video-card { flex-direction: column; }
    .video-thumbnail { width: 100%; aspect-ratio: 16 / 9; }
    .video-card-content { padding: 22px 20px; }


    .helpline-phone a { font-size: 26px; }

    .process-section, .centres-section { padding-bottom: 44px; }
}

/* ---------- <= 576px ---------- */
@media (max-width: 576px) {
    :root { --fs-hero: 32px; --fs-section: 26px; --fs-card-title: 22px; --fs-lg: 20px; --fs-md: 19px; }

    .container, .hero-container { padding-left: 16px; padding-right: 16px; }

    /* Keep logo + helpline + toggle on a single row */
    .navbar { padding: 10px 16px; gap: 10px; }
    .site-logo { max-height: 32px; }
    .header-actions { gap: 10px; }
    .helpline-icon-circle { width: 32px; height: 32px; font-size: 13px; }
    .nav-toggle { width: 42px; height: 42px; }

    .hero-media { margin: 0 16px 26px; border-radius: 14px; aspect-ratio: 4 / 3; }

    .hero-btn-group { flex-direction: column; align-items: stretch; }
    .btn-hero { width: 100%; }

    .card { padding: 22px 18px; }
    .form-row { grid-template-columns: 1fr; }

    .process-panel { padding: 26px 16px; }
    .process-steps { grid-template-columns: 1fr; gap: 28px; }

    .myths-table-header, .myth-row { grid-template-columns: 1fr; gap: 8px; }
    .myths-table-header { display: none; }
    .myths-card { padding: 22px 16px; }


    .btn-view-all, .btn-pledge { display: block; width: 100%; text-align: center; }

    .cta-banner-container { padding: 26px 18px; }
    .helpline-phone a { font-size: 23px; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
}

/* ---------- <= 400px ---------- */
@media (max-width: 400px) {
    .site-logo { max-height: 28px; }
    .helpline-number { font-size: var(--fs-xxs); }
    .helpline-icon-circle { width: 28px; height: 28px; font-size: 12px; }
    .nav-toggle { width: 38px; height: 38px; }
    .navbar { gap: 8px; }
}

/* ---------- Landscape phones ---------- */
@media (max-height: 480px) and (orientation: landscape) {
    header { position: relative; }
}


/* ==========================================================================
   RESPONSIVE — forms layout, myths, eye bank centres
   ========================================================================== */
@media (max-width: 1200px) {
    .centres-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 992px) {
    .forms-layout { grid-template-columns: 1fr; gap: 20px; }
    .forms-main { position: static; order: -1; }   /* main form leads on narrow screens */
    .card-pledge { padding: 28px 22px; }
}

@media (max-width: 768px) {
    .myths-card { padding: 24px 20px; }
    .eligibility-card { padding: 22px 20px; }
    .centres-grid { gap: 18px; }
}

@media (max-width: 576px) {
    .centres-grid { grid-template-columns: 1fr; }
    .centre-media { height: 200px; }
    .centre-body { padding: 18px 18px 20px; }
    .btn-view-all { width: 100%; justify-content: center; }
    .card-pledge .form-row { grid-template-columns: 1fr; }
    .why-ico { width: 38px; height: 38px; font-size: 16px; }
    .myths-title { font-size: var(--fs-md); }
}

/* ==========================================================================
   PLEDGE RESULT MODAL
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(27, 42, 61, 0.55);
    backdrop-filter: blur(2px);
}

.modal-overlay.is-open { display: flex; animation: modalFade 0.2s ease; }

@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 32px 28px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(14, 47, 99, 0.28);
    animation: modalRise 0.25s ease;
}

@keyframes modalRise {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #8D949C;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.modal-close:hover { color: var(--asg-text); background: #F1F5F9; }

.modal-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    color: #ffffff;
    margin-bottom: 20px;
}

.is-success .modal-icon { background: var(--asg-blue); }
.is-error   .modal-icon { background: var(--asg-red); }

.modal-title {
    font-size: var(--fs-lg);
    font-weight: 700;
    color: var(--asg-text);
    line-height: 1.35;
    margin-bottom: 6px;
}

.modal-text {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--asg-text);
    line-height: 1.5;
    margin-bottom: 26px;
}

.modal-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: var(--fs-xs);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.12s ease;
}

.is-success .modal-btn { background: var(--brand-orange); }
.is-success .modal-btn:hover { background: var(--brand-orange-dark); }

.is-error .modal-btn { background: var(--asg-red); }
.is-error .modal-btn:hover { background: #A81F1F; }

.modal-btn:active { transform: scale(0.995); }

/* Stop the page scrolling behind the modal */
body.modal-open { overflow: hidden; }

@media (max-width: 480px) {
    .modal-card { padding: 34px 22px 24px; border-radius: 14px; }
    .modal-icon { width: 56px; height: 56px; font-size: 24px; }
}

.modal-note {
    font-size: var(--fs-xxs);
    font-weight: 400;
    color: var(--asg-text-muted);
    margin: -14px 0 22px;
}

/* --- Certificate rendered under the download form --- */
.cert-result {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--asg-border);
    text-align: center;
}

.cert-result-note {
    font-size: var(--fs-xxs);
    color: var(--asg-text-muted);
    line-height: 1.55;
    margin-bottom: 12px;
}

.cert-result.is-error .cert-result-note { color: var(--asg-red); font-weight: 600; }

.cert-result img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid var(--asg-border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 14px;
}

.cert-result.is-error img { display: none; }

#certSubmit:disabled { opacity: 0.7; cursor: default; }

/* ==========================================================================
   INLINE FIELD VALIDATION
   ========================================================================== */
.field-error {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--asg-red);
}

.form-group.has-error .form-control {
    border-color: var(--asg-red);
    background: #FFFBFB;
}

.form-group.has-error .form-control:focus {
    border-color: var(--asg-red);
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.14);
}

.form-group.has-error > label { color: var(--asg-red); }

/* Checkbox row: message drops onto its own line under the row */
.checkbox-group { flex-wrap: wrap; }
.checkbox-group.has-error label { color: var(--asg-red); }
.checkbox-group.has-error input { outline: 2px solid var(--asg-red); outline-offset: 2px; }
.checkbox-group .field-error { flex-basis: 100%; margin-left: 25px; }
