/* === Bom Dia Boattrips — Custom Booking CSS ===
   Overrides public.css on the AlgarveBookers iframe/page.
   Design tokens match bomdiaboattrips.com (ocean + sunset palette, Inter). */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

/* ── Base ─────────────────────────────────────────────────── */

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.9375rem;
  color: #374151;
  background: transparent;
}

#main {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background-color: #ffffff;
}

h1 {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 800;
  font-size: 1.125rem;
  color: #082f49;
  letter-spacing: -0.01em;
}

a {
  color: #0369a1;
}

a:hover {
  color: #0c4a6e;
}

/* ── Container padding (gives focus outlines room to paint) ── */

#selectparticipants,
#selectactivity,
#customer,
#paymentmethods {
  padding-left: 5px;
  padding-right: 5px;
}

/* ── Form controls ────────────────────────────────────────── */

input,
select,
textarea {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.9375rem;
  color: #374151;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

input:focus,
select:focus {
  border-color: #0369a1;
  outline: 3px solid rgba(3, 105, 161, 0.25);
  outline-offset: 1px;
  box-shadow: none;
}

/* ── CTA button ───────────────────────────────────────────── */

.button,
input[type='submit'].button {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  background-color: #dc2626;
  border-bottom: 3px solid #991b1b;
  border-radius: 0.5rem;
  color: #ffffff;
}

.button:hover,
input[type='submit'].button:hover {
  background-color: #ef4444;
  border-bottom: 3px solid #dc2626;
}

.button.disabled,
input[type='submit'].button.disabled {
  background-color: #e5e7eb;
  border: 1px solid #d1d5db;
  border-bottom: 1px solid #d1d5db;
  color: #9ca3af;
}

.button.disabled:hover,
input[type='submit'].button.disabled:hover {
  background-color: #e5e7eb;
}

/* ── Section dividers ─────────────────────────────────────── */

.activitynameinfo,
#activitydetails,
#submit,
#paymentresult {
  border-color: #e5e7eb;
}

#activitydetails,
.activitynameinfo {
  border-top-color: #e5e7eb;
}

/* ── Tour image + title block ─────────────────────────────── */

.activitynameinfo .image img {
  border-radius: 0.5rem;
}

.activitynameinfo .info .title {
  font-weight: 800;
  font-size: 1.125rem;
  color: #082f49;
}

.activitynameinfo .info .price .value {
  font-weight: 700;
  color: #0c4a6e;
}

/* ── Participant selectors ────────────────────────────────── */

#selectparticipants .participanttype .label {
  font-weight: 600;
  color: #374151;
}

#selectparticipants .participanttype .sublabel {
  color: #9ca3af;
  font-size: 0.75rem;
}

/* ── Calendar ─────────────────────────────────────────────── */

#selectdate #calendar {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#selectdate #calendarheader {
  font-weight: 700;
  color: #082f49;
}

#selectdate #weekdaysheader {
  border-bottom: 1px solid #e5e7eb;
}

#selectdate #calendar .weekday {
  color: #6b7280;
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#selectdate #calendar .pastday {
  background: #f3f4f6;
  color: #9ca3af;
  border-radius: 0.375rem;
}

#selectdate #calendar .notavailableday {
  background: #fee2e2;
  color: #dc2626;
  border-radius: 0.375rem;
}

#selectdate #calendar .availableday {
  background: #059669;
  color: #ffffff;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
}

#selectdate #calendar .availableday:hover {
  background-color: #10b981;
}

#selectdate #calendar .availableday.selected {
  background: #065f46;
  box-shadow: 0 0 0 3px #f59e0b;
}

/* ── Booking summary ──────────────────────────────────────── */

#activitydetails {
  line-height: 1.7;
}

#activitydetails #booking #activityname {
  font-weight: 700;
  color: #082f49;
}

#activitydetails #booking #timedate {
  font-weight: 600;
  color: #374151;
}

#activitydetails #booking #operator,
#activitydetails #booking #departuretime {
  color: #6b7280;
}

#activitydetails #prices #total .pricelabel {
  color: #374151;
  font-weight: 600;
}

#activitydetails #prices #total .pricecontent {
  font-weight: 800;
  color: #082f49;
}

/* ── Validation ───────────────────────────────────────────── */

input.error,
select.error,
textarea.error {
  border-color: #dc2626;
  background-color: #fff5f5;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

input.error:focus,
select.error:focus,
textarea.error:focus {
  border-color: #dc2626;
  outline: 3px solid rgba(220, 38, 38, 0.25);
  outline-offset: 1px;
  box-shadow: none;
}

/* ── Terms caption ────────────────────────────────────────── */

.caption {
  color: #6b7280;
  font-size: 0.8125rem;
  line-height: 1.6;
}
