/* ============================================================
   SCHEDULE A VISIT — 2026 REFRESH
   /schedulevisit/<seller_id>  (home/schedule-visit.html)
   Depends on tokens in static/css/anou-tokens.css (loaded in base.html).
   Class prefix: sv-
   Replaces public/css/schedule-visit.css for this page.
   ============================================================ */

/* base.css only sets the body font on p/li/td, so bare <span>s fall back to the
   browser serif. Set it once on the page containers and let everything inherit. */
.sv-hero,
.sv-facts,
.sv-layout,
.sv-faq-section {
  font-family: grap, sans-serif;
}

/* Amounts and phone numbers keep tabular figures and LTR order */
.sv-num {
  font-variant-numeric: tabular-nums;
  direction: ltr;
  display: inline-block;
}


/* Hero
----------------------------------------*/
.sv-hero {
  position: relative;
}

.sv-hero > img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.sv-hero-scrim {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(rgba(24, 30, 42, .3), rgba(24, 30, 42, .7));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 56px;
}

.sv-hero-kicker {
  margin: 0 0 12px 0;
  font-family: grap-med, sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: #85A9E4;
}

.sv-hero-title {
  margin: 0 0 14px 0;
  font-family: grotesk, sans-serif;
  font-weight: 900;
  font-size: 40px;
  line-height: 1.15;
  color: #ffffff;
  max-width: 760px;
}

.sv-hero-body {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: #e5e8ee;
  max-width: 620px;
}


/* Facts strip
----------------------------------------*/
.sv-facts {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 16px 40px;
  border-bottom: 1px solid #e5e8ee;
  background: #fafbfd;
  flex-wrap: wrap;
}

.sv-fact {
  font-size: 12.5px;
  color: #4b5563;
}


/* Layout
----------------------------------------*/
.sv-layout {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  padding: 40px 40px 48px 40px;
  align-items: start;
}

.sv-form-col {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.sv-rail {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}


/* Steps
----------------------------------------*/
.sv-step-label {
  margin: 0 0 4px 0;
  font-family: grap-med, sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: #9aa1ad;
}

.sv-step-help {
  margin: 0 0 14px 0;
  font-size: 13px;
  line-height: 1.6;
  color: #6b7280;
}

.sv-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}


/* Selectable tiles (visit type, interpreter, transport)
----------------------------------------*/
.sv-tile {
  border: 1px solid #ccd8eb;
  background: #ffffff;
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.sv-tile:hover {
  border-color: #85A9E4;
}

.sv-tile.is-selected {
  border: 2px solid #407bd9;
  background: #f2f6fc;
  /* keep the box the same size as the unselected 1px state */
  padding: 15px 17px;
}

.sv-tile-name {
  margin: 0 0 4px 0;
  font-family: grap-med, sans-serif;
  font-size: 14px;
  color: #2e333d;
}

.sv-tile-blurb {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #6b7280;
}

.sv-tile-price {
  font-family: grap-med, sans-serif;
  font-size: 14px;
  color: #2e333d;
  white-space: nowrap;
}

/* Compact one-line variant used by interpreter / transport */
.sv-tile-compact {
  padding: 14px 16px;
  align-items: center;
}

.sv-tile-compact.is-selected {
  padding: 13px 15px;
}

.sv-tile-compact .sv-tile-name {
  margin: 0;
  font-family: grap, sans-serif;
  font-size: 13.5px;
}

.sv-tile-note {
  font-size: 13px;
  color: #6b7280;
  white-space: nowrap;
}


/* Visitor stepper
----------------------------------------*/
.sv-stepper-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.sv-stepper {
  display: flex;
  align-items: stretch;
  border: 1px solid #ccd8eb;
  direction: ltr;
}

.sv-stepper-btn {
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #407bd9;
  background: #ffffff;
  border: 0;
  cursor: pointer;
  user-select: none;
  font-family: grap, sans-serif;
}

.sv-stepper-btn:hover {
  background: #f2f6fc;
}

.sv-stepper-btn:disabled {
  color: #ccd8eb;
  cursor: not-allowed;
  background: #ffffff;
}

.sv-stepper-value {
  width: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: grap-med, sans-serif;
  font-size: 16px;
  color: #2e333d;
  border-left: 1px solid #ccd8eb;
  border-right: 1px solid #ccd8eb;
  padding: 11px 0;
}

.sv-stepper-note {
  font-size: 13px;
  color: #6b7280;
}


/* Fields
----------------------------------------*/
.sv-field-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.sv-field {
  flex: 1 1 200px;
}

.sv-field-wide {
  flex: 1 1 240px;
}

.sv-field-label {
  margin: 0 0 5px 0;
  font-family: grap-med, sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #9aa1ad;
}

.sv-input,
.sv-select {
  width: 100%;
  border: 1px solid #ccd8eb;
  border-radius: 0;
  padding: 11px 12px;
  font-size: 14px;
  color: #2e333d;
  font-family: grap, sans-serif;
  outline: 0;
  box-sizing: border-box;
  background: #ffffff;
  height: auto;
  margin: 0;
  box-shadow: none;
}

.sv-input:focus,
.sv-select:focus {
  border-color: #407bd9;
  box-shadow: none;
}

.sv-field-help {
  margin: 6px 0 0 0;
  font-size: 12px;
  color: #9aa1ad;
}


/* Step 07 — payment currency
----------------------------------------*/
.sv-pay {
  border-top: 1px solid #e5e8ee;
  padding-top: 30px;
}

.sv-pay .sv-step-label {
  color: #407bd9;
}

.sv-pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.sv-pay-tile {
  border: 1px solid #ccd8eb;
  background: #ffffff;
  padding: 20px;
  cursor: pointer;
  display: block;
}

.sv-pay-tile:hover {
  border-color: #85A9E4;
}

.sv-pay-tile.is-selected {
  border: 2px solid #407bd9;
  background: #f2f6fc;
  padding: 19px;
}

.sv-pay-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 10px 0;
}

.sv-pay-name {
  display: flex;
  align-items: center;
  gap: 9px;
}

.sv-pay-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #ccd8eb;
  background: #ffffff;
  display: block;
  flex: none;
}

.sv-pay-tile.is-selected .sv-pay-radio {
  border: 5px solid #407bd9;
}

.sv-pay-title {
  font-family: grap-med, sans-serif;
  font-size: 15px;
  color: #2e333d;
}

.sv-pay-badge {
  font-family: grap-med, sans-serif;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #407bd9;
  background: #e1eaf8;
  padding: 3px 8px;
  white-space: nowrap;
}

.sv-pay-flag {
  width: 22px;
  height: 15px;
  display: block;
  flex: none;
}

.sv-pay-amount {
  margin: 0 0 10px 0;
  font-family: grotesk, sans-serif;
  font-weight: 900;
  font-size: 28px;
  color: #2e333d;
}

.sv-pay-body {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #4b5563;
}


/* Primary CTA
----------------------------------------*/
.sv-cta-wrap {
  margin-top: 18px;
}

.sv-cta {
  width: 100%;
  background: #407bd9;
  color: #ffffff;
  border: 0;
  border-radius: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: grap-med, sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  cursor: pointer;
  text-align: center;
  padding: 0 16px;
}

.sv-cta:hover {
  background: #3568bd;
}

.sv-cta:disabled {
  background: #ccd8eb;
  color: #6b7280;
  cursor: not-allowed;
}

.sv-cta-hint {
  margin: 10px 0 0 0;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.6;
  color: #6b7280;
}


/* Summary rail
----------------------------------------*/
.sv-rail-card {
  border: 1px solid #e5e8ee;
  box-shadow: 0 2px 8px rgba(46, 51, 61, .05);
  background: #ffffff;
}

.sv-rail-head {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #e5e8ee;
  align-items: center;
}

.sv-rail-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  display: block;
  flex: none;
}

.sv-rail-title {
  margin: 0;
  font-family: grotesk, sans-serif;
  font-weight: 900;
  font-size: 15px;
  color: #2e333d;
}

.sv-rail-sub {
  margin: 2px 0 0 0;
  font-size: 12px;
  color: #6b7280;
}

.sv-rail-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* Itemised lines are rebuilt by JS inside this wrapper, so it carries its own
   gap rather than relying on .sv-rail-body's */
.sv-rail-lines {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sv-rail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.sv-rail-row span {
  font-size: 13px;
  color: #6b7280;
}

.sv-rail-row .sv-rail-value {
  color: #2e333d;
  text-align: right;
  white-space: nowrap;
}

.sv-rail-hr {
  border: 0;
  border-top: 1px solid #e5e8ee;
  margin: 4px 0;
}

.sv-rail-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.sv-rail-total-label {
  font-family: grap-med, sans-serif;
  font-size: 13px;
  color: #2e333d;
}

.sv-rail-total {
  font-family: grotesk, sans-serif;
  font-weight: 900;
  font-size: 24px;
  color: #2e333d;
}

.sv-rail-secondary {
  margin: 0;
  text-align: right;
  font-size: 12.5px;
  color: #9aa1ad;
}

.sv-rail-note {
  border-top: 1px solid #e5e8ee;
  padding: 14px 16px;
  background: #fafbfd;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #4b5563;
}


/* Where your money goes
----------------------------------------*/
.sv-money {
  background: #f2f6fc;
  padding: 20px;
}

.sv-money-label {
  margin: 0 0 10px 0;
  font-family: grap-med, sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: #2e333d;
}

.sv-money-bar {
  display: flex;
  height: 12px;
  overflow: hidden;
  margin: 0 0 10px 0;
}

.sv-money-bar-major {
  width: 80%;
  background: #407bd9;
  display: block;
}

.sv-money-bar-minor {
  width: 20%;
  background: #85A9E4;
  display: block;
}

.sv-money-line {
  margin: 0 0 5px 0;
  font-size: 12.5px;
  color: #4b5563;
}

.sv-money-line:last-child {
  margin-bottom: 0;
}

.sv-money-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
}

.sv-money-dot-major { background: #407bd9; }
.sv-money-dot-minor { background: #85A9E4; }


/* Past-customer discount card
----------------------------------------*/
.sv-discount {
  border: 1px solid #e5e8ee;
  padding: 20px;
}

.sv-discount-label {
  margin: 0 0 8px 0;
  font-family: grap-med, sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: #2e333d;
}

.sv-discount-body {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #4b5563;
}


/* FAQ
----------------------------------------*/
.sv-faq-section {
  border-top: 1px solid #e5e8ee;
}

.sv-faq-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 40px 48px 40px;
}

.sv-faq-label {
  margin: 0 0 6px 0;
  font-family: grap-med, sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  color: #9aa1ad;
}

.sv-faq-help {
  margin: 0 0 14px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
  max-width: 680px;
}

.sv-faq-list {
  display: flex;
  flex-direction: column;
}

.sv-faq-item {
  border-bottom: 1px solid #e5e8ee;
}

.sv-faq-q {
  width: 100%;
  background: none;
  border: 0;
  padding: 13px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font-family: grap, sans-serif;
  font-size: 14px;
  color: #2e333d;
}

.sv-faq-mark {
  color: #9aa1ad;
  flex: none;
}

.sv-faq-a {
  margin: 0;
  padding: 0 0 16px 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: #4b5563;
  max-width: 760px;
}

.sv-faq-a[hidden] {
  display: none;
}


/* Responsive
----------------------------------------*/
@media (max-width: 1080px) {
  .sv-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 24px 40px 24px;
  }

  .sv-rail {
    position: static;
  }

  .sv-faq-inner {
    padding: 36px 24px 40px 24px;
  }
}

@media (max-width: 720px) {
  .sv-hero > img {
    height: 300px;
  }

  .sv-hero-scrim {
    padding: 0 24px;
  }

  .sv-hero-title {
    font-size: 28px;
  }

  .sv-hero-body {
    font-size: 14px;
  }

  .sv-facts {
    gap: 8px 20px;
    padding: 14px 24px;
  }

  .sv-grid-2,
  .sv-pay-grid {
    grid-template-columns: 1fr;
  }

  .sv-pay-amount {
    font-size: 24px;
  }
}
