
/* ==========================================
   FAZZA TOURS & TAXI - ORANGE BOOKING FORM
========================================== */

.fazza-booking {
  --booking-orange: #ffa500;
  --booking-orange-hover: #ef9700;
  --booking-text: #111b1d;
  --booking-muted: #666875;
  --booking-white: #fff;
  --booking-field: #fff;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0px 22px;
  font-family: inherit;
  position: relative;
  z-index: 1;
}

.fazza-booking *,
.fazza-booking *::before,
.fazza-booking *::after {
  box-sizing: border-box;
}

.fazza-booking form {
  margin: 0px;
  margin-top: 70px;
  padding: 37px 31px;
  background: var(--booking-orange);
  border-radius: 25px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .07);
}

/* Desktop form layout */
.booking-fields {
  display: grid;
  grid-template-columns:
    1fr 1.12fr 1.12fr 1.12fr 1.12fr .92fr 1.12fr;
  align-items: end;
  gap: 12px;
}

.booking-field {
  min-width: 0;
  position: relative;
}

.booking-field label {
  display: block;
  margin: 0 0 11px;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

/* Input containers */
.booking-input-wrap {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  height: 60px;
  padding: 0 15px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: var(--booking-field);
  transition: border-color .2s, box-shadow .2s;
}

.booking-input-wrap:focus-within {
  border-color: rgba(17, 27, 29, .4);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .22);
}

/* Inline SVG icons */
.booking-input-wrap > svg {
  display: block;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  color: #626572;
}

.booking-input-wrap input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--booking-text);
  font: inherit;
  font-size: 18px;
  font-weight: 400;
}

.booking-input-wrap input::placeholder {
  color: #696a75;
  opacity: 1;
}

.booking-input-wrap input:focus {
  outline: none;
}

.travel-dates-field input {
  cursor: pointer;
}

/* Guests selector */
.guest-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 60px;
  padding: 0 15px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: #fff;
  color: var(--booking-text);
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s;
}

.guest-trigger:hover,
.guest-trigger[aria-expanded="true"] {
  border-color: rgba(17, 27, 29, .25);
}

.guest-trigger:focus-visible {
  outline: 2px solid var(--booking-text);
  outline-offset: 3px;
}

.guest-arrow {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: #515762;
  transition: transform .2s ease;
}

.guest-trigger[aria-expanded="true"] .guest-arrow {
  transform: rotate(180deg);
}

.guest-field {
  position: relative;
  min-width: 0;
}


/* Guest selector layout and interaction fix */
.fazza-booking .guest-popup {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 999999;
  width: 420px;
  max-width: calc(100vw - 32px);
  padding: 26px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.fazza-booking .guest-popup[hidden] {
  display: none !important;
}

.fazza-booking .guest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.fazza-booking .guest-label strong {
  display: block;
  color: #111b1d;
  font-size: 18px;
}

.fazza-booking .guest-label small {
  display: block;
  margin-top: 0px;
  color: #666875;
  font-size: 16px;
}

.fazza-booking .guest-counter {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.fazza-booking .guest-counter button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 48px !important;
  height: 48px !important;
  min-width: 48px;
  padding: 0 !important;
  border: 1px solid #dedede !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #111b1d !important;
  font-size: 25px !important;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}

.fazza-booking .guest-counter button:hover {
  border-color: #ffa500 !important;
  background: #fff8e9 !important;
}

.fazza-booking .guest-counter input {
  display: block;
  width: 42px !important;
  min-width: 42px;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  color: #111b1d !important;
  font-size: 18px !important;
  text-align: center;
  box-shadow: none !important;
  pointer-events: auto;
  appearance: textfield;
  -moz-appearance: textfield;
}

.fazza-booking .guest-counter input::-webkit-inner-spin-button,
.fazza-booking .guest-counter input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.fazza-booking .guest-done {
  display: block;
  width: 100%;
  height: 50px;
  padding: 12px;
  border: 0;
  border-radius: 14px;
  background: #ffa500;
  color: #111;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.fazza-booking .guest-done:hover {
  background: #f29a00;
}

@media (max-width: 768px) {
  .fazza-booking .guest-popup {
    width: 420px;
    max-width: calc(100vw - 48px);
    padding: 24px;
  }

  .fazza-booking .guest-counter button {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
  }

  .fazza-booking .guest-done {
    height: 56px;
    font-size: 18px;
  }
}


/* White submit button with black SVG */
.booking-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 60px;
  padding: 0 20px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #111;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease,
              box-shadow .2s ease;
}

.booking-submit svg {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
}

.booking-submit:hover {
  transform: translateY(-2px);
  background: #f8f8f8;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .09);
}

.booking-submit:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

/* Status message */
.booking-message {
  margin: 14px 0 0;
  color: #171717;
  font-size: 14px;
  line-height: 1.6;
}

.booking-message:empty {
  display: none;
}

/* Mobile-only header */
.booking-mobile-header {
  display: none;
}

/* Calendar appearance */
.flatpickr-calendar {
  z-index: 100000 !important;
  font-family: inherit;
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .16);
  overflow: hidden;
}

.flatpickr-calendar .flatpickr-day.selected,
.flatpickr-calendar .flatpickr-day.startRange,
.flatpickr-calendar .flatpickr-day.endRange {
  background: #ffa500;
  border-color: #ffa500;
  color: #111;
}

.flatpickr-calendar .flatpickr-day.inRange {
  background: #fff0d0;
  border-color: #fff0d0;
  box-shadow: -5px 0 0 #fff0d0, 5px 0 0 #fff0d0;
}

.flatpickr-calendar .flatpickr-day.today {
  border-color: #e18c00;
}

/* ==========================================
   TABLET
========================================== */

@media (min-width: 769px) and (max-width: 1250px) {
  .fazza-booking {
    padding: 14px;
  }

  .fazza-booking form {
    padding: 32px 26px;
    border-radius: 30px;
  }

  .booking-fields {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px 18px;
  }

  .booking-field label {
    margin-bottom: 12px;
    font-size: 15px;
    white-space: normal;
  }

  .booking-input-wrap,
  .guest-trigger,
  .booking-submit {
    height: 62px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .booking-input-wrap {
    gap: 8px;
  }

  .booking-input-wrap > svg {
    flex-basis: 21px;
    width: 21px;
    height: 21px;
  }

  .booking-input-wrap input,
  .guest-trigger,
  .booking-submit {
    font-size: 14px;
  }

  .booking-submit svg {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
  }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {
  .fazza-booking {
    padding: 0px 12px;
  }

  .fazza-booking form {
    padding: 21px;
    border-radius: 20px;
    margin-top: 50px;
  }

  .booking-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .booking-header-copy {
    min-width: 0;
  }

  .booking-header-copy strong,
  .booking-header-copy small {
    display: block;
  }

  .booking-header-copy strong {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
  }

  .booking-header-copy small {
    margin-top: 0px;
    color: rgba(255, 255, 255, .9);
    font-size: 14px;
  }

  .booking-mobile-header > button {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 14px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #111;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
  }

  .booking-chevron {
    width: 16px;
    height: 16px;
    transition: transform .2s ease;
  }

  .fazza-booking.is-expanded .booking-chevron {
    transform: rotate(180deg);
  }

  .booking-fields {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 16px 12px;
    margin-top: 24px;
  }

  .fazza-booking.is-expanded .booking-fields {
    display: grid;
    animation: booking-reveal .25s ease-out;
  }

  .booking-field {
    min-width: 0;
    grid-column: auto;
  }

  .booking-field label {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.35;
    white-space: normal;
  }

  .booking-input-wrap,
  .guest-trigger {
    height: 52px;
    padding: 0 10px;
    border-radius: 11px;
  }

  .booking-input-wrap {
    gap: 7px;
  }

  .booking-input-wrap > svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
  }

  .booking-input-wrap input {
    font-size: 12px;
  }

  .booking-input-wrap input::placeholder {
    text-overflow: ellipsis;
  }

  .guest-field {
    grid-column: auto !important;
    min-width: 0;
  }

  .guest-trigger {
    font-size: 13px;
  }

  .guest-arrow {
    flex-basis: 16px;
    width: 16px;
    height: 16px;
  }

  .booking-submit {
    grid-column: 1 / -1;
    height: 54px;
    border-radius: 12px;
    font-size: 15px;
  }

  .booking-submit svg {
    flex-basis: 23px;
    width: 23px;
    height: 23px;
  }

  .guest-popup {
    width: 290px;
    max-width: calc(100vw - 48px);
  }

  .flatpickr-calendar.open {
    max-width: calc(100vw - 24px);
  }

  .booking-message {
    font-size: 13px;
  }
}

@keyframes booking-reveal {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .booking-submit,
  .booking-chevron,
  .guest-arrow {
    transition: none;
  }

  .booking-fields {
    animation: none !important;
  }
}
