/* ============================================
   TOKENS
   ============================================ */
:root {
  --text-primary: rgb(20, 20, 24);
  --text-secondary: rgb(60, 60, 68);
  --red-accent: rgb(224, 48, 41);
  --red-bar: rgb(211, 100, 91);
  --blue-btn: rgb(66, 116, 214);

  --bg: #ffffff;
  --panel-bg: rgb(243, 243, 245);
  --border: rgb(223, 223, 227);
  --error: rgb(200, 48, 48);

  --font-display: 'Francois One', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --font-accent: 'Caveat', cursive;

  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px 60px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  text-align: center;
  margin-bottom: 28px;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 6px;
}

.accent-line {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 32px;
  color: var(--red-accent);
  margin: 0 0 14px;
  line-height: 1.1;
}

.headline {
  font-family: var(--font-display);
  font-weight: 700;
  -webkit-text-stroke: 0.4px currentColor;
  font-size: 28px;
  line-height: 1.15;
  color: var(--text-primary);
  margin: 0 0 14px;
}

.subheadline {
  font-style: italic;
  font-size: 17px;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================
   QUALIFIER BAR
   ============================================ */
.qualifier-bar {
  background: var(--red-bar);
  color: #ffffff;
  border-radius: 6px;
  padding: 16px 18px;
  text-align: center;
  margin-bottom: 28px;
}

.qualifier-title {
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 4px;
}

.qualifier-text {
  font-size: 14px;
  margin: 0;
  opacity: 0.92;
}

/* ============================================
   CONTENT GRID
   Mobile-first: form appears first (above fold),
   photo panel follows below it.
   ============================================ */
.content-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-panel {
  order: 1;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 20px 18px;
}

.photo-panel {
  order: 2;
}

.form-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  text-align: center;
  color: var(--text-primary);
  margin: 0 0 18px;
}

/* ============================================
   FORM FIELDS
   ============================================ */
.field {
  margin-bottom: 14px;
}

.field label,
.radio-field legend {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  padding: 0;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%;
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text-primary);
}

.field input:focus {
  outline: 2px solid var(--blue-btn);
  outline-offset: 1px;
}

.field-error {
  display: none;
  color: var(--error);
  font-size: 12.5px;
  margin-top: 5px;
}

.field.has-error input,
.radio-field.has-error {
  border-color: var(--error);
}

.field.has-error .field-error,
.radio-field.has-error .radio-error {
  display: block;
}

.radio-field {
  border: none;
  padding: 0;
  margin: 0 0 16px;
}

.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 8px;
  background: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
  transition: border-color 0.15s ease;
}

fieldset.radio-field label.radio-option {
  font-weight: 400;
}

.radio-option:has(input:checked) {
  border-color: var(--blue-btn);
  background: rgba(66, 116, 214, 0.07);
}

.radio-option input {
  margin-top: 2px;
  accent-color: var(--blue-btn);
  flex-shrink: 0;
}

/* Phone field: country code select + number input side by side */
.phone-row {
  display: flex;
  gap: 8px;
}

.phone-row select {
  flex: 0 0 110px;
  padding: 13px 8px;
  font-family: var(--font-body);
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text-primary);
}

.phone-row input[type="tel"] {
  flex: 1;
  min-width: 0;
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text-primary);
}

.phone-row select:focus,
.phone-row input:focus {
  outline: 2px solid var(--blue-btn);
  outline-offset: 1px;
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */
.submit-btn {
  width: 100%;
  background: var(--blue-btn);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 16px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(15px, 4.3vw, 18px);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.submit-btn:hover {
  filter: brightness(0.95);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.consent-text {
  font-size: 11px;
  color: rgb(140, 142, 155);
  line-height: 1.4;
  margin: 12px 0 0;
  text-align: center;
}

.consent-text a {
  color: rgb(140, 142, 155);
  text-decoration: underline;
}

.consent-text a:hover {
  color: var(--text-secondary);
}

/* ============================================
   PHOTO PANEL
   ============================================ */
.instructor-photo {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin-bottom: 12px;
}

.bio-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ============================================
   DESKTOP LAYOUT
   ============================================ */
@media (min-width: 768px) {
  .headline {
    font-size: 40px;
  }

  .accent-line {
    font-size: 40px;
  }

  .subheadline {
    font-size: 19px;
  }

  .content-grid {
    flex-direction: row;
    align-items: flex-start;
  }

  .photo-panel {
    order: 1;
    flex: 1;
  }

  .form-panel {
    order: 2;
    flex: 1;
    padding: 28px 30px 24px;
  }
}
