/* ============================================================
   MEMBERSHIP.CSS — Al Riffa Sports Club · Membership Page (Light Theme)
   ============================================================ */

:root {
  --primary: #187A7D;
  --primary-light: #1FA3A7;
  --primary-dark: #115B5D;
  --bg: #FAFBFC;
  --bg2: #FFFFFF;
  --bg3: #F0F2F5;
  --bg4: #E4E7EC;
  --text: #1A2332;
  --text-secondary: #4A5568;
  --grey: #8896A6;
  --border: rgba(24,122,125,0.12);
  --border-hover: rgba(24,122,125,0.35);
  --card-shadow: 0 2px 12px rgba(0,0,0,0.06);
  --error: #e74c3c;
  --success: #2ecc71;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ══ NAV ══ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 96px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
.nav-logo { display: flex; align-items: center; gap: 0.8rem; }
.nav-logo img { height: 80px; width: 80px; object-fit: contain; }
.nav-club-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: var(--primary);
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  opacity: 0.65;
  transition: opacity 0.2s, color 0.2s;
}
.nav-links a:hover { opacity: 1; color: var(--primary); }
.nav-links a.nav-active { opacity: 1; color: var(--primary); }

.nav-cta-li { display: none; }

/* ---- Language switcher ----
   A globe button that reveals the two languages on hover. :focus-within is there as
   well as :hover so it also opens from the keyboard and on touch, where hover does not
   exist. Grouped with the CTA in .nav-actions, so dir="rtl" flips the pair together. */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-lang {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-lang-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--primary);
  background: none;
  border: 1px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.nav-lang-toggle svg { width: 22px; height: 22px; display: block; }
.nav-lang:hover .nav-lang-toggle,
.nav-lang:focus-within .nav-lang-toggle {
  background: rgba(24,122,125,0.08);
  border-color: var(--border-hover);
  color: var(--primary-light);
}

.nav-lang-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  inset-inline-end: 0;
  min-width: 170px;
  list-style: none;
  padding: 0.35rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 200;
}
/* Invisible bridge across the gap, so the pointer can travel from the globe down to
   the menu without crossing dead space and closing it. */
.nav-lang-menu::before {
  content: '';
  position: absolute;
  top: -0.6rem;
  left: 0;
  right: 0;
  height: 0.6rem;
}
.nav-lang:hover .nav-lang-menu,
.nav-lang:focus-within .nav-lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-lang-opt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  border-radius: 4px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
a.nav-lang-opt:hover {
  background: rgba(24,122,125,0.08);
  color: var(--primary);
}
/* The Arabic option is Arabic text even on the English pages, which do not load the
   Arabic webfonts — fall through to whatever Arabic face the system has. */
.nav-lang-opt[lang="ar"] {
  font-family: 'Tajawal', 'Noto Kufi Arabic', sans-serif;
  letter-spacing: normal;
}
/* The language already being read: marked with a tick, and not a link */
.nav-lang-opt--current {
  color: var(--primary);
  font-weight: 700;
  cursor: default;
}
.nav-lang-opt--current::after {
  content: '\2713';
  margin-inline-start: auto;
  padding-inline-start: 0.6rem;
}

/* Each option keeps its flag — inline SVG rather than emoji, which Windows renders
   as bare "GB"/"QA" letters. */
.nav-lang-opt::before {
  content: "";
  flex: 0 0 auto;
  width: 20px;
  height: 14px;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.nav-lang-opt[hreflang="ar"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 14'%3E%3Crect width='20' height='14' fill='%238A1538'/%3E%3Cpath d='M0 0H5L8 0.778L5 1.556L8 2.333L5 3.111L8 3.889L5 4.667L8 5.444L5 6.222L8 7.000L5 7.778L8 8.556L5 9.333L8 10.111L5 10.889L8 11.667L5 12.444L8 13.222L5 14.000H0Z' fill='%23fff'/%3E%3C/svg%3E");
}
.nav-lang-opt[hreflang="en"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='c'%3E%3Cpath d='M30,15h30v15zv15h-30zh-30v-15zv-15h30z'/%3E%3C/clipPath%3E%3Crect width='60' height='30' fill='%23012169'/%3E%3Cpath d='M0,0 60,30M60,0 0,30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0,0 60,30M60,0 0,30' clip-path='url%28%23c%29' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30,0V30M0,15H60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30,0V30M0,15H60' stroke='%23C8102E' stroke-width='6'/%3E%3C/svg%3E");
}

.nav-cta {
  display: inline-block;
  padding: 0.55rem 1.4rem;
  background: var(--primary);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(24,122,125,0.25);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 300;
}
.nav-hamburger span {
  display: block;
  width: 100%; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══ PAGE LAYOUT — two-column split ══ */
.page-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  margin-top: 96px;
  min-height: calc(100vh - 72px - 76px);
}

/* ══ LEFT PANEL — branding ══ */
.left-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 3.5rem;
  min-height: 600px;
}

.left-panel-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(24,122,125,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(24,122,125,0.04) 0%, transparent 50%),
    var(--bg3);
}

.left-panel-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(24,122,125,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24,122,125,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at 40% 50%, black 20%, transparent 70%);
}

.left-panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(250,251,252,0.3) 100%);
}

.left-panel-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  max-width: 420px;
}

.panel-crest {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(24,122,125,0.15));
  animation: floatCrest 5s ease-in-out infinite alternate;
  align-self: center;
}
@keyframes floatCrest {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}

.panel-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 4vw, 4rem);
  line-height: 0.95;
  letter-spacing: 2px;
  color: var(--text);
}
.panel-heading span { color: var(--primary); }

.panel-sub {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 340px;
}

.panel-perks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.perk {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.perk-icon {
  width: 36px;
  height: 36px;
  background: rgba(24,122,125,0.06);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 4px;
}
.perk-icon svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

/* ══ RIGHT PANEL — form ══ */
.right-panel {
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 3.5rem;
  border-left: 1px solid var(--border);
}

/* ── Form container ── */
.form-container {
  width: 100%;
  max-width: 460px;
}

.form-header {
  margin-bottom: 2.5rem;
}

.form-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.form-eyebrow::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--primary);
}

.form-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 0.8rem;
  color: var(--text);
}
.form-title span { color: var(--primary); }

.form-intro {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ── Form fields ── */
.form-fields {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.field-required { color: var(--primary); font-size: 0.85rem; }

.field-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 1rem;
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 1;
}
.field-icon svg {
  width: 16px;
  height: 16px;
  color: var(--grey);
  transition: color 0.2s;
}
.field-icon--phone {
  left: auto;
  right: 1rem;
}

.phone-prefix {
  position: absolute;
  left: 2.8rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  pointer-events: none;
  z-index: 1;
  letter-spacing: 1px;
}

.field-input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  padding: 0.85rem 1rem 0.85rem 2.8rem;
  outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  -webkit-appearance: none;
  border-radius: 4px;
}
.field-input::placeholder { color: rgba(136,150,166,0.6); }
.field-input:focus {
  border-color: var(--primary);
  background: rgba(24,122,125,0.03);
  box-shadow: 0 0 0 3px rgba(24,122,125,0.08);
}
.field-input:focus + .field-icon svg,
.field-input-wrap:focus-within .field-icon svg { color: var(--primary); }

/* Phone field has prefix + right icon */
.field-input--phone {
  padding-left: 5.5rem;
  padding-right: 2.8rem;
  letter-spacing: 2px;
}

/* Validation states */
.field-group.has-error .field-input {
  border-color: var(--error);
  background: rgba(231,76,60,0.03);
}
.field-group.has-error .field-input:focus {
  box-shadow: 0 0 0 3px rgba(231,76,60,0.08);
}
.field-group.is-valid .field-input {
  border-color: var(--success);
}

.field-hint {
  font-size: 0.72rem;
  color: var(--grey);
  font-weight: 300;
  letter-spacing: 0.5px;
}

.field-error {
  font-size: 0.75rem;
  color: var(--error);
  font-weight: 600;
  letter-spacing: 0.5px;
  min-height: 1rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s;
}
.field-error.show {
  opacity: 1;
  transform: translateY(0);
}
.field-error::before {
  content: '!';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px; height: 14px;
  background: var(--error);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Submit button ── */
.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
  padding: 1rem 2rem;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  margin-top: 0.4rem;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
}
.submit-btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(24,122,125,0.25);
}
.submit-btn:active { transform: translateY(0); }
.submit-btn-arrow {
  width: 18px; height: 18px;
  transition: transform 0.2s;
}
.submit-btn:hover .submit-btn-arrow { transform: translateX(4px); }

/* ══ SUCCESS STATE ══ */
.success-container {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 420px;
  animation: fadeUp 0.6s both;
}
.success-container.show { display: flex; }

.success-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(46,204,113,0.08);
  border: 2px solid rgba(46,204,113,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  animation: scaleIn 0.5s cubic-bezier(0.22,1,0.36,1) both;
}
.success-icon svg {
  width: 36px; height: 36px;
  color: var(--success);
}
@keyframes scaleIn {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.success-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--success);
  margin-bottom: 0.5rem;
}

.success-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 2px;
  line-height: 1.05;
  margin-bottom: 1.2rem;
  color: var(--text);
}
.success-title span { color: var(--primary); }

.success-message {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 360px;
  margin-bottom: 1.5rem;
}
.success-message strong { color: var(--text); font-weight: 600; }

.success-divider {
  width: 40px; height: 2px;
  background: rgba(24,122,125,0.2);
  margin-bottom: 1.2rem;
}

.success-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 2rem;
}

.success-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 2rem;
  border: 1px solid var(--border-hover);
  color: var(--primary);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  border-radius: 4px;
}
.success-back-btn svg { width: 16px; height: 16px; }
.success-back-btn:hover {
  background: rgba(24,122,125,0.06);
  border-color: var(--primary);
  transform: translateX(-3px);
}

/* ══ FOOTER ══ */
footer {
  background: var(--primary-dark);
  border-top: 1px solid rgba(24,122,125,0.1);
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.footer-logo { display: flex; align-items: center; gap: 0.8rem; }
.footer-logo img { height: 36px; }
.footer-club { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; color: rgba(255,255,255,0.9); letter-spacing: 2px; }
.footer-copy { font-size: 0.72rem; color: rgba(255,255,255,0.55); }

/* ══ ANIMATIONS ══ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Left panel — slides in from the left */
.left-panel {
  animation: slideInLeft 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Right panel — slides in from the right */
.right-panel {
  animation: slideInRight 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Left panel inner elements — staggered fade up */
.panel-crest       { animation: floatCrest 5s ease-in-out infinite alternate, fadeUpIn 0.7s 0.3s both; }
.panel-heading     { animation: fadeUpIn 0.7s 0.4s both; }
.panel-sub         { animation: fadeUpIn 0.7s 0.5s both; }
.panel-perks       { animation: fadeUpIn 0.7s 0.6s both; }

/* Form elements — staggered fade up */
.form-header       { animation: fadeUpIn 0.7s 0.35s both; }
#group-name        { animation: fadeUpIn 0.7s 0.45s both; }
#group-email       { animation: fadeUpIn 0.7s 0.55s both; }
#group-phone       { animation: fadeUpIn 0.7s 0.65s both; }
.submit-btn        { animation: fadeUpIn 0.7s 0.75s both; }

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

/* ══ RESPONSIVE — TABLET (≤ 1024px) ══ */
@media (max-width: 1024px) {
  nav { padding: 0 1.5rem; }
  .nav-links { gap: 1.2rem; }
  .nav-links a { font-size: 0.95rem; }

  .page-wrap { grid-template-columns: 1fr 1.2fr; }
  .left-panel { padding: 3rem 2rem; }
  .right-panel { padding: 3rem 2.5rem; }
}

/* ══ RESPONSIVE — MOBILE (≤ 768px) ══ */
@media (max-width: 768px) {
  nav { padding: 0 1rem; height: 76px; }
  .nav-logo img { height: 60px; width: 60px; }
  .nav-club-name { font-size: 1.1rem; }
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }
  .nav-cta-li { display: block; padding: 1rem 1.5rem 0; }
  .nav-cta-li a {
    background: var(--primary);
    color: #fff;
    padding: 0.75rem;
    border-bottom: none;
    border-radius: 2px;
    font-size: 0.85rem;
    letter-spacing: 2.5px;
  }
  .nav-cta-li a:hover { background: var(--primary-light); color: #fff; }
  /* The CTA drops into the drawer on mobile, so the pill keeps its place in the
     bar, grouped against the hamburger. */
  .nav-actions {
    margin-inline-start: auto;
    margin-inline-end: 0.9rem;
  }
  .nav-links {
    display: none;
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0 2rem;
    gap: 0;
    border-bottom: 1px solid var(--border);
    z-index: 150;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a {
    display: block;
    padding: 0.9rem 0;
    font-size: 1rem;
    letter-spacing: 3px;
    border-bottom: 1px solid rgba(24,122,125,0.06);
    opacity: 1;
    color: var(--text);
  }
  .nav-links a:hover { color: var(--primary); background: rgba(24,122,125,0.04); }
  .nav-links .nav-cta-li a {
    color: #fff;
    background: var(--primary);
    border-bottom: none;
  }
  .nav-links .nav-cta-li a:hover {
    color: #fff;
    background: var(--primary-light);
  }

  /* Stack panels vertically */
  .page-wrap {
    grid-template-columns: 1fr;
    margin-top: 76px;
    min-height: auto;
  }

  .left-panel {
    padding: 3rem 1.5rem 2.5rem;
    min-height: auto;
  }
  .left-panel-content { align-items: center; text-align: center; }
  .panel-sub { text-align: center; }
  .panel-perks { align-items: flex-start; width: 100%; max-width: 320px; }

  .right-panel {
    padding: 2.5rem 1.5rem 3rem;
    border-left: none;
    border-top: 1px solid var(--border);
  }

  footer {
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
    padding: 1.2rem 1rem;
  }
}

/* ══ RESPONSIVE — SMALL MOBILE (≤ 480px) ══ */
@media (max-width: 480px) {
  .left-panel { padding: 2.5rem 1rem 2rem; }
  .panel-crest { width: 70px; height: 70px; }
  .panel-heading { font-size: 2.4rem; }
  .panel-perks { gap: 0.7rem; }
  .perk { font-size: 0.82rem; }

  .right-panel { padding: 2rem 1rem 2.5rem; }
  .form-container { max-width: 100%; }

  .field-input { font-size: 0.88rem; }
  .submit-btn { font-size: 1rem; padding: 0.9rem 1.5rem; }

  footer { padding: 1rem 0.8rem; }
  .footer-copy { font-size: 0.65rem; }
}
