/* =========================================================
   BBI BRAND TOKENS — keep identical across all BBI landing pages
   ========================================================= */
:root {
  --bbi-pink: #e0177b;
  --bbi-blue: #72a6d9; /*2b4fa0*/
  --bbi-navy: #1a2d5a;
  --bbi-gradient: linear-gradient(to right, #4a6fd4 0%, #e0177b 100%);
  --font-display: 'Lato', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;
}

/* =========================================================
   BASE
   ========================================================= */
html, body { height: 100%; }
html { box-sizing: border-box; font-size: 16px; }
*, *:before, *:after { box-sizing: inherit; }
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: #2c2c33;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/*
  Layout note: body is a flex column so the footer always sits at the
  bottom even on short pages (thank-you) while still flowing normally
  on tall pages (the registration form). `main` is the only flexible
  region — it grows to fill leftover space between header and footer,
  and centers its content vertically when that content doesn't fill
  the viewport. Header, phone bar / prefooter stripe, and footer stay
  their natural height.
*/
main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
h1, h2 { font-family: var(--font-display); font-weight: 900; margin: 0; }
p { margin: 0 0 1rem; line-height: 1.5; font-size: 1rem; }
a { color: var(--bbi-blue); }
img { max-width: 100%; display: block; }

.content-wrap {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========================================================
   BASE — SITE HEADER (reusable across all event/registration pages)
   ========================================================= */
.site-header {
  background: #fff;
  padding: 1.75rem 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.page-title {
  font-size: 2.75rem;
  line-height: 1.1;
  color: var(--bbi-pink);
}
.header-logo {
  height: 64px;
  width: auto;
  flex-shrink: 0;
}
.header-stripe {
  height: 8px;
  background: var(--bbi-gradient);
}

/* =========================================================
   PAGE-SPECIFIC — Dinner Details
   ========================================================= */
.dinner-details {
  padding: 1.5rem 48px 0;
}
  .dinner-details h3 {
    font-size: 1.5rem;
    color: var(--bbi-blue);
    margin-bottom: .15rem;
  }
  .dinner-details p {
    margin-bottom: 0px;
  }

/* =========================================================
   PAGE-SPECIFIC — Presenter card
   ========================================================= */
.presenter-section {
  padding: 2.5rem 48px 0;
}
.eyebrow {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bbi-blue);
  margin-bottom: 1rem;
}
.presenter-card {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-bottom: 1.5rem;
}
.presenter-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  /*border: 4px solid var(--bbi-pink);*/
  object-fit: cover;
  flex-shrink: 0;
}
.presenter-name {
  font-size: 1.75rem;
  color: var(--bbi-blue);
  margin-bottom: .25rem;
}
.presenter-credentials {
  font-size: 1rem;
  color: var(--bbi-blue);
  font-weight: 700;
  margin-bottom: 1rem;
}
.presenter-note {
  font-size: 1rem;
  color: #2c2c33;
  max-width: 800px;
  margin-bottom: 0;
}

/* =========================================================
   PAGE-SPECIFIC — Form wrapper (Airtable embed)
   ========================================================= */
.form-section {
  padding: 0 0 0;
}
.form-wrapper {
  width: 100%;
  overflow: hidden;
}
.form-wrapper iframe {
  display: block;
  width: 100%;
  border: none;
  margin-top: -4rem;
}

/* =========================================================
   BASE — PRE-FOOTER STRIPE (reusable)
   ========================================================= */
.prefooter-stripe {
  background: var(--bbi-gradient);
  padding: 1.5rem 0;
}
.prefooter-stripe p {
  color: #fff;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0;
}
.prefooter-stripe .prefooter-line2 {
  font-style: italic;
  font-weight: 700;
  margin-bottom: 0;
}

/* =========================================================
   BASE — SITE FOOTER (reusable)
   ========================================================= */
.site-footer {
  background: var(--bbi-navy);
  color: #fff;
  padding: 2.5rem 0 2rem;
}
.footer-disclaimer p {
  font-size: .875rem;
  color: rgba(255,255,255,.85);
  line-height: 1.5;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.footer-links {
  font-size: 1rem;
  margin-bottom: .5rem;
}
.footer-links a {
  color: #fff;
  text-decoration: underline;
}
.copyright {
  font-size: .75rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 0;
}
.footer-center {
  text-align: right;
  display: flex;
  flex-direction: column;
}
.footer-center .footer-states {
  font-size: 1rem;
  font-weight: 900;
  font-family: var(--font-display);
  color: var(--bbi-pink);
}
.footer-center span {
  font-size: .75rem;
  color: var(--bbi-pink);
  font-weight: 700;
}
.footer-logo {
  height: 40px;
  width: auto;
}
/* =========================================================
   THANK YOU PAGE — specific block
   ========================================================= */
.thankyou-section {
  padding: 3.5rem 1.5rem;
}
.thankyou-section h2 {
  font-size: 2rem;
  text-transform: uppercase;
  text-align: center;
  color: #4a6fd4;
  margin-bottom: 1.5rem;
}
.thankyou-section p {
  font-size: 1rem;
  text-align: left;
  max-width: 640px;
  margin: 0 auto 1rem;
}
.thankyou-section .btn-grad {
  display: block;
  width: max-content;
  margin: 1rem auto 0;
}

/* =========================================================
   BASE — PHONE BAR (reusable; gradient bar with a single bold line,
   e.g. a phone number or short prompt — distinct from the two-line
   prefooter-stripe disclaimer used on the registration page)
   ========================================================= */
.phone-bar {
  background: var(--bbi-gradient);
  padding: 1.25rem 0;
}
.phone-bar p {
  color: #fff;
  text-align: center;
  font-size: 2rem;
  font-weight: 900;
  font-family: var(--font-display);
  margin-bottom: 0;
}

/* =========================================================
   BUTTONS (for thank-you page CTA / any future CTA use)
   ========================================================= */
.btn-grad {
  display: inline-block;
  background: var(--bbi-gradient);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: .875rem 2rem;
  border-radius: .75rem;
  border: none;
  cursor: pointer;
}

/* =========================================================
   NATIVE FORM COMPONENTS (reference/comparison build — not used by the
   Airtable-iframe version of the registration page. See README.)
   ========================================================= */
.native-form {
  padding: 1rem 0 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1.25rem;
}
.form-grid .form-group.full-width {
  grid-column: 1 / -1;
}
.form-group {
  display: flex;
  flex-direction: column;
}
.field-lbl {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--bbi-navy);
  margin-bottom: .5rem;
}
.field-required {
  color: var(--bbi-pink);
  margin-left: .25rem;
}
.field-hint {
  font-size: .875rem;
  color: #6b7280;
  margin-top: .375rem;
}
.field-error {
  font-size: .875rem;
  color: var(--bbi-pink);
  font-weight: 700;
  margin-top: .375rem;
  display: none;
}
.form-group.invalid .field-error {
  display: block;
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: #2c2c33;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: .5rem;
  padding: .75rem 1rem;
}
.field-textarea {
  resize: vertical;
  min-height: 4.5rem;
}
.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  outline: none;
  border-color: var(--bbi-blue);
  box-shadow: 0 0 0 3px rgba(43, 79, 160, .15);
}
.form-group.invalid .field-input,
.form-group.invalid .field-select,
.form-group.invalid .field-textarea {
  border-color: var(--bbi-pink);
  box-shadow: 0 0 0 3px rgba(224, 23, 123, .12);
}

/* Specialty — multi-select as bordered pills (same interaction pattern as
   the letsgetdry.com quiz options: bordered pill, blue hover/selected) */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.pill-option {
  position: relative;
}
.pill-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.pill-option label {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: #2c2c33;
  background: #fff;
  border: 2px solid #d0d5dd;
  border-radius: 2rem;
  padding: .5rem 1.25rem;
  cursor: pointer;
  user-select: none;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.pill-option input:hover + label,
.pill-option input:focus-visible + label {
  border-color: #70a6d9;
}
.pill-option input:checked + label {
  border-color: #70a6d9;
  background: #70a6d9;
  color: #fff;
}
.form-group.invalid .pill-group label {
  border-color: var(--bbi-pink);
}

/* Eligibility checkbox — plain, with consent-style copy at .875rem */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.checkbox-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: .125rem;
  flex-shrink: 0;
  accent-color: var(--bbi-pink);
}
.checkbox-row label {
  font-size: .875rem;
  color: #2c2c33;
  line-height: 1.5;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}
.form-reset {
  background: none;
  border: none;
  color: var(--bbi-blue);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.form-submit-note {
  font-size: .875rem;
  color: #6b7280;
  margin-top: 1rem;
}

/* =========================================================
   RESPONSIVE — mobile
   ========================================================= */
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column-reverse;
    text-align: center;
    gap: .75rem;
  }
  .page-title {
    font-size: 1.75rem;
  }
  .header-logo {
    height: 56px;
  }
  .presenter-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .presenter-note {
    text-align: left;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-links, .copyright {
    text-align: center;
  }
  .footer-center {
    align-items: center;
    text-align: center;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 1rem;
  }
  .form-actions .btn-grad {
    width: 100%;
    text-align: center;
  }
}
