/* ==========================================================================
   Mettā Travels - Bus Seva UI Stylesheet (CSS3)
   Clean Project Styling matching mettatravels.lovable.app/#bus-seva
   ========================================================================== */

:root {
  --bg: #F9F5E3;
  --fg: #232323;
  --primary: #9C4557;
  --primary-hover: #863949;
  --primary-light: rgba(156, 69, 87, 0.07);
  --secondary: #648824;
  --secondary-hover: #52701d;
  --secondary-light: rgba(100, 136, 36, 0.08);
  --notice: #C0392B;
  --notice-light: rgba(192, 57, 43, 0.07);
  --card: #FDFAEE;
  --card-white: #FFFFFF;
  --border: #DBDBDB;
  --border-focus: #9C4557;
  --muted: #6b6455;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --font-display: Lora, Georgia, serif;
  --font-body: "Nunito Sans", ui-sans-serif, system-ui, sans-serif;
}

/* Typography: body text in Nunito Sans, every heading in Lora */
body {
  font-family: var(--font-body);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
}

/* Base Form Controls & Global Helpers */
.regrid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 0; /* metta.css adds 2rem; the section padding already spaces it */
}

.notice-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
}

/* Callout Notice Cards (Left Column) & Existing Callouts */
.notice-card,
.callout {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.15rem 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  margin: 0.85rem 0;
  box-sizing: border-box;
}

.notice-card.notice-red,
.callout.red {
  border-left-color: var(--notice);
  background: var(--notice-light);
}

.notice-card.notice-maroon,
.callout.maroon {
  border-left-color: var(--primary);
  background: var(--primary-light);
}

.notice-card.notice-green,
.callout.green {
  border-left-color: var(--secondary);
  background: var(--secondary-light);
}

.callout h2, .callout h3 {
  margin: 0 0 0.35rem 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
}

.callout p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--fg);
}

/* WhatsApp link (icon + number) used inside a sentence: centre it on the text line
   instead of sitting the icon on the baseline */
p .wa {
  vertical-align: middle;
  line-height: 1;
}

/* The stack's gap already spaces the cards */
.notice-stack > .notice-card {
  margin: 0;
}

.notice-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
}

.notice-icon.color-notice { color: var(--notice); }
.notice-icon.color-primary { color: var(--primary); }
.notice-icon.color-secondary { color: var(--secondary); }

.notice-body {
  flex: 1;
  min-width: 0;
}

.notice-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.35rem 0;
  color: var(--fg);
}

.notice-title.color-secondary {
  color: var(--secondary);
}

.notice-text {
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
  color: var(--fg);
}

/* Card body copy is regular weight; only <strong> phrases are bold */
.notice-card .notice-text {
  font-weight: 400;
}

.notice-text strong {
  font-weight: 700;
}

.notice-text .highlight-red {
  color: var(--notice);
  font-weight: 800;
  font-size: 1rem;
}

/* Registration Form Card (Right Column) */
.reg-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.reg-card fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 2rem 0;
}

.reg-card fieldset:last-of-type {
  margin-bottom: 0;
}

.step-legend {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.35rem;
  padding: 0;
}

.step-subtitle {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1rem 0;
  line-height: 1.45;
}

/* Inputs, Selects & Labels */
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.form-select,
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card-white);
  color: var(--fg);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s, outline 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--card-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1rem;
  padding-right: 2.25rem;
  cursor: pointer;
}

.form-select:focus,
.form-input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
  background-color: #fff;
}

.form-input::placeholder {
  color: #999;
}

/* Sublocation Box (matches Lovable: tinted panel with plain rows) */
.subbox {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0;
  border: 1px solid rgba(100, 136, 36, 0.3);
  background: rgba(100, 136, 36, 0.05);
}

.subbox-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.subbox-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--fg);
  margin: 0;
}

.subbox-title-time {
  min-width: 78px;
  text-align: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.subbox-title .required {
  color: var(--notice);
}

.subloc-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.75rem;
}

.subloc-list > .muted {
  margin: -0.25rem 0 0 0;
  font-size: 0.875rem;
}

.subloc-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  /* reset the global label rule from metta.css */
  margin: 0;
  font-size: inherit;
  font-weight: 400;
}

.subloc-item.subloc-item-static {
  cursor: default;
}

.subloc-time {
  font-size: 0.8rem;
  min-width: 78px;
  text-align: center;
}

.subloc-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

/* Radio: thin maroon ring with a filled dot when checked */
.subloc-item-left input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-content: center;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 1px solid var(--primary);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.subloc-item-left input[type="radio"]::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  transform: scale(0);
  transition: transform 0.12s ease;
}

.subloc-item-left input[type="radio"]:checked::before {
  transform: scale(1);
}

.subloc-item-left input[type="radio"]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.subloc-name {
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--fg);
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Map link: 36px icon button */
.maplink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--secondary);
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.maplink:hover {
  background: rgba(100, 136, 36, 0.1);
}

.maplink svg {
  width: 24px;
  height: 24px;
}

/* Google Maps icon (same asset as the front page) */
.maplink-icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.subloc-pending-note {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* Green Summary Info Box (Start Pickup Point & Departure Time) */
.info-box-green {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(100, 136, 36, 0.4);
  background: rgba(100, 136, 36, 0.1);
  border-radius: var(--radius-md);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.info-item svg {
  width: 22px;
  height: 22px;
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 0 0 0.25rem 0;
}

.info-value {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--fg);
  margin: 0;
  line-height: 1.35;
}

/* Step 2 – Traveller Cards */
#travellersList {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-top: 1rem;
}

.traveller-card {
  border: 1px solid var(--border);
  background: var(--card-white);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.traveller-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid #f2edd9;
}

.traveller-header-title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.remove-traveller-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--notice);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}

.remove-traveller-btn:hover {
  text-decoration: underline;
}

.remove-traveller-btn svg {
  width: 14px;
  height: 14px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 2fr 1fr 1.1fr;
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.field-group {
  display: flex;
  flex-direction: column;
}

.field-hint-primary {
  font-size: 0.78rem;
  color: var(--primary);
  margin-top: 0.35rem;
  line-height: 1.35;
}

/* Add Traveller Button */
.btn-add-traveller {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border: 1.5px dashed rgba(100, 136, 36, 0.45);
  background: rgba(100, 136, 36, 0.06);
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 0.85rem;
}

.btn-add-traveller:hover {
  background: rgba(100, 136, 36, 0.12);
  border-color: var(--secondary);
}

.btn-add-traveller:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-add-traveller svg {
  width: 17px;
  height: 17px;
}

/* Eligibility Confirmation Box */
.eligibility-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  background: var(--card-white);
  border-radius: var(--radius-sm);
  margin-top: 1.25rem;
  cursor: pointer;
}

.eligibility-box input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: var(--primary);
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.eligibility-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--fg);
  user-select: none;
}

/* Step 3 – Fare Summary Box */
.summary-card {
  background: var(--card-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  margin-top: 1rem;
}

.summary-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 1rem 0;
}

.summary-list {
  display: grid;
  grid-template-columns: auto 1fr;
  row-gap: 0.65rem;
  column-gap: 1.5rem;
  margin: 0;
}

.summary-list dt {
  font-size: 0.9rem;
  color: var(--muted);
}

.summary-list dd {
  margin: 0;
  text-align: right;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
}

.summary-list .summary-divider {
  grid-column: 1 / -1;
  border-top: 1px solid #f0eee3;
  margin: 0.35rem 0 0.15rem 0;
}

.summary-list .total-label {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  padding-top: 0.35rem;
}

.summary-list .total-amount {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  text-align: right;
  padding-top: 0.35rem;
}

/* Important Payment Callout */
.pay-callout {
  border-left: 4px solid var(--notice);
  background: #fbe6e3;
  padding: 0.95rem 1.15rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.15rem 0;
}

.pay-callout-text {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--notice);
  line-height: 1.45;
}

/* CTA Pay Button */
.btn-pay-cta {
  display: block;
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 800;
  text-align: center;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s ease, filter 0.15s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.btn-pay-cta:hover {
  background: var(--primary-hover);
}

.btn-pay-cta:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.pay-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.85rem;
}

.pay-secure-note svg {
  width: 15px;
  height: 15px;
  color: var(--secondary);
}

/* Error Alert Box */
.error-alert-box {
  border: 1px solid var(--notice);
  background: #fdf2f2;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.35rem;
}

.error-alert-title {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--notice);
  margin: 0 0 0.5rem 0;
}

.error-alert-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.86rem;
  color: var(--notice);
  line-height: 1.5;
}

/* Modal Notice Dialog */
dialog#noticeDialog {
  border: 0;
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: calc(100% - 2rem);
  max-height: 90vh;
  max-height: 90dvh;
  padding: 1.85rem;
  background: var(--card);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
  /* One scrollbar only: the popup itself never scrolls, the notices list does */
  overflow: hidden;
}

/* Open popup is a column: header, checkbox and buttons stay pinned,
   only .dialog-scroll-body scrolls */
dialog#noticeDialog[open] {
  display: flex;
  flex-direction: column;
}

dialog#noticeDialog > * {
  flex-shrink: 0;
}

dialog#noticeDialog > .dialog-scroll-body {
  flex: 1 1 auto;
}

dialog#noticeDialog::backdrop {
  background: rgba(20, 18, 15, 0.78);
  backdrop-filter: blur(4px);
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dialog-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.dialog-subtitle {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0.25rem 0 0 0;
}

.dialog-close-btn {
  background: none;
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem;
}

.dialog-close-btn:hover {
  color: var(--fg);
}

.dialog-scroll-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  /* extend into the popup's right padding so the scrollbar sits on the outer edge */
  margin-right: -1.85rem;
  padding-right: 1.85rem;
  margin-bottom: 1.25rem;
}

.dialog-scroll-body .notice-stack {
  margin-top: 0;
}

.dialog-ack-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1.15rem;
  background: var(--card-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 1rem 0 0 0;
  cursor: pointer;
}

.dialog-ack-box input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: var(--primary);
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.dialog-ack-text {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--fg);
  font-weight: 600;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.btn-dialog-cancel {
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  background: transparent;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
}

.btn-dialog-cancel:hover {
  background: rgba(156, 69, 87, 0.05);
}

.btn-dialog-confirm {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: var(--secondary);
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}

.btn-dialog-confirm:hover {
  background: var(--secondary-hover);
}

.btn-dialog-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .regrid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .reg-card {
    padding: 1.35rem;
  }

  .info-box-green {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .dialog-actions {
    flex-direction: column-reverse;
  }

  .dialog-actions button {
    width: 100%;
  }

  .key-points-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Full Page Sections (matching mettatravels.lovable.app/#)
   ========================================================================== */

/* Container width & alignment */
.wrap {
  max-width: 1152px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Top Announcement Banner */
.deadline {
  text-align: center;
  background: var(--notice);
  color: #fff;
  padding: 0.9rem 1rem;
}

.deadline p {
  margin: 0;
  line-height: 1.4;
}

.deadline .big {
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.deadline .text-yellow,
.text-yellow {
  color: #ffe604;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.5rem;
  align-items: center;
  /* Vertical only, so the side padding from .wrap is kept */
  padding-top: 2.5rem;
  padding-bottom: 2rem;
}

/* Desktop: the notices column stays in view while the form scrolls.
   --aside-sticky-top is set by registration-script so a column taller than
   the screen pins by its bottom edge instead of being cut off. */
@media (min-width: 901px) {
  .regrid > aside {
    position: sticky;
    top: var(--aside-sticky-top, 5rem);
    align-self: start;
  }
}

/* Let grid columns shrink below their content width on small screens */
.hero > *,
.regrid > *,
.band-grid > * {
  min-width: 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  line-height: 1.22;
  margin: 0.45rem 0 0.35rem 0;
  color: var(--fg);
  font-weight: 700;
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 0.85rem 0;
}

.hero .date-pill {
  display: inline-block;
  border: 1px solid #d8b3bb;
  background: #f6e9e6;
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.photo.tall {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Vision Quote Box */
.vision-quote-box {
  border-left: 4px solid var(--secondary);
  background: #eef2df;
  padding: 1.15rem 1.35rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.15rem 0 1.35rem 0;
}

.vision-quote-box .quote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.45rem 0;
}

.vision-quote-box p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--fg);
  margin: 0;
}

.text-maroon {
  color: var(--primary);
  font-weight: 700;
}

/* Hero Action Buttons */
.hero-buttons {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0.75rem 1.4rem;
  font-weight: 700;
  font-size: 0.96rem;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.btn:hover {
  filter: brightness(0.92);
}

.btn.green {
  background: var(--secondary);
}

.btn.red {
  background: var(--notice);
}

.btn.ghost-green {
  background: #f0f4e3;
  color: var(--secondary);
  border: 1px solid #b9c99a;
}

.btn.ghost-green:hover {
  background: #e2ecc9;
}

/* Important Eligibility Banner */
.eligibility-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  border-left: 4px solid var(--primary);
  background: #f6e9e6;
  padding: 1.15rem 1.35rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 0;
}

.eligibility-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.eligibility-content h3 {
  margin: 0 0 0.35rem 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

.eligibility-content p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--fg);
}

.eligibility-content .eligibility-strong {
  margin-top: 0.45rem;
  font-weight: 700;
}

/* Global Vipassana Pagoda Band */
.band {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
  margin-top: 2.5rem;
}

.band.flush {
  margin-top: 0;
}

.band-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}

.band-photo {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

.band-content h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.85rem 0;
}

.band-content p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--fg);
  margin: 0 0 0.75rem 0;
}

/* Key Points to Note Section */
.key-points-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  margin-top: 1.25rem;
}

.key-point-card {
  background: var(--card-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.key-point-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.45rem 0;
}

.key-point-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--fg);
  margin: 0;
}

/* Group Bookings Card */
.group-card {
  background: var(--card-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  margin: 2rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.group-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.4rem;
}

.group-icon {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px;
  max-width: 26px;
  color: var(--secondary);
  flex-shrink: 0;
}

.group-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  margin: 0;
}

.group-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 1.15rem 0;
}

.group-card .group-contact-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 1.15rem 0 0 0;
}

/* One Day Mega Course Callout Section */
.mega-course-section {
  text-align: center;
  /* Vertical spacing comes from the surrounding .band */
  padding-top: 0;
  padding-bottom: 0;
}

.mega-course-eyebrow {
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  margin: 0 0 0.35rem 0;
}

.mega-course-title {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 0.45rem 0;
}

.mega-course-date {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}

.mega-course-desc {
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 1.5rem auto;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Terms & Conditions Accordion */
.terms-card {
  margin-top: 1.5rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.terms-item {
  border-bottom: 1px solid var(--border);
  transition: background-color 0.15s ease;
}

.terms-item:last-child {
  border-bottom: none;
}

.terms-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.35rem;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--fg);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.15s ease;
}

.terms-summary::-webkit-details-marker {
  display: none;
}

.terms-summary:hover {
  color: var(--primary);
}

.terms-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.terms-item[open] .terms-chevron {
  transform: rotate(180deg);
}

.terms-content {
  padding: 0 1.35rem 1.15rem 1.35rem;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(43, 33, 24, 0.82);
}

.terms-content p {
  margin: 0 0 0.65rem 0;
}

.terms-content p:last-child {
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .photo.tall {
    height: 300px;
  }

  .band-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .band-photo {
    height: 260px;
  }

  .key-points-grid {
    grid-template-columns: 1fr;
  }

  .mega-course-title {
    font-size: 2rem;
  }
}

/* Phones */
@media (max-width: 600px) {
  .wrap {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Vertical rhythm: one consistent gap between blocks on phones */
  .section {
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
  }

  .h2 {
    font-size: 1.45rem;
    margin: 0 0 0.5rem 0;
  }

  .deadline {
    padding: 0.7rem 0;
  }

  .deadline .big {
    font-size: 1rem;
  }

  .regrid {
    margin-top: 0;
    gap: 1.5rem;
  }

  .notice-stack {
    margin-top: 1rem;
    gap: 0.75rem;
  }

  .reg-card fieldset {
    margin-bottom: 1.5rem;
  }

  .key-points-grid {
    gap: 0.75rem;
    margin-top: 1rem;
  }

  footer {
    margin-top: 0;
    padding-top: 1.75rem;
  }

  .fgrid {
    gap: 1.25rem;
  }

  .fgrid p {
    margin: 0 0 0.5rem 0;
  }

  .fgrid ul {
    margin: 0;
  }

  .fbottom {
    margin-top: 1.25rem;
    padding: 0.9rem;
  }

  /* Hero */
  .hero {
    gap: 1.25rem;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .hero h1 {
    font-size: 1.85rem;
    overflow-wrap: break-word;
  }

  .hero .lead {
    font-size: 1.05rem;
  }

  .hero .date-pill {
    font-size: 0.98rem;
    margin-bottom: 0;
  }

  .photo.tall {
    height: 220px;
  }

  .vision-quote-box {
    padding: 1rem 1.1rem;
    margin: 1rem 0;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    margin-top: 0;
  }

  .hero-buttons .btn {
    width: 100%;
    margin: 0;
    text-align: center;
  }

  /* Banners and cards */
  .eligibility-banner {
    padding: 1rem 1.1rem;
    margin: 0;
  }

  .notice-card,
  .callout {
    padding: 1rem;
  }

  .reg-card {
    padding: 1.1rem;
  }

  .traveller-card {
    padding: 1rem;
  }

  .step-legend {
    font-size: 1.15rem;
  }

  .summary-list {
    column-gap: 0.85rem;
  }

  .summary-list dd {
    overflow-wrap: anywhere;
  }

  .band {
    margin-top: 0;
    padding: 1.75rem 0;
  }

  .band-grid {
    gap: 1rem;
  }

  .band-photo {
    height: 200px;
  }

  .band-content h2 {
    font-size: 1.5rem;
  }

  .key-point-card {
    padding: 1.1rem;
  }

  .group-card {
    padding: 1.25rem;
    margin: 0 0 1.75rem 0;
  }

  .group-header h2 {
    font-size: 1.3rem;
  }

  .group-card .btn {
    width: 100%;
    margin: 0;
  }

  .mega-course-title {
    font-size: 1.7rem;
  }

  .mega-course-date {
    font-size: 1.02rem;
  }

  .terms-summary {
    padding: 0.9rem 1rem;
  }

  .terms-content {
    padding: 0 1rem 1rem 1rem;
  }

  /* Notice dialog */
  dialog#noticeDialog {
    width: calc(100% - 1.25rem);
    max-height: 92vh;
    max-height: 92dvh;
    padding: 1.15rem;
  }

  .dialog-scroll-body {
    margin-right: -1.15rem;
    padding-right: 1.15rem;
  }

  .dialog-title {
    font-size: 1.15rem;
  }

  .dialog-ack-box {
    padding: 0.85rem;
  }
}


/* ==========================================================================
   Confirmation page (matches mettatravels.lovable.app confirmation)
   ========================================================================== */
.confirm-wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3.5rem 1rem;
}

.confirm-card {
  background: var(--card);
  border: 1px solid rgba(100, 136, 36, 0.4);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 2.5rem;
  text-align: center;
}

.confirm-icon {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  color: var(--secondary);
}

.confirm-title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 600;
  margin: 1rem 0 0 0;
  line-height: 1.25;
}

.confirm-lead {
  margin: 0.5rem 0 0 0;
  font-size: 1rem;
  color: rgba(35, 35, 35, 0.8);
}

.confirm-unpaid {
  margin: 0.5rem 0 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--notice);
}

.confirm-pdf-btn {
  margin: 1.25rem 0 0 0;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  white-space: normal;
}

.confirm-pdf-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.confirm-box-green,
.confirm-box-maroon {
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-top: 1.5rem;
}

.confirm-box-green {
  border: 1px solid rgba(100, 136, 36, 0.4);
  background: rgba(100, 136, 36, 0.08);
}

.confirm-box-maroon {
  border: 1px solid rgba(156, 69, 87, 0.35);
  background: rgba(156, 69, 87, 0.06);
  text-align: left;
}

/* Failed / unpaid payment: red card border */
.confirm-card.is-unpaid {
  border-color: var(--notice);
}

.confirm-icon.is-unpaid {
  color: var(--notice);
}

/* Payment not completed: shown instead of the registration number */
.confirm-box-red {
  margin-top: 1.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(192, 57, 43, 0.35);
  border-radius: var(--radius-lg);
  background: rgba(192, 57, 43, 0.07);
}

.confirm-box-red p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--notice);
}

.confirm-box-red .confirm-box-red-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.confirm-regno-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: var(--secondary);
}

.confirm-regno {
  margin: 0.25rem 0 0 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--secondary);
  overflow-wrap: anywhere;
}

.confirm-summary {
  margin: 1.5rem 0 0 0;
  text-align: left;
  font-size: 0.875rem;
}

.confirm-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0;
}

.confirm-summary dt {
  color: var(--muted);
  flex-shrink: 0;
}

.confirm-summary dd {
  margin: 0;
  text-align: right;
  font-weight: 500;
  min-width: 0;
  overflow-wrap: anywhere;
}

.confirm-summary dd.is-amount {
  font-weight: 600;
  color: var(--primary);
}

.confirm-summary dd.is-departure {
  font-weight: 700;
  color: var(--secondary);
}

.confirm-summary dd.is-return {
  font-weight: 700;
  color: var(--notice);
}

.confirm-travellers {
  margin-top: 1rem;
  padding: 1rem;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.confirm-travellers-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.confirm-travellers ol {
  list-style: none;
  margin: 0.5rem 0 0 0;
  padding: 0;
  font-size: 0.875rem;
}

.confirm-travellers li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.confirm-travellers li:first-child {
  padding-top: 0;
}

.confirm-travellers li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.confirm-travellers .t-name {
  font-weight: 600;
}

.confirm-travellers .t-bsno {
  margin-left: 0.375rem;
  color: var(--secondary);
  white-space: nowrap;
}

.confirm-travellers .t-meta {
  display: block;
  margin-top: 0.125rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.confirm-box-maroon p {
  margin: 0.25rem 0 0 0;
  font-size: 0.875rem;
  line-height: 1.625;
}

.confirm-box-maroon .confirm-box-title {
  margin: 0;
  font-weight: 600;
  color: var(--primary);
}

.confirm-box-maroon .confirm-box-notice {
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--notice);
}

.confirm-box-maroon .highlight-red {
  color: var(--notice);
}

.confirm-questions {
  margin: 1.5rem 0 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.confirm-questions .wa {
  color: var(--secondary);
  font-weight: 600;
}

@media (max-width: 600px) {
  .confirm-wrap {
    padding: 1.5rem 1rem;
  }

  .confirm-card {
    padding: 1.5rem 1.1rem;
  }

  .confirm-title {
    font-size: 1.6rem;
  }

  .confirm-pdf-btn {
    width: 100%;
  }

  .confirm-regno {
    font-size: 1.35rem;
  }
}

/* Very narrow screens: stack label above value */
@media (max-width: 360px) {
  .confirm-summary > div {
    flex-direction: column;
    gap: 0;
  }

  .confirm-summary dd {
    text-align: left;
  }

  .confirm-card {
    padding: 1.25rem 0.85rem;
  }

  .confirm-box-green,
  .confirm-box-maroon,
  .confirm-travellers {
    padding: 0.9rem;
  }
}

/* Header WhatsApp number (desktop nav + mobile menu) in green */
header.top .wa,
header.top .wa:hover {
  color: var(--secondary);
}

/* Checkout page heading: same size as the confirmation page title */
.checkout-title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.5rem 0;
}

@media (max-width: 600px) {
  .checkout-title {
    font-size: 1.5rem;
  }
}

/* Footer: compact layout (matches Lovable design) */
footer {
  margin-top: 0;
  padding: 2.5rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

footer .fgrid {
  gap: 2rem;
}

footer .fgrid p {
  margin: 0 0 0.75rem;
}

footer .brand {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

footer .fhead {
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

footer .links {
  margin: 0;
}

footer .links li + li {
  margin-top: 0.4rem;
}

footer .fwa {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

footer .fwa .wa {
  color: var(--fg);
  font-weight: 400;
  gap: 0.5rem;
}

footer .fwa .ic {
  width: 20px;
  height: 20px;
  color: var(--secondary);
}

footer .fbottom {
  margin: 2rem 0 0;
  padding: 1.25rem 0;
}

@media (max-width: 600px) {
  footer {
    padding-top: 1.75rem;
  }

  footer .fgrid {
    gap: 1.25rem;
  }

  footer .fbottom {
    margin-top: 1.25rem;
    padding: 0.9rem 0;
  }
}

/* Terms & Conditions: narrower column (matches Lovable design) */
.wrap.terms-wrap {
  max-width: 56rem;
}

/* Home page: the Journey section above already gives the bottom gap */
#terms.terms-wrap {
  padding-top: 0.5rem;
}
