/* GYLF Join Now — Main Stylesheet */

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple:       #49156a;
  --purple-dark:  #34104e;
  --purple-light: #f3ecfb;
  --purple-tint:  #f8f4fd;
  --gold:         #c9952a;
  --gold-light:   #f5e8c8;
  --white:        #ffffff;
  --text-dark:    #1a1a2e;
  --text-body:    #3d3d5c;
  --text-muted:   #7a7a9a;
  --border:       #e4dff0;
  --bg-page:      #fafafa;
  --bg-section:   #f7f4fb;
  --error:        #d9382a;
  --error-bg:     #fff2f1;
  --success:      #1a7f5a;
  --success-bg:   #edfaf3;
  --warning:      #b87309;
  --warning-bg:   #fff8e6;
  --info:         #1565c0;
  --info-bg:      #e8f0fe;
  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;
  --shadow:       0 6px 24px rgba(73,21,106,.12);
  --shadow-lg:    0 16px 48px rgba(73,21,106,.16);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition:   .2s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); font-size: 1rem; line-height: 1.65; color: var(--text-body); background: var(--bg-page); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--purple-dark); }

/* ── Container ─────────────────────────────────────────── */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ── Buttons ───────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body); font-size: .9375rem; font-weight: 600; line-height: 1; padding: 13px 28px; border-radius: var(--radius-sm); border: 2px solid transparent; cursor: pointer; transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition); text-decoration: none; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--purple); color: var(--white); border-color: var(--purple); }
.btn--primary:hover { background: var(--purple-dark); border-color: var(--purple-dark); color: var(--white); box-shadow: 0 4px 16px rgba(73,21,106,.35); }
.btn--outline { background: transparent; color: var(--purple); border-color: var(--purple); }
.btn--outline:hover { background: var(--purple-light); color: var(--purple-dark); }
.btn--lg { padding: 16px 36px; font-size: 1rem; }

/* ── Header ────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 200; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--border); box-shadow: 0 2px 12px rgba(73,21,106,.07); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; }

.logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-img { width: 42px; height: 42px; object-fit: contain; border-radius: 50%; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text-main { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--purple); letter-spacing: .3px; }
.logo-text-sub { font-size: .6rem; font-weight: 600; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }

.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav a { font-size: .875rem; font-weight: 500; color: var(--text-body); padding: 7px 12px; border-radius: var(--radius-sm); transition: color var(--transition), background var(--transition); white-space: nowrap; }
.header-nav a:hover { color: var(--purple); background: var(--purple-light); }
.header-nav .nav-cta { background: var(--purple); color: var(--white); padding: 8px 18px; font-weight: 600; margin-left: 6px; }
.header-nav .nav-cta:hover { background: var(--purple-dark); color: var(--white); }

/* ── Hamburger ─────────────────────────────────────────── */
.nav-hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 40px; height: 40px; background: var(--purple-light); border: 1.5px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; padding: 0; flex-shrink: 0; }
.nav-hamburger .bar { display: block; width: 20px; height: 2px; background: var(--purple); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-hamburger.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open .bar:nth-child(2) { opacity: 0; }
.nav-hamburger.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav drawer ─────────────────────────────────── */
.mobile-nav { max-height: 0; overflow: hidden; transition: max-height .3s ease; background: var(--white); border-top: 1px solid transparent; }
.mobile-nav.open { max-height: 280px; border-top-color: var(--border); }
.mobile-nav-inner { display: flex; flex-direction: column; padding: 8px 0 12px; }
.mobile-nav-inner a { display: block; padding: 13px 20px; font-size: .9375rem; font-weight: 500; color: var(--text-body); border-bottom: 1px solid #f0eef5; }
.mobile-nav-inner a:hover { background: var(--purple-light); color: var(--purple); }
.mobile-nav-inner .mobile-nav-cta { margin: 12px 20px 0; background: var(--purple); color: var(--white); text-align: center; border-radius: var(--radius-sm); font-weight: 700; border-bottom: none; padding: 13px 20px; }
.mobile-nav-inner .mobile-nav-cta:hover { background: var(--purple-dark); color: var(--white); }

/* ── Hero ──────────────────────────────────────────────── */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; background: linear-gradient(160deg, rgba(73,21,106,.92) 0%, rgba(52,16,78,.96) 55%, rgba(28,8,42,.98) 100%), url('https://globalyouthleadersforum.org/iassets/images/img-20190527-wa0002.jpg') center/cover no-repeat; color: var(--white); overflow: hidden; }
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 50%, rgba(106,29,150,.3) 0%, transparent 65%); }
.hero-content { position: relative; z-index: 2; max-width: 720px; padding-top: 60px; padding-bottom: 100px; }
.hero-eyebrow { display: inline-block; font-size: .8125rem; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; padding: 6px 14px; background: rgba(201,149,42,.12); border: 1px solid rgba(201,149,42,.3); border-radius: 100px; }
.hero-title { font-family: var(--font-display); font-size: clamp(2.25rem, 6vw, 3.75rem); font-weight: 700; line-height: 1.15; margin-bottom: 20px; color: var(--white); }
.hero-title--accent { color: var(--gold); display: block; }
.hero-sub { font-size: 1.125rem; line-height: 1.7; color: rgba(255,255,255,.82); max-width: 580px; margin-bottom: 36px; }

/* ── Section shared ────────────────────────────────────── */
.section { padding: 80px 0; }
.section-label { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--purple); background: var(--purple-light); padding: 5px 12px; border-radius: 100px; margin-bottom: 14px; }
.section-title { font-family: var(--font-display); font-size: clamp(1.625rem, 4vw, 2.375rem); font-weight: 700; color: var(--text-dark); line-height: 1.25; margin-bottom: 16px; }
.section-sub { font-size: 1.0625rem; color: var(--text-muted); max-width: 620px; margin: 0 auto 44px; text-align: center; }

/* ── Video ─────────────────────────────────────────────── */
.section--video { background: var(--bg-section); text-align: center; }
.video-wrapper { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); max-width: 900px; margin: 0 auto; background: #000; aspect-ratio: 16 / 9; }
.video-wrapper iframe,
.video-wrapper video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; display: block; object-fit: contain; }

/* ── About ─────────────────────────────────────────────── */
.section--about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-text p { color: var(--text-body); margin-bottom: 16px; font-size: 1rem; line-height: 1.75; }
.stats-row { display: flex; gap: 32px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); }
.stat-item { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-display); font-size: 1.875rem; font-weight: 700; color: var(--purple); line-height: 1; }
.stat-label { font-size: .8125rem; color: var(--text-muted); margin-top: 4px; font-weight: 500; }
.about-image { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-image img { width: 100%; height: 420px; object-fit: cover; }
.about-image-badge { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(73,21,106,.85)); color: var(--white); padding: 36px 20px 20px; font-size: .875rem; font-weight: 500; }

/* ── Form section ──────────────────────────────────────── */
.section--form { background: var(--bg-section); padding-bottom: 100px; }
.form-wrapper { max-width: 680px; margin: 0 auto; }
.form-intro { text-align: center; margin-bottom: 44px; }
.form-label-accent { color: var(--gold); background: var(--gold-light); }
.join-form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 44px 48px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 20px; }
.form-row--two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row--submit { margin-top: 28px; text-align: center; }
.form-group { width: 100%; }
.form-group.is-invalid .form-control { border-color: var(--error); background: var(--error-bg); }
.form-label { display: block; font-size: .875rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.req { color: var(--error); margin-left: 2px; }
.form-control { width: 100%; padding: 11px 14px; font-family: var(--font-body); font-size: .9375rem; color: var(--text-dark); background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-sm); outline: none; transition: border-color var(--transition), box-shadow var(--transition); appearance: none; }
.form-control:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(73,21,106,.1); }
.form-control::placeholder { color: #b0aec4; }
.select-wrapper { position: relative; }
.form-select { cursor: pointer; padding-right: 36px; }
.select-arrow { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--purple); pointer-events: none; font-size: 1rem; }
.form-group--checkbox { padding: 4px 0; }
.checkbox-label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.checkbox-input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox-custom { flex-shrink: 0; width: 20px; height: 20px; border: 2px solid var(--border); border-radius: 4px; background: var(--white); margin-top: 2px; transition: background var(--transition), border-color var(--transition); display: flex; align-items: center; justify-content: center; }
.checkbox-input:checked + .checkbox-custom { background: var(--purple); border-color: var(--purple); }
.checkbox-input:checked + .checkbox-custom::after { content: ''; width: 10px; height: 6px; border-left: 2px solid white; border-bottom: 2px solid white; transform: rotate(-45deg) translate(1px, -1px); display: block; }
.checkbox-text { font-size: .875rem; color: var(--text-body); line-height: 1.6; }
.form-error { display: block; font-size: .8125rem; color: var(--error); margin-top: 5px; font-weight: 500; }
.btn--submit { width: 100%; max-width: 320px; padding: 15px 28px; font-size: 1rem; position: relative; }
.btn-loader { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
.btn--loading .btn-text { opacity: .7; }
.btn--loading .btn-loader { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .8125rem; color: var(--text-muted); margin-top: 12px; }
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 14px 18px; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 24px; font-weight: 500; }
.alert--error { background: var(--error-bg); color: var(--error); border: 1px solid rgba(217,56,42,.2); }

/* ── Referrer banner ───────────────────────────────────── */
.referrer-banner { display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, var(--gold-light) 0%, #fff9ee 100%); border: 1px solid rgba(201,149,42,.3); border-left: 4px solid var(--gold); border-radius: var(--radius-sm); padding: 13px 16px; margin-bottom: 24px; font-size: .9rem; color: var(--text-body); }
.referrer-banner-icon { color: var(--gold); flex-shrink: 0; display: flex; align-items: center; }
.referrer-banner-text strong { color: var(--text-dark); }

/* ── Status pages ──────────────────────────────────────── */
.section--status { min-height: calc(100vh - 68px); display: flex; align-items: center; padding: 60px 0; background: var(--bg-section); }
.status-card { max-width: 560px; margin: 0 auto; background: var(--white); border-radius: var(--radius-lg); padding: 52px 48px; text-align: center; box-shadow: var(--shadow-lg); border-top: 5px solid var(--purple); }
.status-card--success { border-top-color: var(--success); }
.status-card--error   { border-top-color: var(--error); }
.status-card--warning { border-top-color: var(--warning); }
.status-card--info    { border-top-color: var(--info); }
.status-card--pending { border-top-color: var(--gold); }
.status-icon { width: 88px; height: 88px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; background: var(--purple-light); color: var(--purple); }
.status-icon--check   { background: var(--success-bg); color: var(--success); }
.status-icon--error   { background: var(--error-bg);   color: var(--error); }
.status-icon--warning { background: var(--warning-bg); color: var(--warning); }
.status-icon--info    { background: var(--info-bg);    color: var(--info); }
.status-icon--mail    { background: var(--gold-light);  color: var(--gold); }
.status-title { font-family: var(--font-display); font-size: 1.875rem; font-weight: 700; color: var(--text-dark); margin-bottom: 16px; }
.status-body { font-size: 1rem; color: var(--text-body); line-height: 1.7; margin-bottom: 12px; }
.status-tips { background: var(--bg-section); border-radius: var(--radius); padding: 18px 22px; margin: 20px 0 28px; text-align: left; }
.tips-heading { font-weight: 600; font-size: .9rem; color: var(--text-dark); margin-bottom: 8px; }
.status-tips ul { list-style: none; padding: 0; }
.status-tips li { font-size: .875rem; color: var(--text-body); padding: 3px 0 3px 18px; position: relative; }
.status-tips li::before { content: '->'; position: absolute; left: 0; color: var(--purple); font-size: .75rem; }
.status-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.confetti-row { font-size: 1.75rem; letter-spacing: 8px; margin: 20px 0; }

/* ── Footer ────────────────────────────────────────────── */
.site-footer { background: var(--purple-dark); color: rgba(255,255,255,.75); padding: 48px 0 32px; }
.footer-inner { text-align: center; }
.footer-brand { display: flex; flex-direction: column; align-items: center; margin-bottom: 16px; }
.footer-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 50%; margin: 0 auto 8px; }
.footer-tagline { font-size: .75rem; color: rgba(255,255,255,.5); font-style: italic; letter-spacing: .5px; }
.footer-address { font-size: .875rem; line-height: 1.7; margin-bottom: 20px; }
.footer-address a { color: rgba(255,255,255,.75); }
.footer-address a:hover { color: var(--white); }
.footer-social { display: flex; justify-content: center; gap: 16px; margin-bottom: 20px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); transition: background var(--transition); }
.footer-social a:hover { background: var(--gold); color: var(--white); }
.footer-copy { font-size: .8125rem; opacity: .6; }

/* ── Focus / a11y ──────────────────────────────────────── */
:focus-visible { outline: 2.5px solid var(--purple); outline-offset: 3px; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image { order: -1; }
  .about-image img { height: 300px; }
}

@media (max-width: 860px) {
  .logo-text-sub { display: none; }
}

@media (max-width: 680px) {
  .header-nav { display: none; }
  .nav-hamburger { display: flex; }
  .hero { min-height: 88vh; }
  .hero-content { padding-top: 40px; padding-bottom: 80px; }
  .section { padding: 56px 0; }
  .join-form { padding: 28px 20px; }
  .form-row--two { grid-template-columns: 1fr; gap: 0; }
  .form-row--two .form-group { margin-bottom: 20px; }
  .stats-row { flex-wrap: wrap; gap: 20px; }
  .status-card { padding: 36px 24px; }
}

@media (max-width: 420px) {
  .btn--submit { max-width: 100%; }
  .status-actions { flex-direction: column; align-items: center; }
}

/* ══ Create Referral Link Page ══════════════════════════════════════════════ */
.section--create {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  padding: 60px 0 80px;
  background: var(--bg-section);
}

.create-wrapper {
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

.create-header { text-align: center; margin-bottom: 36px; }
.create-title { font-family: var(--font-display); font-size: clamp(1.75rem,4vw,2.25rem); font-weight: 700; color: var(--text-dark); line-height: 1.2; margin-bottom: 12px; }
.create-sub { font-size: 1rem; color: var(--text-muted); line-height: 1.7; max-width: 480px; margin: 0 auto; }

/* ── Form ── */
.create-form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 40px; box-shadow: var(--shadow); }
.create-field-group { margin-bottom: 22px; }
.create-label { display: block; font-size: .875rem; font-weight: 600; color: var(--text-dark); margin-bottom: 7px; }
.create-input { width: 100%; padding: 11px 14px; font-family: var(--font-body); font-size: .9375rem; color: var(--text-dark); background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-sm); outline: none; transition: border-color var(--transition), box-shadow var(--transition); appearance: none; }
.create-input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(73,21,106,.1); }
.create-input::placeholder { color: #b0aec4; }
.create-hint { font-size: .8rem; color: var(--text-muted); margin-top: 6px; }
.create-error { display: block; font-size: .8125rem; color: var(--error); margin-top: 5px; font-weight: 500; }

/* ── Slug row ── */
.slug-row { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: border-color var(--transition), box-shadow var(--transition); }
.slug-row:focus-within { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(73,21,106,.1); }
.slug-prefix { background: var(--purple-light); color: var(--purple); font-size: .875rem; font-weight: 600; padding: 11px 12px; white-space: nowrap; flex-shrink: 0; border-right: 1.5px solid var(--border); }
.slug-input-wrap { display: flex; align-items: center; flex: 1; position: relative; }
.slug-input { border: none; border-radius: 0; box-shadow: none; padding-right: 100px; }
.slug-input:focus { border: none; box-shadow: none; }
.slug-status { position: absolute; right: 12px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.slug-status--available { color: var(--success); }
.slug-status--taken { color: var(--error); }
.slug-status--checking { color: var(--text-muted); }

/* ── Preview box ── */
.preview-box { background: var(--purple-tint); border: 1.5px dashed var(--border); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 24px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.preview-label { font-size: .8125rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.preview-url { font-size: .875rem; font-weight: 700; color: var(--purple); font-family: monospace; word-break: break-all; }

/* ── Success state ── */
.create-success { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 44px 40px; text-align: center; box-shadow: var(--shadow); }
.create-success-icon { width: 80px; height: 80px; border-radius: 50%; background: var(--success-bg); color: var(--success); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }

/* ── Link display ── */
.link-display { margin: 28px 0 20px; }
.link-box { background: var(--purple-tint); border: 2px solid var(--purple-light); border-radius: var(--radius); padding: 16px 20px; text-align: left; }
.link-box-label { font-size: .75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 8px; }
.link-box-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.link-box-url { font-size: 1rem; font-weight: 700; color: var(--purple); font-family: monospace; word-break: break-all; flex: 1; }
.btn--copy { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--purple); color: var(--white); border: none; border-radius: var(--radius-sm); font-size: .8125rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background var(--transition); flex-shrink: 0; }
.btn--copy:hover { background: var(--purple-dark); }
.link-copied-msg { display: none; font-size: .8125rem; color: var(--success); font-weight: 600; margin-top: 8px; }
.link-also { font-size: .8125rem; color: var(--text-muted); margin-top: 12px; }
.link-also-label { font-weight: 600; margin-right: 6px; }
.link-also code { background: var(--purple-tint); padding: 2px 7px; border-radius: 4px; font-size: .8125rem; color: var(--purple); }

/* ── Share strip ── */
.share-strip { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 24px 0 4px; }
.share-strip-label { font-size: .8125rem; font-weight: 600; color: var(--text-muted); }
.share-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: var(--radius-sm); font-size: .8125rem; font-weight: 600; color: var(--white); text-decoration: none; transition: opacity var(--transition), transform var(--transition); }
.share-btn:hover { opacity: .88; transform: translateY(-1px); color: var(--white); }
.share-btn--wa { background: #25d366; }
.share-btn--fb { background: #1877f2; }
.share-btn--tw { background: #1da1f2; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .create-form { padding: 28px 20px; }
  .create-success { padding: 32px 20px; }
  .slug-prefix { font-size: .75rem; padding: 11px 8px; }
  .share-strip { gap: 8px; }
}
