/* ==========================================================================
   Smeaton Dogwood — Booking system styles
   Matches the theme green (#538233), Poppins font and rounded card look.
   ========================================================================== */

:root {
  --smeaton-green: #538233;
  --smeaton-green-dark: #41652a;
  --smeaton-grey: #efefef;
}

/* ---------- Mobile: drop the hero banner ----------
   On phones the tall banner just pushes the form down and leaves a big empty
   gap, so hide it entirely on the booking + confirmation pages. */
@media (max-width: 767.98px) {
  .page-main-image { display: none; }
}

/* ---------- Progress tracker ---------- */
.booking-progress {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 35px;
  counter-reset: step;
  flex-wrap: wrap;
}

.booking-progress li {
  flex: 1 1 0;
  text-align: center;
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: #9a9a9a;
  padding-top: 45px;
  min-width: 90px;
}

.booking-progress li span {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  line-height: 34px;
  border-radius: 50%;
  background: #d9d9d9;
  color: #fff;
  font-weight: 600;
  z-index: 1;
}

.booking-progress li::before {
  content: '';
  position: absolute;
  top: 17px;
  left: -50%;
  width: 100%;
  height: 3px;
  background: #d9d9d9;
  z-index: 0;
}

.booking-progress li:first-child::before { display: none; }

.booking-progress li.active span,
.booking-progress li.complete span {
  background: var(--smeaton-green);
}

.booking-progress li.active,
.booking-progress li.complete {
  color: var(--smeaton-green);
}

.booking-progress li.complete::before {
  background: var(--smeaton-green);
}

/* ---------- Form fields ---------- */
.booking-label {
  font-weight: 600;
  color: #212121;
  margin-bottom: 8px;
  display: block;
}

.booking-hint,
.booking-hint-inline {
  font-size: 13px;
  color: #808080;
  font-weight: 400;
}

.booking-hint-inline { margin-left: 6px; }

.booking-input {
  border-radius: 10px;
  box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.08);
  border: solid 1px var(--smeaton-green);
  background-color: #fff;
  padding: 12px 14px;
  height: auto;
}

.booking-input:focus {
  border-color: var(--smeaton-green);
  box-shadow: 0 0 0 0.15rem rgba(83, 130, 51, 0.25);
  outline: none;
}

/* ---------- Step 1: service cards ----------
   Compact horizontal cards: square thumbnail on the left, title/price/Select
   on the right. Cards stack full-width on their own; two sit side-by-side from
   the lg breakpoint (via the .col-12.col-lg-6 wrappers in the Blade view). */
.service-cards { margin-bottom: 6px; }
.service-cards > [class^="col-"] { margin-bottom: 14px; }

.service-card {
  height: 100%;
  background: #fff;
  border: 2px solid #e2e6dc;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: row;          /* horizontal layout */
  align-items: stretch;
  transition: border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}
.service-card:hover {
  border-color: var(--smeaton-green);
  box-shadow: 0 8px 22px rgba(83, 130, 51, .12);
}
.service-card:active { transform: translateY(1px); }

.service-card.is-selected {
  border-color: var(--smeaton-green);
  box-shadow: 0 8px 22px rgba(83, 130, 51, .18);
}

/* Locked service (e.g. a reschedule): fixed and not clickable — it is shown
   pre-selected and the "Selected" pill is disabled, so only date/time change. */
.service-card.is-locked { cursor: default; }
.service-card.is-locked:hover { box-shadow: none; }
.service-card.is-locked .service-card-select { cursor: default; opacity: 1; }

.service-card-thumb {
  flex: 0 0 96px;               /* fixed square thumbnail */
  width: 96px;
  align-self: stretch;
  background-size: cover;
  background-position: center;
  background-color: var(--smeaton-grey);
}

/* Paw placeholder shown when a service has no uploaded thumbnail. */
.service-card-thumb--placeholder,
.booking-selected-thumb.is-placeholder,
.booking-pay-thumb.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: none;
  color: var(--smeaton-green-dark);
}
.service-card-thumb--placeholder i,
.booking-selected-thumb.is-placeholder i,
.booking-pay-thumb.is-placeholder i {
  font-size: 1.75rem;
  opacity: .45;
}

.service-card-body {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.service-card-info { flex: 1 1 auto; min-width: 0; }

.service-card-name {
  font-size: .95rem;
  font-weight: 600;
  color: #212121;
  margin: 0 0 2px;
}

.service-card-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--smeaton-green-dark);
  margin: 0;
}

.service-card-select {
  flex: 0 0 auto;
  background: #fff;
  color: var(--smeaton-green);
  border: 1px solid var(--smeaton-green);
  border-radius: 10px;
  font-weight: 600;
  padding: 7px 16px;
  white-space: nowrap;
}
.service-card:hover .service-card-select { background: rgba(83, 130, 51, .08); }

.service-card-select .select-active { display: none; }
.service-card.is-selected .service-card-select {
  background: var(--smeaton-green);
  color: #fff;
}
.service-card.is-selected .service-card-select .select-default { display: none; }
.service-card.is-selected .service-card-select .select-active { display: inline; }

/* On very small screens keep the horizontal layout but shrink the thumb. */
@media (max-width: 400px) {
  .service-card-thumb { flex-basis: 76px; width: 76px; }
  .service-card-name { font-size: .88rem; }
  .service-card-price { font-size: 1rem; }
  .service-card-select { padding: 6px 12px; font-size: .85rem; }
}

/* ---------- Step 2: selected service card ---------- */
.booking-selected-service {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #e2e6dc;
  border-left: 4px solid var(--smeaton-green);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.booking-selected-thumb {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: var(--smeaton-grey);
}
.booking-selected-info { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.booking-selected-name { font-weight: 700; color: #212121; }
.booking-selected-meta { font-size: .88rem; color: #7a7a7a; }
.booking-selected-price { font-weight: 700; color: var(--smeaton-green-dark); font-size: 1.15rem; }

/* ---------- Calendar ---------- */
.booking-calendar {
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.06);
  background: #fff;
  max-width: 420px;
}

.booking-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: #212121;
  margin-bottom: 12px;
}

.cal-nav {
  border: none;
  background: var(--smeaton-green);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.cal-nav:disabled {
  background: #d9d9d9;
  cursor: not-allowed;
}

.booking-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-dow {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #808080;
  padding: 6px 0;
}

.cal-day {
  text-align: center;
  padding: 8px 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  border: 1px solid transparent;
  transition: 0.15s ease all;
}

.cal-day.is-empty { cursor: default; }

.cal-day.is-available:hover {
  border-color: var(--smeaton-green);
  color: var(--smeaton-green);
}

.cal-day.is-disabled {
  color: #cfcfcf;
  cursor: not-allowed;
}

.cal-day.is-selected {
  background: var(--smeaton-green);
  color: #fff;
  font-weight: 600;
}

/* ---------- Time slots ---------- */
.booking-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.slot-btn {
  border: 1px solid var(--smeaton-green);
  background: #fff;
  color: var(--smeaton-green);
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  font-weight: 500;
  min-width: 84px;
}

.slot-btn:hover { background: rgba(83, 130, 51, 0.08); }

.slot-btn.is-selected {
  background: var(--smeaton-green);
  color: #fff;
}

.slot-btn.is-taken {
  border-color: #dcdcdc;
  color: #bdbdbd;
  background: #f6f6f6;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ---------- Buttons / actions ---------- */
.booking-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.booking-btn {
  background-color: var(--smeaton-green);
  color: #fff;
  padding: 10px 38px;
  border-radius: 10px;
  font-weight: 600;
  border: none;
}

.booking-btn:hover { background-color: var(--smeaton-green-dark); color: #fff; }
.booking-btn:disabled { background-color: #c3c3c3; cursor: not-allowed; }

.booking-btn-outline {
  background: #fff;
  color: var(--smeaton-green);
  border: 1px solid var(--smeaton-green);
  padding: 10px 30px;
  border-radius: 10px;
  font-weight: 600;
}

.booking-btn-outline:hover { background: rgba(83, 130, 51, 0.08); color: var(--smeaton-green-dark); }

.pay-amount { margin-left: 8px; font-weight: 700; }

/* ---------- Summary / notices / errors ---------- */
.booking-summary {
  background: var(--smeaton-grey);
  border-left: 4px solid var(--smeaton-green);
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 15px;
}

.booking-summary strong { color: var(--smeaton-green-dark); }

.booking-notice {
  background: #fff8e6;
  border: 1px solid #f0d68a;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #6b5a1e;
}

.booking-error {
  background: #fdecea;
  border: 1px solid #f5c2c0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 18px;
  color: #a12622;
  font-size: 14px;
}

.booking-summary-total {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e0e0e0;
}

/* ---------- Step 3: "Amount Payable" card ---------- */
.booking-payable { margin-bottom: 4px; }

.booking-payable-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--smeaton-green-dark);
  margin: 0 0 14px;
}

.booking-pay-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #e2e6dc;
  border-left: 4px solid var(--smeaton-green);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .06);
}

.booking-pay-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: var(--smeaton-grey);
}

.booking-pay-info { display: flex; flex-direction: column; min-width: 0; }
.booking-pay-name { font-weight: 700; color: #212121; font-size: 1.02rem; }
.booking-pay-meta { font-size: .9rem; color: #7a7a7a; margin-top: 2px; }

.booking-pay-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 14px 2px 24px;
  padding-top: 14px;
  border-top: 1px dashed #d9ddd2;
}
.booking-pay-total-label {
  font-weight: 600;
  color: #212121;
  font-size: 1.05rem;
}
.booking-pay-total-amount {
  font-weight: 700;
  color: var(--smeaton-green-dark);
  font-size: 1.5rem;
}

/* ---------- Stripe card form ---------- */
.card-form {
  border: 1px solid #e2e2e2;
  border-radius: 14px;
  padding: 22px 22px 18px;
  background: #fff;
  box-shadow: 0 3px 12px 0 rgba(0, 0, 0, 0.06);
  margin-bottom: 22px;
}

.card-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.card-form-title {
  font-weight: 600;
  color: var(--smeaton-green-dark);
  font-size: 15px;
}

.card-form-title i { margin-right: 6px; }

.test-badge {
  background: var(--smeaton-green);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Wrapper that Stripe mounts its iframe into — styled to match .booking-input */
.stripe-field {
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #fff;
  padding: 13px 14px;
}

.stripe-field.StripeElement--focus {
  border-color: var(--smeaton-green);
  box-shadow: 0 0 0 0.15rem rgba(83, 130, 51, 0.25);
}

.stripe-field.StripeElement--invalid {
  border-color: #e0a3a1;
}

.card-test-hint {
  margin: 14px 0 0;
  font-size: 13px;
  color: #6b7a5c;
  background: rgba(83, 130, 51, 0.07);
  border-radius: 8px;
  padding: 10px 14px;
}

.card-test-hint i { color: var(--smeaton-green); margin-right: 6px; }

@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* ---------- Sticky info box ---------- */
.booking-info-box {
  position: sticky;
  top: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 12px 0 rgba(0, 0, 0, 0.1);
  padding: 26px 24px;
  border-top: 5px solid var(--smeaton-green);
}

.booking-info-title {
  font-size: 21px;
  font-weight: 600;
  color: var(--smeaton-green-dark);
  margin-bottom: 18px;
}

.booking-info-box .custom-bullet-list li {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.booking-info-contact {
  margin-top: 18px;
  font-size: 13px;
  color: #555;
}

.booking-info-contact i { color: var(--smeaton-green); margin-right: 6px; }

/* ---------- Done / receipt ---------- */
.booking-done { padding: 30px 0 10px; }

.booking-done i {
  font-size: 64px;
  color: var(--smeaton-green);
  margin-bottom: 16px;
}

.booking-done h1,
.booking-done h3 { color: #212121; }

.booking-receipt {
  max-width: 480px;
  margin-top: 24px;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  overflow: hidden;
}

.booking-receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
}

.booking-receipt-row:last-child { border-bottom: none; }
.booking-receipt-row span { color: #808080; }

/* Access pin shown on the confirmation page after full payment. */
.booking-pin {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  padding: 22px;
  border: 2px dashed #c9a24b;
  border-radius: 12px;
  background: #fbf7ec;
}
.booking-pin-title {
  font-weight: 600;
  color: #5a4f38;
}
.booking-pin-code-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 6px 0 10px;
}
.booking-pin-code {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 8px;
  color: #3d3527;
  line-height: 1;
}

.d-none { display: none !important; }

/* ---------- Step 2: guest vs. logged-in ---------- */
.booking-guest-choice {
  margin-bottom: 10px;
}
.booking-guest-choice-lead {
  font-weight: 600;
  color: var(--smeaton-green-dark);
  margin-bottom: 16px;
}
.booking-guest-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 575px) {
  .booking-guest-options { grid-template-columns: 1fr; }
}
.booking-choice-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  margin: 0;
  padding: 20px 18px 20px 46px;
  background: #fff;
  border: 2px solid #e2e6dc;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}
.booking-choice-card:hover {
  border-color: var(--smeaton-green);
  box-shadow: 0 8px 22px rgba(83, 130, 51, .12);
}
.booking-choice-card:active { transform: translateY(1px); }

/* Visually hide the native radio; the custom indicator shows the state. */
.booking-choice-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.booking-choice-indicator {
  position: absolute;
  top: 22px;
  left: 18px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #c4ccbb;
  background: #fff;
  transition: border-color .15s ease;
}
.booking-choice-indicator::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--smeaton-green);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .15s ease;
}
.booking-choice-card.is-selected {
  border-color: var(--smeaton-green);
  box-shadow: 0 8px 22px rgba(83, 130, 51, .16);
  background: #f7faf4;
}
.booking-choice-card.is-selected .booking-choice-indicator { border-color: var(--smeaton-green); }
.booking-choice-card.is-selected .booking-choice-indicator::after { transform: translate(-50%, -50%) scale(1); }

.booking-choice-content { display: flex; flex-direction: column; gap: 3px; }
.booking-choice-card i {
  font-size: 1.4rem;
  color: var(--smeaton-green);
  margin-bottom: 4px;
}
.booking-choice-title {
  font-weight: 700;
  color: #212121;
}
.booking-choice-sub {
  font-size: .85rem;
  color: #7a7a7a;
}

/* ---------- Step 2: inline field errors ---------- */
.booking-input.is-invalid {
  border-color: #d64541;
  box-shadow: 0 0 0 0.15rem rgba(214, 69, 65, 0.18);
}
.booking-field-error {
  display: none;
  margin-top: 6px;
  font-size: 13px;
  color: #a12622;
}
.booking-field-error.show { display: block; }

/* intl-tel-input: let the flag/country wrapper fill the field width. */
.booking-details-form .iti { width: 100%; }
.booking-details-form .iti__flag-container { border-radius: 10px 0 0 10px; }
.booking-loggedin-note {
  background: #eef3e9;
  border: 1px solid #cfe0c1;
  color: var(--smeaton-green-dark);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: .92rem;
}
.booking-loggedin-note i { color: var(--smeaton-green); }
.booking-input:disabled {
  background-color: #f4f5f2;
  color: #6b6b6b;
  cursor: not-allowed;
}

/* ---------- Success page: dashboard CTA ---------- */
.booking-btn-lg {
  font-size: 1.05rem;
  padding: 14px 34px;
}
.booking-btn-lg i { margin-right: 8px; }
.booking-guest-cta {
  background: #f7f9f4;
  border: 1px solid #e2e6dc;
  border-radius: 14px;
  padding: 22px;
}
.booking-guest-cta p { color: #5a5a5a; }

/* Copy button shown beside the PIN code inside the dashed access-pin box. */
.booking-pin-copy {
  background: var(--smeaton-green);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
}
.booking-pin-copy:hover { background: var(--smeaton-green-dark); }
.booking-pin-copy.is-copied { background: #3f7d2f; }
.booking-pin-copy i { margin-right: 4px; }
