/* ============================================================
   Join V2 - Complete Stylesheet
   FIT Brand: #D73930 red, 34px 0 34px 0 corners, Poppins/Zuume
   ============================================================ */

/* -- TOKENS ------------------------------------------------- */
:root {
  --red:        #D73930;
  --red-dark:   #b52e27;
  --black:      #000000;
  --white:      #ffffff;
  --gold:       #EFA12A;
  --gray:       #515251;
  --light-gray: #f4f4f4;
  --mid-gray:   #e0e0e0;
  --border:     #d4d4d4;
  --text-muted: #777;
  --green:      #2e7d32;
  --font-display: 'Poppins', sans-serif;
  --font-body:    'Poppins', sans-serif;
  --btn-radius: 34px 0 34px 0;
  --sidebar-w: 300px;
  --form-max:  740px;
}

/* -- GENESIS CONTENT OVERRIDE ------------------------------- */
/* Genesis .content caps at 800px. Break out to 1100px for the join form. */
.join-v2-form {
  max-width: none;
}
body.page-template-page_member-signup {
  background-color: #f4f4f4;
}
body.page-template-page_member-signup .site-inner {
  background-color: #f4f4f4;
}
body.page-template-page_member-signup .content {
  max-width: 1100px;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}
body.page-template-page_member-signup .content-sidebar-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

/* -- RESET (scoped to join-v2-form) ------------------------- */
.join-v2-form *,
.join-v2-form *::before,
.join-v2-form *::after {
  box-sizing: border-box;
}

.join-v2-form {
  font-family: var(--font-body);
  background: var(--light-gray);
  color: var(--black);
}

/* -- SKIP LINK ---------------------------------------------- */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  border-radius: 0 0 4px 0;
}
.skip-to-content:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  outline: 2px solid var(--white);
}

/* -- SR-ONLY (screen reader only) --------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* -- ZUUME DISPLAY HEADING ---------------------------------- */
.zuume {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

/* -- FOCUS-VISIBLE (keyboard accessibility) ----------------- */
.join-v2-form :focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.join-v2-form input:focus-visible,
.join-v2-form select:focus-visible {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(215,57,48,0.15);
}
.plan-card:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  box-shadow: 0 4px 16px rgba(215,57,48,0.12);
}

/* -- TOP BAR ------------------------------------------------ */
.join-v2-top-bar {
  background: var(--black);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.join-v2-top-bar .join-page-logo img {
  height: 32px;
  width: auto;
}
.join-v2-top-bar .signup-location {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  text-align: center;
  margin: 0;
}
.join-v2-top-bar .club-pitch {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.join-v2-top-bar .change-link a {
  font-size: 12px;
  font-weight: 500;
  color: var(--mid-gray);
  text-decoration: none;
  white-space: nowrap;
}
.join-v2-top-bar .change-link a:hover {
  color: var(--white);
}

/* -- OFFER STRIP -------------------------------------------- */
.join-v2-offer-strip {
  background: var(--red);
  padding: 12px 20px;
  text-align: center;
}
.offer-text {
  font-size: 22px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  font-family: var(--font-display);
}
.offer-text span {
  color: var(--gold);
}
.countdown {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0,0,0,0.25);
  border-radius: 4px;
  padding: 4px 10px;
  min-width: 48px;
}
.countdown-num {
  font-size: 26px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.countdown-sep {
  font-size: 20px;
  font-weight: 900;
  color: rgba(255,255,255,0.5);
  line-height: 1;
  align-self: flex-start;
  padding-top: 4px;
}

/* -- STEP INDICATOR BAR ------------------------------------- */
.step-bar {
  background: var(--black);
  padding: 14px 16px 16px;
}
.step-track {
  display: flex;
  align-items: flex-start;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}
.step-track::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: #333;
  z-index: 0;
}
.step-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: default;
  position: relative;
  z-index: 1;
}
.step-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #444;
  background: #1a1a1a;
  color: #999;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}
.step-circle svg {
  width: 13px;
  height: 13px;
  display: none;
}
.step-label {
  font-size: 12px;
  font-weight: 600;
  color: #999;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  transition: color 0.25s ease;
}

/* Active step */
.step-item.active .step-circle {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.step-item.active .step-label {
  color: var(--white);
}

/* Completed step */
.step-item.done .step-circle {
  background: #2a2a2a;
  border-color: var(--red);
  color: var(--red);
}
.step-item.done .step-circle .num { display: none; }
.step-item.done .step-circle svg { display: block; }
.step-item.done .step-label { color: var(--red); }
.step-item.done { cursor: pointer; }
.step-item.done:hover .step-circle {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.step-item.done:hover .step-label { color: var(--white); }

/* Connectors */
.step-connector {
  flex: 1;
  height: 2px;
  background: #333;
  margin-top: 16px;
  position: relative;
  z-index: 0;
}
.step-connector.done { background: var(--red); }

/* -- FORM LAYOUT -------------------------------------------- */
.form-layout {
  display: flex;
  flex-direction: column;
  max-width: 1100px;
  margin: 0 auto;
  min-height: calc(100vh - 200px);
}

@media (min-width: 900px) {
  .form-layout {
    flex-direction: row;
    align-items: flex-start;
  }
}

.form-main {
  flex: 1;
  min-width: 0;
}

/* -- STEP CONTENT ------------------------------------------- */
.step-content {
  display: none;
  padding: 24px 16px;
}
.step-content.active {
  display: block;
  animation: stepFadeIn 0.3s ease both;
}
@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (min-width: 600px) {
  .step-content { padding: 32px 24px; }
}

.step-heading {
  font-size: 38px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 4px;
}
.step-sub {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 28px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* -- PROMO CONTROLS ----------------------------------------- */
.promo-controls {
  margin-bottom: 20px;
}

/* Promo Toggle (pill selector) */
.promo-toggle {
  display: inline-flex;
  background: var(--mid-gray);
  border-radius: 24px;
  padding: 3px;
  gap: 0;
  margin-bottom: 12px;
}
.promo-toggle-option {
  padding: 9px 22px;
  border: 2px solid transparent;
  border-radius: 22px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,0);
}
.promo-toggle-option:hover,
.promo-toggle-option:focus {
  color: var(--black);
  background: transparent;
  border-color: transparent;
}
.promo-toggle-option.active {
  background-color: var(--white);
  color: var(--black);
  border-color: transparent;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.promo-toggle-option.active:hover,
.promo-toggle-option.active:focus {
  background-color: var(--white);
  border-color: transparent;
}

/* Promo Code Area */
.promo-code-area {
  margin-bottom: 8px;
}
.promo-code-trigger {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
}
.promo-code-trigger:hover,
.promo-code-trigger:focus {
  color: var(--black);
  background: none;
  border: none;
}
.promo-code-input-wrap {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  max-width: 360px;
}
.promo-code-input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--black);
  background: var(--white);
}
.promo-code-input:focus {
  outline: none;
  border-color: var(--red);
}
.promo-code-apply {
  padding: 10px 20px;
  background: var(--red);
  color: var(--white);
  border: 2px solid transparent;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}
.promo-code-apply:hover {
  background: var(--red-dark);
}
.promo-code-error {
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  margin-top: 6px;
}

/* Promo group visibility */
.plan-promo-group {
  display: none;
}
.plan-promo-group.active {
  display: block;
}

/* Campaign promo badge on plan cards */
.plan-campaign-badge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--gold);
  color: var(--black);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  text-align: center;
}

/* Unavailable plan card */
.plan-card.unavailable {
  opacity: 0.4;
  pointer-events: none;
}
.plan-unavailable-msg {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding: 20px 0;
}

/* -- PLAN CARDS --------------------------------------------- */
.plan-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
/* Mobile: featured card floats to top of stack */
.plan-card.featured { order: -1; }

@media (min-width: 640px) {
  .plan-grid {
    flex-direction: row;
    align-items: flex-start;
  }
  .plan-card { flex: 1; order: 0; }
  /* Featured card lifts above siblings on desktop */
  .plan-card.featured { margin-top: -8px; }
}

.plan-card {
  border: 2px solid var(--border);
  border-radius: 0;
  background: var(--white);
  padding: 20px 16px 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(215,57,48,0);
}
.plan-card:hover {
  border-color: var(--red);
  box-shadow: 0 4px 16px rgba(215,57,48,0.12);
}
.plan-card.selected {
  border-color: var(--red);
  background: #fff8f8;
  box-shadow: 0 4px 20px rgba(215,57,48,0.2), inset 0 0 0 1px var(--red);
}
.plan-card.selected::after {
  content: '\2713';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 28px;
  height: 28px;
  background: var(--red);
  color: var(--white);
  border-radius: 0 0 0 8px;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  animation: checkPop 0.25s ease;
}
@keyframes checkPop {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.plan-card.selected .plan-btn {
  background: var(--black);
  color: var(--white);
}
.plan-card.selected .plan-btn:hover {
  background: var(--red);
  color: var(--white);
}
.plan-card.featured.selected {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(239,161,42,0.3), inset 0 0 0 1px var(--gold);
  background: var(--red);
}
.plan-card.featured.selected::after {
  background: var(--gold);
  color: var(--black);
}
.plan-card.featured.selected .plan-btn {
  background: var(--black);
  color: var(--white);
}
.plan-card.featured.selected .plan-btn:hover {
  background: var(--gold);
  color: var(--black);
}

/* Featured (gradient) card */
.plan-card.featured {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 8px 32px rgba(215,57,48,0.25);
  padding-top: 28px;
  padding-bottom: 24px;
}
.plan-card.featured .plan-name { color: var(--white); }
.plan-card.featured .plan-tagline { color: var(--white); }
.plan-card.featured .plan-price { color: var(--white); }
.plan-card.featured .plan-per { color: var(--white); }
.plan-card.featured .plan-desc { color: rgba(255,255,255,0.85); }

.plan-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold);
  color: var(--black);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 0;
}
.plan-card.featured .plan-badge {
  background: var(--white);
  color: var(--red);
}

.plan-name {
  font-size: 24px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 2px;
}
.plan-tagline {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray);
  margin-bottom: 14px;
}
.plan-price {
  font-size: 42px;
  font-weight: 900;
  font-style: italic;
  color: var(--red);
  line-height: 1;
}
.plan-price sup {
  font-size: 24px;
}
.plan-per {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  margin-bottom: 16px;
}
.plan-desc {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 18px;
  line-height: 1.55;
  font-weight: 500;
  flex: 1;
}

.plan-btn {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border: 2px solid transparent;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-align: center;
}
.plan-btn:hover {
  background: var(--red-dark);
  border-color: transparent;
}
.plan-card.featured .plan-btn {
  background: var(--white);
  color: var(--red);
}
.plan-card.featured .plan-btn:hover { background: var(--light-gray); }

.plan-fees {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.plan-card.featured .plan-fees { border-top-color: rgba(255,255,255,0.2); }
.plan-fee-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 5px;
}
.plan-card.featured .plan-fee-row { color: rgba(255,255,255,0.85); }
.plan-fee-row strong { color: var(--gold); }
.plan-card.featured .plan-fee-row strong { color: var(--white); }

/* -- AMENITIES TABLE ---------------------------------------- */
.amenities-persistent {
  border-top: 2px solid var(--border);
  margin-left: -16px;
  margin-right: -16px;
  padding-left: 16px;
  padding-right: 16px;
}
@media (min-width: 600px) {
  .amenities-persistent {
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
  }
}
@media (min-width: 900px) {
  .amenities-persistent {
    margin-left: -32px;
    margin-right: -32px;
    padding-left: 32px;
    padding-right: 32px;
  }
}
.amenities-toggle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px;
  background: var(--white);
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid var(--border);
}
.amenities-toggle-bar:hover { background: #fafafa; }
.amenities-toggle-label {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--black);
}
.amenities-toggle-icon {
  font-size: 22px;
  font-weight: 300;
  color: var(--red);
  line-height: 1;
  transition: transform 0.2s ease;
}
.amenities-persistent.open .amenities-toggle-icon {
  transform: rotate(45deg);
}
.amenities-body {
  display: none;
  padding: 0;
}
.amenities-persistent.open .amenities-body { display: block; }

@media (min-width: 600px) {
  .amenities-toggle-bar { padding: 16px 24px; }
  .amenities-body { padding: 0; }
}

.amenities-heading {
  font-size: 22px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: 16px;
}
/* Hide the H2 when the toggle bar is shown (steps 2+) to avoid duplicate label */
.amenities-persistent.collapsible .amenities-heading {
  display: none;
}
.amenities-wrap {
  border-radius: 0;
  border: 1px solid var(--border);
  overflow-x: hidden;
}
.amenities-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  table-layout: fixed;
  margin-bottom: 0;
}
.amenities-table thead tr {
  background: var(--black);
}
.amenities-table thead th {
  padding: 13px 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
}
.amenities-table thead th:first-child {
  text-align: left;
  width: 44%;
}
.amenities-table thead th.col-premium {
  background: var(--red);
}
.amenities-table thead th.col-l10 {
  background: #1a1a1a;
}

.group-row td {
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  padding: 7px 14px;
}

.amenities-table tbody tr:not(.group-row) {
  border-bottom: 1px solid var(--mid-gray);
}
.amenities-table tbody tr:last-child {
  border-bottom: none;
}
.amenities-table tbody tr:not(.group-row):hover {
  background: #fafafa;
}
.amenities-table tbody td {
  padding: 11px 14px;
  font-size: 13px;
  color: var(--gray);
  vertical-align: middle;
}
.amenities-table tbody td:not(:first-child) {
  text-align: center;
}

.check {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff3f3;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}
.dash {
  display: inline-block;
  width: 16px;
  height: 2px;
  background: var(--mid-gray);
  border-radius: 0;
}

.th-short { display: none; }
.th-full  { display: inline; }

/* -- MOBILE STEP BAR POLISH --------------------------------- */
@media (max-width: 599px) {
  .step-bar { padding: 10px 10px 12px; }
  .step-circle {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }
  .step-circle svg { width: 11px; height: 11px; }
  .step-label { font-size: 10px; letter-spacing: 0.03em; }
  .step-track::before { top: 14px; }
  .step-connector { margin-top: 14px; }
}

@media (max-width: 599px) {
  .amenities-table thead th:first-child { width: 52%; }
  .amenities-table thead th { padding: 9px 4px; font-size: 11px; letter-spacing: 0.03em; }
  .amenities-table thead th:not(:first-child) { padding-left: 2px; padding-right: 2px; }
  .amenities-table td { word-break: normal; overflow-wrap: normal; hyphens: none; }
  .amenities-table tbody td { padding: 9px 4px; font-size: 12px; }
  .amenities-table tbody td:first-child { padding-left: 8px; }
  .amenities-table tbody td:not(:first-child) { padding-left: 2px; padding-right: 2px; }
  .group-row td { padding: 6px 8px; font-size: 10px; }
  .check {
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    font-size: 15px;
    display: inline;
  }
  .dash {
    width: 10px;
    vertical-align: middle;
  }
  .th-full  { display: none; }
  .th-short { display: inline; }
}

/* -- ROTATE HINT -------------------------------------------- */
.rotate-hint {
  display: none;
}
@media (max-width: 599px) and (orientation: portrait) {
  .rotate-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 9px 12px;
    margin-bottom: 0;
    border-bottom: 2px solid var(--red);
    animation: rotate-hint-in 0.3s ease-out both;
  }
  .rotate-hint__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--red);
    animation: rotate-hint-spin 2.4s ease-in-out 0.8s infinite;
  }
  @keyframes rotate-hint-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes rotate-hint-spin {
    0%   { transform: rotate(0deg); }
    20%  { transform: rotate(-20deg); }
    40%  { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
  }
  @media (prefers-reduced-motion: reduce) {
    .rotate-hint,
    .rotate-hint__icon {
      animation: none;
    }
  }
}

/* -- FORM FIELDS -------------------------------------------- */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.field-row.single { grid-template-columns: 1fr; }
.field-row.dob-row { grid-template-columns: 1fr 1fr 1fr; }

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.field label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray);
}
.field input,
.field select {
  padding: 14px 14px;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--black);
  background: var(--white);
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}
.field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23515251' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--red);
}
.field input::placeholder { color: #bbb; }

.field-section-label {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--black);
  margin: 28px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
}

/* DOB fieldset reset */
.dob-fieldset {
  border: none;
  margin: 0;
  padding: 0;
}
.dob-fieldset > legend {
  float: left;
  width: 100%;
}
.dob-fieldset > .field-row {
  clear: both;
}

/* Field errors */
.field-error {
  font-size: 14px;
  color: var(--red);
  font-weight: 600;
  min-height: 0;
  transition: min-height 0.2s ease;
}
.field-error:not(:empty) {
  min-height: 18px;
  margin-top: 2px;
}
.field.has-error input,
.field.has-error select {
  border-color: var(--red);
}

/* Valid field indicator (green border) */
.field.has-valid input,
.field.has-valid select {
  border-color: var(--green);
}

/* Routing bank result */
.routing-bank-result {
  font-size: 13px;
  color: var(--gray);
  margin-top: 4px;
  font-weight: 500;
}

/* -- PAYMENT SECTIONS -------------------------------------- */
.payment-method-section {
  margin-bottom: 8px;
}

/* OR divider between payment methods */
.payment-or-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--gray);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.payment-or-divider::before,
.payment-or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* -- CARD TYPE INDICATOR ------------------------------------ */
.card-type-indicator {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green);
  margin-left: 6px;
}

/* -- AGE WARNING -------------------------------------------- */
.dob-age-note {
  display: block;
  font-weight: 400;
  font-style: italic;
  font-size: 12px;
  color: #666;
  margin-top: 2px;
  white-space: nowrap;
}
.age-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff3e0;
  border: 2px solid #ff9800;
  border-radius: 6px;
  padding: 14px 16px;
  margin-top: 12px;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #e65100;
  line-height: 1.5;
}
.age-warning svg {
  flex-shrink: 0;
  color: #ff9800;
  margin-top: 1px;
}

/* -- CTA BUTTONS -------------------------------------------- */
.cta-wrap {
  margin-top: 28px;
}
.btn-primary {
  display: block;
  width: 100%;
  padding: 20px 24px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  border: 2px solid transparent;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}
.btn-primary:hover { background: var(--red-dark); border-color: transparent; }
.btn-primary:active { transform: scale(0.99); }
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-submit {
  background: var(--black);
  font-size: 18px;
  letter-spacing: 0.10em;
  padding: 22px 24px;
  border-color: transparent;
}
.btn-submit:hover {
  background: var(--red);
  border-color: transparent;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0;
}
.btn-back:hover,
.btn-back:focus {
  color: var(--black);
  background: none;
  border: none;
}

/* -- MOBILE PLAN SUMMARY BAR ------------------------------- */
.mobile-summary-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  border-bottom: 2px solid var(--red);
  display: none;
}
.mobile-summary-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  cursor: pointer;
}
.mobile-summary-plan {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mobile-summary-price {
  font-size: 22px;
  font-weight: 900;
  color: var(--red);
  font-style: italic;
}
.mobile-summary-price small {
  font-size: 12px;
  font-weight: 500;
  color: #aaa;
  font-style: normal;
}
.mobile-summary-toggle {
  color: #aaa;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.mobile-summary-bar.expanded .mobile-summary-toggle {
  transform: rotate(180deg);
}
.mobile-summary-details {
  display: none;
  padding: 0 16px 14px;
  background: var(--black);
  border-top: 1px solid #222;
}
.mobile-summary-bar.expanded .mobile-summary-details {
  display: block;
}
.mobile-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid #1e1e1e;
  font-size: 13px;
}
.mobile-summary-row:last-child { border-bottom: none; }
.mobile-summary-row .label { color: #888; }
.mobile-summary-row .val { color: var(--white); font-weight: 600; }
.mobile-summary-row .val.offer { color: var(--gold); }

/* -- DESKTOP SIDEBAR ---------------------------------------- */
.form-sidebar {
  display: none;
}

@media (min-width: 900px) {
  .form-sidebar {
    display: block;
    width: var(--sidebar-w);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: fit-content;
    max-height: 100vh;
    overflow-y: auto;
    background: var(--black);
    border-left: 3px solid var(--red);
  }
  .mobile-summary-bar { display: none !important; }
}

.sidebar-inner {
  padding: 24px 20px;
}
.sidebar-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.sidebar-plan-name {
  font-size: 34px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.sidebar-price {
  font-size: 40px;
  font-weight: 900;
  color: var(--red);
  font-style: italic;
  line-height: 1;
  margin-bottom: 2px;
}
.sidebar-price small {
  font-size: 16px;
  font-weight: 500;
  color: #aaa;
  font-style: normal;
}
.sidebar-divider {
  border: none;
  border-top: 1px solid #222;
  margin: 16px 0;
}
.sidebar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid #1a1a1a;
  font-size: 14px;
}
.sidebar-row:last-child { border-bottom: none; }
.sidebar-row .lbl { color: #aaa; font-weight: 500; }
.sidebar-row .val { color: var(--white); font-weight: 700; }
.sidebar-row .val.offer { color: var(--gold); font-weight: 900; }
.sidebar-perks {
  margin-top: 16px;
}
.sidebar-perk {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 13px;
  color: #ccc;
}
.sidebar-perk-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}
.sidebar-offer-callout {
  border-top: 1px solid #222;
  margin-top: 20px;
  padding-top: 16px;
}
.sidebar-offer-callout-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.sidebar-offer-callout-text {
  font-size: 18px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.sidebar-offer-callout-sub {
  font-size: 13px;
  color: #999;
  margin-top: 4px;
}

/* -- SUMMARY NOTICE ----------------------------------------- */
.summary-notice {
  background: #fff8e1;
  border-left: 4px solid #f9a825;
  padding: 16px 20px;
  margin-bottom: 20px;
  border-radius: 0 4px 4px 0;
}
.summary-notice-heading {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #333;
}
.summary-notice-text {
  font-size: 14px;
  margin: 0;
  color: #555;
  line-height: 1.5;
}

/* -- REVIEW DIVIDER ----------------------------------------- */
.review-divider {
  height: 2px;
  background: var(--red);
  margin: 32px 0 24px;
}

/* -- CONFIRM PAGE ------------------------------------------- */
.confirm-section {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 20px 18px;
  margin-bottom: 20px;
  overflow: hidden;
}
.confirm-section-label {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--black);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
}
.confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--mid-gray);
  font-size: 15px;
}
.confirm-row:last-child { border-bottom: none; }
.confirm-row .clabel { color: var(--gray); }
.confirm-row .cval { font-weight: 700; color: var(--black); }
.confirm-row .cval.highlight { color: var(--red); font-style: italic; }
.confirm-row .cval.offer { color: var(--gold); font-weight: 900; }

/* Fee breakdown summary box */
.confirm-summary-box {
  background: #f5f5f5;
  padding: 16px;
  border-radius: 6px;
  margin-top: 12px;
}
.confirm-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  padding: 4px 0;
}
.confirm-summary-items {
  padding-left: 14px;
  font-size: 12px;
  color: var(--gray);
}
.confirm-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
}
.confirm-summary-line::before {
  content: none;
}
.confirm-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--black);
  padding: 4px 0;
}
.confirm-summary-divider {
  border-top: 1px solid var(--border);
  margin: 8px 0;
}
.confirm-total-row {
  font-weight: 900;
  font-size: 18px;
  color: var(--red);
}

/* Profile and billing detail lines */
.confirm-detail {
  font-size: 15px;
  color: var(--black);
  padding: 5px 0;
  line-height: 1.5;
}

/* Billing subsections */
.confirm-subsection {
  margin-top: 14px;
}
.confirm-subsection:first-of-type {
  margin-top: 0;
}
.confirm-subsection-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.confirm-note {
  font-weight: 400;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}

/* Agreement checkboxes */
.agreement-section {
  margin: 24px 0;
}
.agreement-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--gray);
  cursor: pointer;
  line-height: 1.6;
}
.agreement-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--red);
}
.agreement-modal-link {
  color: var(--red);
  text-decoration: underline;
  cursor: pointer;
}

/* Signature */
.signature-section {
  margin: 24px 0;
}
.signature-instructions {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 14px;
}
.signature-wrap {
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  overflow: hidden;
  position: relative;
}
.signature-wrap::after {
  content: '';
  position: absolute;
  bottom: 40px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: var(--mid-gray);
  pointer-events: none;
}
.signature-wrap canvas {
  display: block;
  width: 100%;
  height: 160px;
  cursor: crosshair;
  touch-action: none;
}
.btn-clear-sig {
  margin-top: 8px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: 0;
}
.btn-clear-sig:hover { color: var(--red); }

/* Success state */
.confirm-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.confirm-success.visible { display: block; }
.confirm-success-icon {
  width: 72px;
  height: 72px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.confirm-success-icon svg { width: 36px; height: 36px; }
.confirm-success h2 {
  font-size: 28px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.confirm-success p {
  font-size: 14px;
  color: var(--gray);
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.6;
}

/* -- RESPONSIVE DESKTOP ------------------------------------- */
@media (min-width: 900px) {
  .join-v2-top-bar { padding: 16px 28px; }
  .join-v2-offer-strip { padding: 14px 28px; }
  .offer-text { font-size: 28px; }
  .countdown-num { font-size: 34px; }
  .step-bar { padding: 16px 28px 18px; }
  .step-label { font-size: 12px; }
  .plan-grid { flex-direction: row; }
  .step-heading { font-size: 48px; }
  .step-content { padding: 40px 32px; }

  /* Field sections use full width of form-main */
  .step-content[data-step="2"] .field-row,
  .step-content[data-step="3"] .field-row {
    max-width: none;
  }
  .step-content[data-step="3"] .field-section-label {
    max-width: none;
  }
  /* Review/confirm section uses full width */
  #confirmReview .field-row,
  #confirmReview .field-section-label,
  .confirm-section,
  .agreement-section,
  .signature-section {
    max-width: none;
  }
}




/* ============================================================
   SUBMIT OVERLAY
   Full-screen overlay shown during AJAX submission to MiddleMan.
   ============================================================ */

.submit-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  align-items: center;
  justify-content: center;
}
.submit-overlay.visible {
  display: flex;
}
.submit-overlay-inner {
  text-align: center;
  padding: 40px;
}
.submit-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: joinV2Spin 0.8s linear infinite;
  margin: 0 auto 20px;
}
@keyframes joinV2Spin {
  to { transform: rotate(360deg); }
}
.submit-overlay-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  font-family: var(--font-body);
  margin: 0;
}

/* ============================================================
   SUBMIT ERROR BANNER
   Inline error message shown at top of review section on API errors.
   ============================================================ */

.submit-error-banner {
  background: #fff3f3;
  border: 2px solid var(--red);
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  line-height: 1.5;
}


/* -- REVIEWS SECTION ---------------------------------------- */
.join-v2-reviews {
  margin-top: 40px;
  padding: 40px 5%;
  background: var(--white);
}

.join-v2-reviews .wrap {
  max-width: 1300px;
  margin: 0 auto;
}

.join-v2-reviews h2 {
  text-align: center;
  font-size: 42px;
  margin: 0 0 24px;
  color: var(--black);
}

.join-v2-reviews-container {
  margin: 0 20px;
}

@media (max-width: 768px) {
  .join-v2-reviews {
    margin-top: 20px;
    padding-bottom: 20px;
  }

  .join-v2-reviews h2 {
    font-size: 32px;
    margin-bottom: 16px;
  }
}

/* -- AGREEMENT MODAL ---------------------------------------- */
.join-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.join-modal {
  background: #fff;
  max-width: 860px;
  width: 90%;
  max-height: 85vh;
  border-radius: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.join-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1;
}

.join-modal-body {
  padding: 32px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.join-modal-body img {
  max-width: 100%;
  height: auto;
}
