/* ── Angostura Tours v2.1 – Frontend Booking Styles ─────────────────────── */
:root {
  --at-red:      #8B1A1A;
  --at-gold:     #C8973A;
  --at-light:    #FBF7F0;
  --at-border:   #E2D9CC;
  --at-text:     #1F1A14;
  --at-muted:    #6B6055;
  --at-green:    #1D7A47;
  --at-radius:   10px;
  --at-shadow:   0 2px 14px rgba(0,0,0,.08);
}

.at-booking-wrap { max-width: 800px; margin: 0 auto; font-family: inherit; color: var(--at-text); }

/* ── Progress ────────────────────────────────────────────────────────────── */
.at-progress { display: flex; align-items: center; margin-bottom: 28px; }
.at-progress__step { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; }
.at-progress__step span {
  width: 32px; height: 32px; border-radius: 50%; background: #ddd; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; transition: background .3s;
}
.at-progress__step p { margin: 0; font-size: 11px; color: var(--at-muted); white-space: nowrap; }
.at-progress__step--active span { background: var(--at-red); }
.at-progress__step--done span   { background: var(--at-green); }
.at-progress__line { flex: 1; height: 2px; background: #ddd; margin: 0 6px; margin-bottom: 18px; transition: background .3s; }
.at-progress__line--done { background: var(--at-green); }

/* ── Steps ───────────────────────────────────────────────────────────────── */
.at-step {
  background: #fff; border: 1.5px solid var(--at-border);
  border-radius: var(--at-radius); margin-bottom: 20px; overflow: hidden; transition: box-shadow .2s, border-color .2s;
}
.at-step--locked { opacity: .5; pointer-events: none; filter: grayscale(.2); }
.at-step--active { box-shadow: var(--at-shadow); border-color: #c8b49c; }
.at-step__header {
  display: flex; align-items: center; gap: 14px; padding: 16px 24px;
  background: var(--at-light); border-bottom: 1px solid var(--at-border);
}
.at-step__num {
  width: 32px; height: 32px; border-radius: 50%; background: var(--at-red); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex-shrink: 0;
}
.at-step--locked .at-step__num { background: #bbb; }
.at-step__title    { margin: 0; font-size: 17px; font-weight: 700; color: var(--at-text); }
.at-step__subtitle { margin-left: auto; font-size: 13px; color: var(--at-muted); font-style: italic; white-space: nowrap; }
.at-step__body     { padding: 24px; }

/* ── Tour cards ──────────────────────────────────────────────────────────── */
.at-tour-cards { display: flex; gap: 16px; flex-wrap: wrap; }

.at-tour-card {
  flex: 1; min-width: 220px; padding: 20px 18px 16px; border: 2px solid var(--at-border);
  border-radius: var(--at-radius); cursor: pointer; background: #fff; transition: all .2s; position: relative;
}
.at-tour-card:hover { border-color: var(--at-gold); background: var(--at-light); box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.at-tour-card--selected { border-color: var(--at-red) !important; background: #FFF5F5 !important; }

.at-tour-card--premium { border-color: var(--at-gold); }
.at-tour-card--premium:hover { border-color: #a07020; }
.at-tour-card--premium.at-tour-card--selected { border-color: var(--at-gold) !important; background: #FFFBF0 !important; }

.at-tour-card--school { border-color: #93C5FD; }
.at-tour-card--school:hover { border-color: #3b82f6; }
.at-tour-card--school.at-tour-card--selected { border-color: #1d4ed8 !important; background: #EFF6FF !important; }

.at-tour-card__eyebrow {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--at-muted); margin-bottom: 4px;
}
.at-tour-card__eyebrow--premium { color: var(--at-gold); }
.at-tour-card__name    { font-size: 15px; font-weight: 700; color: var(--at-text); margin-bottom: 6px; line-height: 1.4; }
.at-tour-card__duration { font-size: 12px; color: var(--at-muted); margin-bottom: 10px; }
.at-tour-card__includes {
  font-size: 12px; color: #555; line-height: 1.6; margin-bottom: 12px;
  padding: 8px 10px; background: rgba(0,0,0,.03); border-radius: 6px;
}
.at-tour-card__prices {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px;
}
.at-tour-card__prices span {
  background: var(--at-light); color: var(--at-red); font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 20px; border: 1px solid var(--at-border);
}
.at-tour-card__note  { font-size: 11px; color: var(--at-muted); font-style: italic; margin-bottom: 10px; line-height: 1.5; }
.at-tour-card__badge {
  display: inline-block; padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 700;
  background: #eee; color: #666; transition: all .2s; margin-top: 4px;
}
.at-tour-card--selected .at-tour-card__badge { background: var(--at-red); color: #fff; }
.at-tour-card--premium.at-tour-card--selected .at-tour-card__badge  { background: var(--at-gold); color: #fff; }
.at-tour-card--school.at-tour-card--selected .at-tour-card__badge   { background: #1d4ed8; color: #fff; }

/* ── School info panel ────────────────────────────────────────────────────── */
.at-info-panel {
  background: #EFF6FF; border: 1.5px solid #93C5FD; border-radius: var(--at-radius);
  padding: 20px 24px; margin-bottom: 20px;
}
.at-info-panel__title { font-size: 15px; font-weight: 700; margin: 0 0 14px; color: #1e40af; }
.at-school-table-wrap { overflow-x: auto; }
.at-school-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.at-school-table th { background: #1d4ed8; color: #fff; padding: 8px 12px; text-align: left; }
.at-school-table td { padding: 7px 12px; border-bottom: 1px solid #BFDBFE; vertical-align: top; color: #1e3a5f; }
.at-school-level-row td:first-child { font-weight: 700; color: #1e40af; }

/* ── Slot picker ──────────────────────────────────────────────────────────── */
.at-slot-options { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.at-slot-btn {
  flex: 1; min-width: 140px; padding: 16px 12px; border: 2px solid var(--at-border);
  border-radius: 8px; cursor: pointer; text-align: center; background: #fff; transition: all .2s;
}
.at-slot-btn:hover:not(.at-slot-btn--full)     { border-color: var(--at-gold); background: var(--at-light); }
.at-slot-btn--selected  { border-color: var(--at-red); background: #FFF5F5; }
.at-slot-btn--full      { opacity: .45; cursor: not-allowed; }
.at-slot-btn__time      { font-size: 22px; font-weight: 800; color: var(--at-red); display: block; }
.at-slot-btn--full .at-slot-btn__time { color: #999; }
.at-slot-btn__avail     { font-size: 12px; color: var(--at-muted); display: block; margin-top: 4px; }
.at-slot-btn--full .at-slot-btn__avail { color: #c00; }

/* ── Fields & counters ────────────────────────────────────────────────────── */
.at-field-group { margin-bottom: 18px; }
.at-label { display: block; font-size: 13px; font-weight: 600; color: var(--at-muted); margin-bottom: 6px; }
.at-label em { font-weight: 400; }
.at-input {
  width: 100%; padding: 10px 14px; font-size: 15px; border: 1.5px solid var(--at-border);
  border-radius: 8px; background: #fff; color: var(--at-text); outline: none; box-sizing: border-box; transition: border-color .2s;
}
.at-input:focus { border-color: var(--at-red); }
.at-subheading  { font-size: 15px; font-weight: 700; color: var(--at-text); margin: 0 0 8px; }

.at-counter-row { display: flex; gap: 14px; flex-wrap: wrap; }
.at-counter-box {
  flex: 1; min-width: 180px; padding: 16px; border: 1.5px solid var(--at-border);
  border-radius: var(--at-radius); text-align: center; background: #fafafa;
}
.at-counter-label       { font-weight: 700; font-size: 14px; margin: 0 0 4px; line-height: 1.4; }
.at-counter-label em    { font-weight: 400; font-size: 12px; display: block; color: var(--at-muted); }
.at-counter-price       { color: var(--at-gold); font-weight: 600; font-size: 13px; margin: 0 0 12px; }
.at-counter-ctrl        { display: flex; align-items: center; justify-content: center; }
.at-btn-counter {
  width: 36px; height: 36px; border: 1.5px solid var(--at-border); background: var(--at-light);
  font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  line-height: 1; color: var(--at-text); transition: background .15s;
}
.at-btn-counter:first-child { border-radius: 8px 0 0 8px; }
.at-btn-counter:last-child  { border-radius: 0 8px 8px 0; }
.at-btn-counter:hover       { background: var(--at-border); }
.at-counter-val {
  width: 52px; height: 36px; border: 1.5px solid var(--at-border);
  border-left: none; border-right: none; text-align: center; font-size: 18px; font-weight: 700;
  outline: none; color: var(--at-text); background: #fff;
}

/* ── Price summary ────────────────────────────────────────────────────────── */
.at-price-summary { margin-top: 18px; }
.at-price-table   { width: 100%; border-collapse: collapse; font-size: 14px; }
.at-price-table td { padding: 8px 12px; border-bottom: 1px solid var(--at-border); }
.at-price-table tfoot td { border-top: 2px solid var(--at-border); border-bottom: none; font-size: 16px; }

/* ── Booking summary (step 4) ─────────────────────────────────────────────── */
.at-booking-summary { margin-bottom: 24px; }
.at-summary-table   { width: 100%; border-collapse: collapse; font-size: 14px; }
.at-summary-table tr:nth-child(odd) td { background: #f9f9f9; }
.at-summary-table td { padding: 8px 12px; border: 1px solid var(--at-border); }
.at-summary-table td:first-child { color: var(--at-muted); width: 130px; }
.at-summary-table .at-total-row td { border-top: 2px solid var(--at-border); font-size: 16px; }

/* ── Payment method cards ─────────────────────────────────────────────────── */
.at-payment-options { display: flex; gap: 14px; flex-wrap: wrap; margin: 12px 0 20px; }
.at-payment-card {
  flex: 1; min-width: 200px; padding: 20px 16px; border: 2px solid var(--at-border);
  border-radius: var(--at-radius); cursor: pointer; text-align: center; background: #fff;
  transition: all .2s; display: block;
}
.at-payment-card input[type="radio"] { display: none; }
.at-payment-card:hover { border-color: var(--at-gold); background: var(--at-light); }
.at-payment-card--selected { border-color: var(--at-red) !important; background: #FFF5F5 !important; }
.at-payment-card__icon  { font-size: 30px; margin-bottom: 8px; }
.at-payment-card__label { font-size: 15px; font-weight: 700; color: var(--at-text); }
.at-payment-card__desc  { font-size: 12px; color: var(--at-muted); margin-top: 4px; line-height: 1.5; }

/* ── ACH details block ────────────────────────────────────────────────────── */
.at-ach-details {
  background: var(--at-light); border: 1.5px solid var(--at-border);
  border-radius: var(--at-radius); padding: 20px; margin-bottom: 20px;
}
.at-ach-details__title { margin: 0 0 12px; font-size: 16px; font-weight: 700; color: var(--at-text); }
.at-ach-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.at-ach-table td { padding: 7px 10px; border-bottom: 1px solid var(--at-border); }
.at-ach-table td:first-child { color: var(--at-muted); width: 140px; }

/* ── Dress code ───────────────────────────────────────────────────────────── */
.at-dress-code {
  margin-top: 24px; border: 1.5px solid #FCA5A5; border-radius: var(--at-radius);
  background: #FFF5F5; padding: 18px 20px;
}
.at-dress-code__title { font-size: 14px; font-weight: 700; color: #991B1B; margin: 0 0 12px; }
.at-dress-code__title em { font-weight: 400; font-size: 13px; }
.at-dress-code__body  { display: flex; gap: 20px; flex-wrap: wrap; }
.at-dress-code__col   { flex: 1; min-width: 160px; }
.at-dress-code__head  { font-weight: 700; font-size: 13px; margin: 0 0 6px; }
.at-dress-code__col ul { margin: 0; padding-left: 18px; font-size: 13px; color: #444; line-height: 2; }
.at-dress-code__col--ok .at-dress-code__head { color: #155724; }
.at-dress-code__col--no .at-dress-code__head { color: #721C24; }

/* ── Confirmation ─────────────────────────────────────────────────────────── */
.at-confirmation-box {
  text-align: center; padding: 40px 24px;
  border: 2px solid var(--at-border); border-radius: var(--at-radius); background: #fff;
  box-shadow: var(--at-shadow);
}
.at-confirmation-icon { font-size: 56px; margin-bottom: 12px; }
.at-confirmation-box h2 { color: var(--at-red); margin: 0 0 10px; }
.at-conf-code-wrap { margin: 20px auto; }
.at-conf-code {
  font-family: monospace; font-size: 38px; font-weight: 800; letter-spacing: 5px;
  color: var(--at-red); background: var(--at-light); padding: 12px 24px;
  border-radius: 8px; display: inline-block; margin: 8px 0; border: 2px dashed var(--at-gold);
}
#at-conf-qr { margin: 16px 0; }
#at-conf-qr img { border: 5px solid var(--at-gold); border-radius: 6px; }
.at-conf-actions { margin-top: 16px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Notices ─────────────────────────────────────────────────────────────── */
.at-notice { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; line-height: 1.6; }
.at-notice--info    { background: #EFF6FF; border: 1px solid #93C5FD; color: #1E40AF; }
.at-notice--error   { background: #FEF2F2; border: 1px solid #FCA5A5; color: #991B1B; }
.at-notice--success { background: #F0FDF4; border: 1px solid #86EFAC; color: #166534; }
.at-notice--warning { background: #FFF3CD; border: 1px solid #FFB930; color: #856404; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.at-btn {
  display: inline-block; padding: 11px 26px; font-size: 15px; font-weight: 700;
  border: 2px solid transparent; border-radius: 8px; cursor: pointer; text-decoration: none;
  transition: background .2s, transform .1s; text-align: center;
}
.at-btn--primary { background: var(--at-red); color: #fff; }
.at-btn--primary:hover:not(:disabled) { background: #6e1313; }
.at-btn--outline { background: transparent; color: var(--at-red); border-color: var(--at-red); }
.at-btn--outline:hover { background: var(--at-light); }
.at-btn--large   { width: 100%; padding: 14px; font-size: 16px; }
.at-btn:disabled { opacity: .5; cursor: not-allowed; }
.at-btn:active:not(:disabled) { transform: scale(.98); }

/* ── Misc ────────────────────────────────────────────────────────────────── */
.at-helper  { color: var(--at-muted); font-size: 14px; margin: 0 0 12px; line-height: 1.6; }
.at-loading { color: var(--at-muted); font-size: 14px; padding: 10px 0; }

/* Flatpickr accent */
.flatpickr-day.selected, .flatpickr-day.selected:hover {
  background: var(--at-red) !important; border-color: var(--at-red) !important;
}

@media (max-width: 520px) {
  .at-step__body { padding: 16px; }
  .at-tour-cards, .at-counter-row, .at-slot-options { flex-direction: column; }
  .at-progress__step p { display: none; }
  .at-dress-code__body { flex-direction: column; }
}
