:root {
  --navy: #0A1F44;
  --blue: #0B3C8C;
  --orange: #FF8A1F;
  --orange-dark: #E8720A;
  --ink: #0A1F44;
  --muted: #4A5E7E;
  --line: #D8E2F2;
  --bg: #F3F6FA;
  --card: #FFFFFF;
  --danger: #C62828;
  --star-off: #C9D4E5;
  --radius: 20px;
  --font: 'IBM Plex Sans', 'Noto Sans Bengali', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Poppins', 'Noto Sans Bengali', system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; overflow-anchor: none; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--blue); }
h1, h2, p { margin: 0; }

/* Hero */
.hero {
  background:
    radial-gradient(700px 360px at 100% 110%, var(--blue) 0%, rgba(11, 60, 140, 0) 70%),
    linear-gradient(rgba(216, 226, 242, .06) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(216, 226, 242, .06) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--navy);
  color: #fff;
  padding: 32px 16px 96px;
}
.hero__inner { max-width: 720px; margin: 0 auto; }
.hero__logo { display: inline-block; }
.hero__logo img { height: 40px; width: auto; }
.hero__kicker {
  margin-top: 28px;
  display: flex; align-items: center; gap: 10px;
  color: var(--orange);
  font-family: var(--font-head);
  font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
}
.hero__kicker::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--orange); }
.hero__title {
  margin-top: 10px;
  font-family: var(--font-head);
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1.25; font-weight: 700; letter-spacing: -.01em;
}
.hero__title span { display: block; }
.hero__lead { margin-top: 14px; max-width: 640px; text-wrap: pretty; color: var(--line); font-size: clamp(15px, 2.4vw, 17px); }

/* Layout */
.wrap { max-width: 752px; margin: -64px auto 0; padding: 0 16px 48px; }
.stack { display: grid; gap: 20px; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 1px 2px rgba(10, 31, 68, .06), 0 8px 24px rgba(10, 31, 68, .06);
}
.card__title { font-family: var(--font-head); font-size: 20px; font-weight: 600; margin-bottom: 18px; }

/* Speaker card */
.speaker__head { display: flex; align-items: center; gap: 20px; }
.speaker__photo {
  width: 112px; height: 112px; flex: none;
  border-radius: 50%; object-fit: cover;
  border: 4px solid #fff; box-shadow: 0 0 0 3px var(--orange);
  background: var(--line);
}
.speaker__num { color: var(--orange-dark); font-weight: 700; font-size: 15px; }
.speaker__name { font-family: var(--font-head); font-size: clamp(20px, 4.4vw, 26px); font-weight: 700; line-height: 1.2; margin-top: 2px; }
.speaker__role { color: var(--muted); font-size: 15px; line-height: 1.45; margin-top: 4px; }
.speaker__role + .speaker__role { margin-top: 0; }

/* Rating */
.rating { border: 0; padding: 0; margin: 24px 0 0; min-width: 0; }
.rating__stars { display: flex; gap: 8px; margin-top: 8px; }
.star {
  position: relative;
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  cursor: pointer;
  color: var(--star-off);
  transition: color .12s, background-color .12s;
  -webkit-tap-highlight-color: transparent;
}
.star input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.star svg { width: 40px; height: 40px; }
.star.is-on { color: var(--orange); }
.star:hover { background: #FFF4EA; }
.star:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
/* The chosen rating shows on the question row, so picking a star never moves the page. */
.rating legend { width: 100%; flex-wrap: nowrap; }
.rating__hint { color: var(--orange-dark); font-size: inherit; font-weight: inherit; white-space: nowrap; }
.rating__hint:empty { display: none; }

/* Fields */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
/* Block flow, not grid gap: an extension that injects a hidden node next to a field adds no gap, so focus never shifts the page. */
.field { display: block; margin-top: 20px; }
.field > .label { margin-bottom: 6px; }
.field > input, .field > textarea { display: block; }
.field > .help { display: block; margin-top: 6px; }
.grid .field { margin-top: 0; }
.field--full { grid-column: 1 / -1; }
.label { display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; font-weight: 600; font-size: 15px; line-height: 1.5; padding: 0; }
.req { color: var(--danger); }
.opt { font-weight: 400; font-size: 13px; color: var(--muted); }
.help { color: var(--muted); font-size: 13px; }

input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  font: inherit; font-size: 16px; color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0;
  /* The 4px ring is always there, only transparent, so focus changes a color and never a size. */
  box-shadow: 0 0 0 4px transparent;
  transition: border-color .12s, box-shadow .12s;
}
input[type="text"], input[type="email"], input[type="tel"] { height: 52px; }
textarea { resize: vertical; min-height: 96px; }
input::placeholder, textarea::placeholder { color: #93A3BC; }
input:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11, 60, 140, .12); }

/* Errors sit on the label row, so showing or clearing one never moves the page. */
.error { color: var(--danger); font-size: 13px; font-weight: 400; white-space: nowrap; }
.is-invalid input, .is-invalid textarea { border-color: var(--danger); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Submit */
.submit { display: grid; gap: 14px; justify-items: center; margin-top: 4px; }
.submit__captcha:empty { display: none; }
.alert {
  width: 100%;
  background: #FDECEC; color: var(--danger);
  border-radius: 12px; padding: 12px 16px;
  font-size: 15px; text-align: center;
}
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; width: 100%; max-width: 420px;
  padding: 14px 28px;
  border: 0; border-radius: 14px;
  background: var(--navy); color: #fff;
  font: inherit; font-size: 17px; font-weight: 600;
  text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color .12s, opacity .12s;
}
.btn:hover { background: var(--blue); }
.btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--accent { background: var(--orange); color: var(--navy); }
.btn--accent:hover { background: var(--orange-dark); color: #fff; }
.btn__spinner {
  display: none; width: 18px; height: 18px;
  border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn.is-busy .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Thanks */
.thanks { text-align: center; padding: 48px 28px; outline: none; }
.thanks__icon {
  width: 72px; height: 72px; margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%; background: #E7F6EC; color: #1E8E3E;
}
.thanks__title { font-family: var(--font-head); font-size: clamp(22px, 5vw, 28px); font-weight: 700; line-height: 1.25; }
.thanks__text { color: var(--muted); margin-top: 8px; }
.thanks__cta { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 14px; justify-items: center; }
.thanks__cta p { font-weight: 600; }

.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 0 16px 32px; }
.foot a { color: inherit; }
.noscript { text-align: center; padding: 16px; color: var(--danger); }

/* Tablet and down */
@media (max-width: 600px) {
  .hero { padding: 24px 16px 84px; }
  .hero__logo img { height: 34px; }
  .hero__kicker { margin-top: 22px; }
  .wrap { margin-top: -60px; }
  .stack { gap: 16px; }
  .card { padding: 20px; border-radius: 16px; }
  .speaker__head { gap: 16px; }
  .speaker__photo { width: 84px; height: 84px; }
  .grid { grid-template-columns: 1fr; }
  .rating__stars { justify-content: space-between; max-width: 340px; gap: 4px; }
  .star { width: 56px; height: 56px; }
  .star svg { width: 42px; height: 42px; }
  .thanks { padding: 36px 20px; }
}

/* Small phones */
@media (max-width: 360px) {
  .card { padding: 16px; }
  .speaker__photo { width: 68px; height: 68px; }
  .star { width: 48px; height: 48px; }
  .star svg { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
