/* =========================================================
   TinyBull — Checkout page styles
   VERSION 2.3 — Last updated 2026-05-18
   Stripe Payment Element centered within form panel.
   If you view-source on /order-now/ and see THIS version
   string in the stylesheet, the latest CSS is live.
   ========================================================= */

:root {
  --tb-navy:    #0f1923;
  --tb-navy-mid:#162330;
  --tb-teal:    #68ccee;
  --tb-green:   #7ac46d;
  --tb-grad:    linear-gradient(90deg, #68ccee, #7ac46d);
  --tb-white:   #ffffff;
  --tb-gray-lt: #f5f7fa;
  --tb-gray:    #e8ecf1;
  --tb-gray-dk: #94a3b8;
  --tb-text:    #1a2b3c;
  --tb-muted:   #64748b;
}

/* ─── Reset within scope only ─── */
.tb-checkout, .tb-checkout *, .tb-checkout *::before, .tb-checkout *::after {
  box-sizing: border-box;
}
.tb-checkout {
  font-family: 'Poppins', sans-serif;
  color: var(--tb-text);
  background: var(--tb-gray-lt);
  line-height: 1.5;
}

/* ─── CHECKOUT HEADER STRIP (rendered from header-checkout.php) ─── */
.tb-checkout-header {
  background: var(--tb-navy);
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}
.tb-checkout-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.tb-checkout-logo img {
  display: block;
  height: 32px;
  width: auto;
}
.tb-secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.tb-secure-badge svg { width: 14px; height: 14px; color: var(--tb-green); }

/* ─── TITLE BAND ─── */
.tb-checkout .title-band {
  background: var(--tb-navy);
  padding: 32px 40px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tb-checkout .title-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.tb-checkout .title-band::after {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(104,204,238,0.15) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}
.tb-checkout .title-band-inner { position: relative; z-index: 1; }
.tb-checkout .title-eyebrow {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--tb-teal);
  background: rgba(104,204,238,0.1);
  border: 1px solid rgba(104,204,238,0.25);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.tb-checkout .title-band h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  color: white;
  line-height: 1.15;
  margin: 0 0 8px;
}
.tb-checkout .title-band p {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin: 0;
}

/* ─── MAIN GRID ─── */
.tb-checkout .checkout-main {
  max-width: 960px;
  margin: -32px auto 0;
  padding: 0 40px 60px;
  position: relative;
  z-index: 2;
}
.tb-checkout .checkout-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}

/* ─── FORM PANEL (left column, wraps the live Gravity Form) ─── */
.tb-checkout .form-panel {
  background: white;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 4px 24px rgba(13,27,46,0.06);
}
.tb-checkout .form-panel h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--tb-navy);
  margin: 0 0 6px;
}
.tb-checkout .form-panel-sub {
  font-size: 14px;
  color: var(--tb-muted);
  margin: 0 0 28px;
}

/* ─── ORDER SUMMARY PANEL (right column) ─── */
.tb-checkout .summary-panel {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(13,27,46,0.06);
  position: sticky;
  top: 24px;
}
.tb-checkout .summary-header {
  background: var(--tb-navy);
  padding: 28px 28px 24px;
  color: white;
  position: relative;
  overflow: hidden;
}
.tb-checkout .summary-header::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(104,204,238,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.tb-checkout .summary-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
  position: relative;
}
.tb-checkout .summary-plan-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
  position: relative;
}
.tb-checkout .summary-plan-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}
.tb-checkout .summary-plan-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: white;
  line-height: 1.1;
}
.tb-checkout .summary-plan-tier {
  display: inline-block;
  margin-top: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--tb-teal);
  background: rgba(104,204,238,0.15);
  border: 1px solid rgba(104,204,238,0.3);
  padding: 2px 8px;
  border-radius: 50px;
}
.tb-checkout .summary-body { padding: 24px 28px; }
.tb-checkout .summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 13px;
  color: var(--tb-muted);
}
.tb-checkout .summary-line + .summary-line { border-top: 1px solid var(--tb-gray); }
.tb-checkout .summary-line strong {
  color: var(--tb-text);
  font-weight: 600;
}
.tb-checkout .summary-strike {
  text-decoration: line-through;
  color: var(--tb-gray-dk);
  font-size: 12px;
  margin-right: 6px;
}
.tb-checkout .summary-save-badge {
  display: inline-block;
  background: rgba(122,196,109,0.12);
  color: #2e9c44;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 50px;
}
.tb-checkout .summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 18px;
  margin-top: 6px;
  border-top: 2px solid var(--tb-navy);
}
.tb-checkout .summary-total-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--tb-navy);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.tb-checkout .summary-total-amount {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--tb-navy);
  line-height: 1;
}
.tb-checkout .summary-total-period {
  font-size: 12px;
  color: var(--tb-muted);
  font-weight: 600;
  margin-left: 4px;
}
.tb-checkout .summary-billing-note {
  font-size: 11px;
  color: var(--tb-muted);
  text-align: right;
  margin-top: 4px;
}
.tb-checkout .summary-includes {
  background: var(--tb-gray-lt);
  padding: 18px 28px;
  border-top: 1px solid var(--tb-gray);
}
.tb-checkout .summary-includes-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tb-muted);
  margin-bottom: 10px;
}
.tb-checkout .summary-includes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.tb-checkout .summary-includes-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--tb-text);
  line-height: 1.4;
}
.tb-checkout .summary-includes-list .pf-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tb-teal), var(--tb-green));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.tb-checkout .summary-includes-list .pf-dot svg { width: 9px; height: 9px; color: white; }

/* ─── TRUST STRIP ─── */
.tb-checkout .trust-strip {
  max-width: 1140px;
  margin: 28px auto 0;
  padding: 24px 40px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(13,27,46,0.04);
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 24px;
  flex-wrap: wrap;
}
.tb-checkout .trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--tb-text);
  letter-spacing: 0.3px;
}
.tb-checkout .trust-item svg {
  width: 18px; height: 18px;
  color: var(--tb-green);
  flex-shrink: 0;
}

/* ─── WHAT HAPPENS NEXT ─── */
.tb-checkout .next-section {
  max-width: 1140px;
  margin: 48px auto 0;
  padding: 0 40px;
}
.tb-checkout .next-header {
  text-align: center;
  margin-bottom: 36px;
}
.tb-checkout .next-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--tb-teal);
  margin-bottom: 10px;
}
.tb-checkout .next-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--tb-navy);
  margin: 0;
}
.tb-checkout .next-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.tb-checkout .next-step {
  background: white;
  padding: 32px 28px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(13,27,46,0.04);
  position: relative;
}
.tb-checkout .next-step-num {
  width: 44px; height: 44px;
  background: var(--tb-grad);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 900;
  margin: 0 auto 18px;
}
.tb-checkout .next-step h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--tb-navy);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tb-checkout .next-step p {
  font-size: 13px;
  color: var(--tb-muted);
  line-height: 1.6;
  margin: 0;
}

/* ─── FOOTER NOTE ─── */
.tb-checkout .footer-note {
  max-width: 760px;
  margin: 48px auto 32px;
  padding: 0 40px;
  text-align: center;
  font-size: 12px;
  color: var(--tb-muted);
  line-height: 1.7;
}
.tb-checkout .footer-note a {
  color: var(--tb-teal);
  text-decoration: none;
  font-weight: 600;
}

/* =========================================================
   GRAVITY FORMS OVERRIDES
   Reskins the live Gravity Form (left column) to match the
   checkout mock. Adjust selectors if your GF version differs.
   ========================================================= */

/* Strip GF's outer chrome */
.tb-checkout .gform_wrapper {
  margin: 0;
  padding: 0;
}
.tb-checkout .gform_wrapper form { margin: 0; }
.tb-checkout .gform_wrapper .gform_heading,
.tb-checkout .gform_wrapper .gform_required_legend { display: none; }

/* Field list */
.tb-checkout .gform_wrapper .gform_fields {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Single field block */
.tb-checkout .gform_wrapper .gfield {
  margin: 0;
  padding: 0;
  grid-column: span 2;        /* default full-width */
}

/* Half-width helper — add CSS class "tb-half" to a field in GF for half-width */
.tb-checkout .gform_wrapper .gfield.tb-half { grid-column: span 1; }

/* Hide Product Name dropdown + Total display (right-column summary handles this) */
.tb-checkout .gform_wrapper .gfield.tb-hide,
.tb-checkout .gform_wrapper .gfield.tb-hide { display: none !important; }

/* ─────────────────────────────────────────────────────────
 * AUTO-HIDE LAYOUT HELPER FIELDS
 * Your GF form uses legacy HTML fields ("Row Start", "Row End",
 * "Column Break", "CREDIT CARD" section) as visual markers from
 * old multi-column layouts. They render as visible text without
 * styling. We hide them globally on the checkout — no need to
 * manually mark them in the form editor.
 *
 * Also hides the Product field and Total field automatically
 * since the right-column order summary shows the customer what
 * they're buying. Backend processing still works.
 * ───────────────────────────────────────────────────────── */

/* HTML fields used as Row Start / Row End / Column Break markers */
.tb-checkout .gform_wrapper .gfield--type-html,
.tb-checkout .gform_wrapper li.gfield.gfield_html,
.tb-checkout .gform_wrapper .gfield.field_sublabel_below.field_description_below.gfield_html { display: none !important; }

/* Section headers (CREDIT CARD, etc.) — hidden by default; add .tb-section CSS class to a section to show it styled */
.tb-checkout .gform_wrapper .gfield--type-section:not(.tb-section),
.tb-checkout .gform_wrapper .gsection:not(.tb-section) { display: none !important; }

/* Product Name field + Total field — visually hidden but kept in the layout
   so Gravity Forms can still read their values and calculate the order total
   for Stripe. Do NOT use display:none here — it prevents GF from calculating
   the total, which makes Stripe reject the $0.00 PaymentIntent on submit. */
.tb-checkout .gform_wrapper .gfield--type-product,
.tb-checkout .gform_wrapper .gfield_product,
.tb-checkout .gform_wrapper .gfield--type-total,
.tb-checkout .gform_wrapper .gfield_total,
.tb-checkout .gform_wrapper .ginput_product_price_label,
.tb-checkout .gform_wrapper .ginput_total {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Labels */
.tb-checkout .gform_wrapper .gfield_label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--tb-text);
  margin-bottom: 6px;
}
.tb-checkout .gform_wrapper .gfield_required {
  color: #ef4444;
  margin-left: 2px;
}

/* Standard text-style inputs */
.tb-checkout .gform_wrapper input[type="text"],
.tb-checkout .gform_wrapper input[type="email"],
.tb-checkout .gform_wrapper input[type="tel"],
.tb-checkout .gform_wrapper input[type="number"],
.tb-checkout .gform_wrapper select,
.tb-checkout .gform_wrapper textarea {
  width: 100% !important;
  padding: 12px 14px !important;
  border: 1.5px solid var(--tb-gray) !important;
  border-radius: 8px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  color: var(--tb-text) !important;
  background: white !important;
  background-image: none !important;
  transition: border-color .15s, box-shadow .15s;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
}
.tb-checkout .gform_wrapper input:focus,
.tb-checkout .gform_wrapper select:focus,
.tb-checkout .gform_wrapper textarea:focus {
  outline: none !important;
  border-color: var(--tb-teal) !important;
  box-shadow: 0 0 0 3px rgba(104,204,238,0.15) !important;
}
.tb-checkout .gform_wrapper input::placeholder { color: #cbd5e1; }

/* Name field (First/Last side-by-side) */
.tb-checkout .gform_wrapper .ginput_complex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.tb-checkout .gform_wrapper .ginput_complex span { width: 100%; }
.tb-checkout .gform_wrapper .ginput_complex label {
  font-size: 11px;
  color: var(--tb-muted);
  margin-top: 4px;
}

/* Section header look — apply to Section field with CSS class "tb-section" */
.tb-checkout .gform_wrapper .gsection.tb-section {
  border: none;
  padding: 0;
  margin: 14px 0 0;
  grid-column: span 2;
}
.tb-checkout .gform_wrapper .gsection.tb-section .gsection_title {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--tb-muted);
  margin: 0 0 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--tb-gray);
}

/* Stripe Credit Card / Payment Element field */
.tb-checkout .gform_wrapper .gfield--type-stripe,
.tb-checkout .gform_wrapper .gfield--type-creditcard,
.tb-checkout .gform_wrapper .gfield--type-stripe_creditcard,
.tb-checkout .gform_wrapper [class*="gfield_stripe"] {
  width: 100% !important;
  grid-column: span 2 !important;
}
/* Light container — let Stripe's own design carry visual weight */
.tb-checkout .gform_wrapper .ginput_container_creditcard,
.tb-checkout .gform_wrapper .ginput_container_stripe_creditcard,
.tb-checkout .gform_wrapper .ginput_container_stripe,
.tb-checkout .gform_wrapper [class*="ginput_container_stripe"],
.tb-checkout .gform_wrapper [class*="ginput_container_credit"] {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Hide the GF "Credit Card" field label — Stripe's Element has its own header */
.tb-checkout .gform_wrapper .gfield--type-stripe > .gfield_label,
.tb-checkout .gform_wrapper .gfield--type-creditcard > .gfield_label,
.tb-checkout .gform_wrapper [class*="gfield_stripe"] > .gfield_label { display: none !important; }

/* Force iframe / Element wrapper to fill the field's width */
.tb-checkout .gform_wrapper .StripeElement,
.tb-checkout .gform_wrapper .StripeElement--empty,
.tb-checkout .gform_wrapper .StripeElement--focus,
.tb-checkout .gform_wrapper .StripeElement--complete,
.tb-checkout .gform_wrapper .StripeElement--invalid,
.tb-checkout .gform_wrapper [class*="ginput_container_stripe"] > div,
.tb-checkout .gform_wrapper [class*="ginput_container_stripe"] iframe,
.tb-checkout .gform_wrapper [class*="ginput_container_credit"] iframe {
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  box-sizing: border-box !important;
}

/* Force CC sub-fields to stack vertically (override the .ginput_complex 2-col grid
   used for First/Last name). Card details iframe sits above, cardholder name below. */
.tb-checkout .gform_wrapper .ginput_container_creditcard .ginput_complex,
.tb-checkout .gform_wrapper .ginput_container_stripe_creditcard .ginput_complex,
.tb-checkout .gform_wrapper .ginput_container_stripe .ginput_complex,
.tb-checkout .gform_wrapper [class*="ginput_container_credit"] .ginput_complex,
.tb-checkout .gform_wrapper [class*="ginput_container_stripe"] .ginput_complex {
  display: block !important;
  grid-template-columns: none !important;
  gap: 0 !important;
}

/* Each CC sub-field gets full width and bottom margin for spacing */
.tb-checkout .gform_wrapper [class*="ginput_complex_card"],
.tb-checkout .gform_wrapper .ginput_card_number,
.tb-checkout .gform_wrapper .ginput_cardholder_name,
.tb-checkout .gform_wrapper .ginput_card_expiration_container,
.tb-checkout .gform_wrapper .ginput_card_security_code_container,
.tb-checkout .gform_wrapper .ginput_full {
  width: 100% !important;
  display: block !important;
  margin: 0 0 12px !important;
  float: none !important;
}
.tb-checkout .gform_wrapper [class*="ginput_complex_card"]:last-child,
.tb-checkout .gform_wrapper .ginput_cardholder_name:last-child,
.tb-checkout .gform_wrapper .ginput_full:last-child { margin-bottom: 0 !important; }

/* Sub-labels under each CC field (Card Details, Cardholder Name) */
.tb-checkout .gform_wrapper .ginput_complex label,
.tb-checkout .gform_wrapper .ginput_card_number label,
.tb-checkout .gform_wrapper .ginput_cardholder_name label {
  font-size: 11px !important;
  color: var(--tb-muted) !important;
  margin-top: 4px !important;
  margin-bottom: 0 !important;
  font-weight: 500 !important;
}

/* Consent / T&C checkbox row */
.tb-checkout .gform_wrapper .gfield--type-consent,
.tb-checkout .gform_wrapper .gfield.tb-tnc {
  background: var(--tb-gray-lt);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.tb-checkout .gform_wrapper .gfield--type-consent .ginput_container_consent,
.tb-checkout .gform_wrapper .gfield.tb-tnc .ginput_container_checkbox { display: flex; align-items: flex-start; gap: 12px; }
.tb-checkout .gform_wrapper .gfield--type-consent input[type="checkbox"],
.tb-checkout .gform_wrapper .gfield.tb-tnc input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--tb-teal);
  flex-shrink: 0;
}
.tb-checkout .gform_wrapper .gfield--type-consent label,
.tb-checkout .gform_wrapper .gfield.tb-tnc label {
  font-size: 13px;
  color: var(--tb-text);
  line-height: 1.55;
  cursor: pointer;
  margin: 0;
  font-weight: 400;
}
.tb-checkout .gform_wrapper .gfield--type-consent a,
.tb-checkout .gform_wrapper .gfield.tb-tnc a {
  color: var(--tb-teal);
  text-decoration: none;
  font-weight: 600;
}

/* Submit button — full-width gradient */
.tb-checkout .gform_wrapper .gform_footer {
  padding: 0;
  margin: 20px 0 0;
}
.tb-checkout .gform_wrapper .gform_footer input[type="submit"],
.tb-checkout .gform_wrapper .gform_footer button.gform_button {
  width: 100% !important;
  padding: 16px !important;
  background: var(--tb-grad) !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(104,204,238,0.3) !important;
  transition: opacity .15s, transform .15s, box-shadow .15s !important;
}
.tb-checkout .gform_wrapper .gform_footer input[type="submit"]:hover,
.tb-checkout .gform_wrapper .gform_footer button.gform_button:hover {
  opacity: .92;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(104,204,238,0.4) !important;
}

/* Validation errors */
.tb-checkout .gform_wrapper .gfield_error input,
.tb-checkout .gform_wrapper .gfield_error select,
.tb-checkout .gform_wrapper .gfield_error textarea {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12) !important;
}
.tb-checkout .gform_wrapper .gfield_validation_message,
.tb-checkout .gform_wrapper .validation_message {
  color: #ef4444;
  font-size: 12px;
  margin-top: 6px;
}
.tb-checkout .gform_wrapper .gform_validation_errors {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
  color: #b91c1c;
  font-size: 13px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .tb-checkout-header { padding: 14px 20px; }
  .tb-checkout .title-band { padding: 28px 20px 60px; }
  .tb-checkout .checkout-main { padding: 0 20px 40px; }
  .tb-checkout .checkout-grid { grid-template-columns: 1fr; }
  .tb-checkout .summary-panel { position: static; }
  .tb-checkout .form-panel { padding: 24px; }
  .tb-checkout .gform_wrapper .gform_fields { grid-template-columns: 1fr; }
  .tb-checkout .gform_wrapper .gfield.tb-half { grid-column: span 1; }
  .tb-checkout .gform_wrapper .ginput_complex { grid-template-columns: 1fr; }
  .tb-checkout .trust-strip { padding: 20px; gap: 16px; }
  .tb-checkout .next-section { padding: 0 20px; }
  .tb-checkout .next-steps { grid-template-columns: 1fr; }
}

/* =========================================================
   PATCH 2.1 — Hard overrides for layout issues
   These rules use maximum specificity + !important to win
   any cascade conflict. Added because earlier rules weren't
   taking effect in some deployments.
   ========================================================= */

/* Force checkout-main to a narrower container */
body .tb-checkout .checkout-main {
  max-width: 960px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Force grid ratio so form column matches Stripe's render width */
body .tb-checkout .checkout-grid {
  grid-template-columns: 2fr 1fr !important;
  gap: 32px !important;
}

/* Force form-panel to fill its column but no wider */
body .tb-checkout .form-panel {
  width: 100% !important;
  max-width: 100% !important;
  padding: 32px 28px !important;
}

/* Force GF field list to fill the form-panel content area */
body .tb-checkout .gform_wrapper .gform_fields {
  width: 100% !important;
  max-width: 100% !important;
  grid-template-columns: 1fr 1fr !important;
}
body .tb-checkout .gform_wrapper .gfield {
  grid-column: span 2 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Name field: force First / Last to evenly split full width */
body .tb-checkout .gform_wrapper .ginput_complex {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
  width: 100% !important;
}
body .tb-checkout .gform_wrapper .ginput_complex > span,
body .tb-checkout .gform_wrapper .ginput_complex > div {
  width: 100% !important;
  min-width: 0 !important;
}
body .tb-checkout .gform_wrapper .ginput_complex input {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

/* Stripe Payment Element — strip ALL outer styling, force iframe full width */
body .tb-checkout .gform_wrapper [class*="ginput_container_stripe"],
body .tb-checkout .gform_wrapper [class*="ginput_container_credit"] {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  width: 100% !important;
  max-width: 100% !important;
}
body .tb-checkout .gform_wrapper iframe {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  display: block !important;
}
body .tb-checkout .gform_wrapper .gfield--type-stripe .gfield_label,
body .tb-checkout .gform_wrapper [class*="gfield_stripe"] .gfield_label {
  display: none !important;
}

/* ─── PATCH 2.3: Center Stripe Payment Element within form panel ─── */
/* Stripe controls its own iframe width (~500px max). When the form
   panel is wider than the Element, center it so whitespace is balanced. */
body .tb-checkout .gform_wrapper .gfield--type-stripe,
body .tb-checkout .gform_wrapper .gfield--type-stripe_creditcard,
body .tb-checkout .gform_wrapper .gfield--type-stripe_payment_element,
body .tb-checkout .gform_wrapper [class*="gfield_stripe"] {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
}

body .tb-checkout .gform_wrapper .gfield--type-stripe .ginput_container,
body .tb-checkout .gform_wrapper .gfield--type-stripe_creditcard .ginput_container,
body .tb-checkout .gform_wrapper .gfield--type-stripe_payment_element .ginput_container,
body .tb-checkout .gform_wrapper [class*="gfield_stripe"] .ginput_container {
  width: 100% !important;
  max-width: 540px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
