/* Kauvery Elite Privilege - registration landing page */

:root {
  --purple: #962067;
  --violet: #a3238e;
  --pink: #ee2d67;
  --yellow: #ffe73f;
  --dark: #58595b;
  --light: #f3f3f3;
  --cream: #fffaf4;
  --white: #fff;
  --error: #c62828;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: #302b2f;
  background: var(--white);
  font-family: Poppins, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 max(28px, calc((100vw - 1210px) / 2));
  background: #fff;
}
.site-header img { width: 132px; height: 58px; object-fit: contain; }
.site-header button {
  min-height: 42px;
  padding: 9px 20px;
  border: 1px solid var(--purple);
  border-radius: 999px;
  color: var(--purple);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}

.hero { overflow: hidden; background: var(--cream); padding-bottom: 20px; }
.hero picture, .hero img { display: block; width: 100%; }
.hero img { height: auto; }
/* position:relative lives on .hero-inner (not .hero) so .hero-hotspot's
   percentages are computed against the same box the image fills. */
.hero-inner { position: relative; }
/* elite-privilege-desktop.jpg is 1692x930 (1.82:1, close to 16:9) -- already
   a sensible banner ratio, so width:100%/height:auto above is enough on
   tall viewports: full width, no crop, full image shown.
   On short/wide viewports (incl. ultrawide monitors) that natural height
   can exceed the visible window, pushing the image's own bottom (the
   benefit-icon row baked into the artwork) below the fold without scrolling.
   Full width stays non-negotiable here, so height is clamped to fit
   (viewport minus the 76px header + a little bottom padding) and the
   resulting crop is split 44.6% top / 55.4% bottom (not 100% off one side)
   -- measured so it eats equally little into the card graphic (top edge at
   y=60px) and the icon row (bottom content ends at y=859px) instead of
   clipping one of them outright.
   Critically, the clamp's *lower* bound (100vw*829/1692) caps the total
   crop at exactly what the measured ~45px/~56px safe margins can absorb
   (101px combined) -- so on an aspect ratio too extreme for that budget
   (e.g. a 2560x1080 ultrawide), height stops shrinking further and the
   page scrolls a little instead of visibly clipping the card or icons.
   #positionHeroHotspot in the view's <script> uses this same 44.6% split
   to keep the invisible "Explore Benefits" click-target aligned, since a
   static CSS percentage would drift once the crop amount varies by
   viewport (verified: ~20-30px off at 1600x900). */
@media (min-width: 701px) {
  .hero-inner picture {
    height: clamp(calc(100vw * 829 / 1692), calc(100vw * 930 / 1692), calc(100vh - 76px - 20px));
    overflow: hidden;
  }
  .hero-inner picture img { height: 100%; object-fit: cover; object-position: center 44.6%; }
}
.hero-hotspot {
  position: absolute;
  left: 6.7%;
  bottom: 24.6%;
  width: 25.2%;
  height: 11.3%;
  border: 0;
  opacity: 0;
}

.registration-shell {
  position: relative;
  scroll-margin-top: 16px;
  padding: 64px 24px 76px;
  overflow: hidden;
  background: var(--cream);
}
.brand-motif {
  position: absolute;
  pointer-events: none;
  opacity: .035;
}
.brand-motif img { width: 100%; }
.motif-one { right: -130px; top: 40px; width: 520px; transform: rotate(-12deg); }
.registration-wrap { position: relative; width: min(1120px, 100%); margin: 0 auto; }
.registration-intro { max-width: 690px; margin: 0 auto 32px; text-align: center; }
.eyebrow {
  color: var(--purple);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.registration-intro h1 {
  margin: 14px 0 12px;
  color: var(--purple);
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 600;
}
.registration-intro p { margin: 0; color: var(--dark); font-size: 15px; line-height: 1.7; }
.progress-label { width: 210px; margin: 22px auto 0; }
.progress-label span { color: #746d72; font-size: 10px; font-weight: 600; }
.progress-label i { display: block; height: 4px; margin-top: 7px; border-radius: 4px; background: #eadfe5; }
.progress-label b { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--purple); }

.form-card {
  padding: 36px;
  border: 1px solid rgba(150,32,103,.1);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 26px 72px rgba(77,35,58,.12);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid.form-grid-lead { grid-template-columns: .34fr .66fr 1fr 1fr; }
/* free-text row that appears below "Registration venue / Activity site" only
   when "Other" is picked from the activity-site dropdown */
.form-grid.activity-site-other { grid-template-columns: 1fr; margin-top: 18px; }
.field { display: block; min-width: 0; margin: 0; }
.field > span, fieldset legend {
  display: block;
  margin-bottom: 8px;
  color: #443d42;
  font-size: 12px;
  font-weight: 600;
  float: none;
  width: auto;
}
.field input, .field select, .phone-input {
  width: 100%;
  height: 52px;
  border: 1px solid #ddd6da;
  border-radius: 11px;
  color: #322d31;
  background: #fff;
  outline: 0;
  transition: border-color .2s, box-shadow .2s;
}
.field > input, .field select { padding: 0 14px; }
.field select { appearance: auto; }
.phone-input { display: flex; overflow: hidden; }
.phone-input b {
  display: grid;
  place-items: center;
  padding: 0 13px;
  border-right: 1px solid #e5dfe2;
  color: var(--dark);
  background: #faf8f9;
  font-size: 13px;
}
.phone-input input { min-width: 0; padding: 0 13px; border: 0; height: 100%; border-radius: 0; }
.field input:focus, .field select:focus, .phone-input:focus-within {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(150,32,103,.09);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field:has(input[aria-invalid="true"]) .phone-input { border-color: var(--error); }
.field small, .form-error { display: block; margin-top: 6px; color: var(--error); font-size: 10px; }
.required-star { color: var(--error); font-style: normal; }
.field select[disabled] { color: #a39da1; cursor: not-allowed; background: #faf8f9; }

fieldset { padding: 0; border: 0; margin: 0; min-width: 0; }
.hospital-fieldset { margin: 24px 0; }
.hospital-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hospital-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 88px;
  margin: 0;
  padding: 15px;
  border: 1px solid #ddd6da;
  border-radius: 15px;
  background: #fff;
  cursor: pointer;
  font-weight: 400;
  transition: transform .2s, border-color .2s, box-shadow .2s, background .2s;
}
.hospital-card:hover { transform: translateY(-1px); border-color: rgba(150,32,103,.45); }
.hospital-card.selected { border-color: var(--purple); background: rgba(150,32,103,.045); box-shadow: inset 0 0 0 1px var(--purple); }
.hospital-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.hospital-pin {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--purple);
  background: rgba(150,32,103,.08);
}
.hospital-pin svg { width: 20px; }
.hospital-card small, .hospital-card strong { display: block; }
.hospital-card small { color: #777176; font-size: 10px; }
.hospital-card strong { margin-top: 2px; color: #373137; font-size: 14px; }
.hospital-card > i { position: absolute; top: 12px; right: 13px; display: none; color: var(--purple); font-style: normal; }
.hospital-card.selected > i { display: block; }

.gender-fieldset { margin: 22px 0 18px; }
.gender-options { display: flex; gap: 10px; }
.gender-options label { cursor: pointer; margin: 0; font-weight: 400; }
.gender-options input { position: absolute; opacity: 0; }
.gender-options span {
  display: block;
  min-width: 96px;
  padding: 10px 16px;
  border: 1px solid #ddd6da;
  border-radius: 999px;
  text-align: center;
  color: #5f585d;
  font-size: 12px;
  font-weight: 500;
}
.gender-options input:checked + span { border-color: var(--purple); color: var(--purple); background: rgba(150,32,103,.06); box-shadow: inset 0 0 0 1px var(--purple); }
.consent { display: flex; align-items: flex-start; gap: 9px; margin: 0; color: #6c656a; font-size: 10px; font-weight: 400; line-height: 1.55; }
.consent input { width: 17px; height: 17px; margin: 0; accent-color: var(--purple); }
.submit-button, .secondary-button {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--purple);
  font-weight: 600;
}
.submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: min(460px, 100%);
  min-height: 56px;
  margin: 23px auto 0;
  padding: 14px 24px;
  box-shadow: 0 12px 30px rgba(150,32,103,.22);
}
.submit-button:hover { background: #7d1755; transform: translateY(-1px); }
.submit-button[disabled] { opacity: .65; cursor: default; transform: none; }
.form-note { margin: 10px 0 0; color: #827b80; text-align: center; font-size: 10px; }
.form-note span { color: var(--purple); font-weight: 700; }

.benefits-section { padding: 72px 24px; text-align: center; background: #fff; }
.benefits-section h2 { font-weight: 400; max-width: 700px; margin: 14px auto 34px; color: var(--purple); font-size: clamp(28px,3vw,40px); line-height: 1.15; letter-spacing: -.025em; }
.benefit-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; width: min(1120px,100%); margin: 0 auto; }
.benefit-grid article { padding: 24px 12px; border: 1px solid #eee7eb; border-radius: 18px; }
.benefit-grid article > span { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 15px; border-radius: 50%; color: var(--purple); background: rgba(150,32,103,.07); }
.benefit-grid svg { width: 27px; height: 27px; }
.benefit-grid p { margin: 0; color: #4d474b; font-size: 12px; font-weight: 600; line-height: 1.45; }

.contact-section { display: grid; grid-template-columns: .75fr 1.25fr; gap: 46px; align-items: center; padding: 64px max(24px,calc((100% - 1120px)/2)); background: var(--cream); }
.contact-copy h2 { font-weight: 400; margin: 12px 0; color: var(--purple); font-size: 31px; line-height: 1.15; }
.contact-copy p { margin: 0; color: var(--dark); font-size: 13px; line-height: 1.7; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-cards a { position: relative; padding: 22px 18px 20px 72px; border: 1px solid rgba(150,32,103,.12); border-radius: 17px; color: inherit; background: #fff; text-decoration: none; box-shadow: 0 12px 32px rgba(77,35,58,.07); }
.contact-cards a:hover { color: inherit; text-decoration: none; }
.contact-cards a > span { position: absolute; top: 22px; left: 18px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: var(--purple); }
.contact-cards svg { width: 19px; }
.contact-cards small, .contact-cards strong, .contact-cards b { display: block; }
.contact-cards small { color: #7a7478; font-size: 9px; }
.contact-cards strong { margin-top: 2px; font-size: 13px; }
.contact-cards b { margin-top: 7px; color: var(--purple); font-size: 15px; }

.site-footer { display: grid; grid-template-columns: 1fr auto auto; gap: 26px; align-items: center; padding: 26px max(24px,calc((100% - 1120px)/2)); color: rgba(255,255,255,.73); background: var(--purple); font-size: 9px; }
.site-footer img { width: 105px; padding: 5px; border-radius: 5px; background: #fff; }
.site-footer p { margin: 0; }
.mobile-sticky { display: none; }

@media (max-width: 900px) {
  .form-grid.form-grid-lead { grid-template-columns: .42fr 1.1fr 1fr; }
  .form-grid.form-grid-lead .field:last-child { grid-column: span 3; }
  .benefit-grid { grid-template-columns: repeat(3,1fr); }
  .contact-section { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 700px) {
  body { padding-bottom: 72px; }
  .site-header { height: 64px; padding: 0 17px; }
  .site-header img { width: 112px; height: 51px; }
  .site-header button { min-height: 34px; padding: 6px 14px; font-size: 11px; }
  .hero-hotspot { left: 6%; bottom: 29%; width: 47%; height: 8%; }
  .registration-shell { padding: 42px 15px 52px; }
  .motif-one { right: -135px; top: 80px; width: 330px; }
  .registration-intro { margin-bottom: 25px; }
  .registration-intro h1 { font-size: 32px; }
  .registration-intro p { font-size: 13px; }
  .form-card { padding: 23px 17px; border-radius: 20px; }
  .form-grid, .form-grid.form-grid-lead { grid-template-columns: 1fr; gap: 15px; }
  .form-grid.form-grid-lead .field:last-child { grid-column: auto; }
  .hospital-fieldset { margin: 20px 0; }
  .hospital-options { grid-template-columns: 1fr; gap: 10px; }
  .hospital-card { min-height: 82px; }
  .gender-options { display: grid; grid-template-columns: repeat(3,1fr); }
  .gender-options span { min-width: 0; padding: 10px 5px; }
  .submit-button { min-height: 54px; padding: 13px 18px; }
  .benefits-section { padding: 58px 15px; }
  .benefit-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .benefit-grid article { padding: 20px 9px; }
  .contact-section { padding: 54px 15px; }
  .contact-copy h2 { font-size: 28px; }
  .contact-cards { grid-template-columns: 1fr; text-align: left; }
  .site-footer { grid-template-columns: 1fr; gap: 10px; justify-items: center; text-align: center; padding: 28px 20px; }
  .mobile-sticky { position: fixed; z-index: 30; right: 13px; bottom: 11px; left: 13px; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 53px; border: 0; border-radius: 999px; color: #fff; background: var(--purple); box-shadow: 0 14px 38px rgba(75,18,51,.34); font-weight: 600; transition: opacity .2s, transform .2s; }
  .mobile-sticky.is-hidden { opacity: 0; transform: translateY(150%); pointer-events: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.d-none { display: none !important; }
