/* ===== Travelotopos Booking CSS (Unified, Fixed, LinkTwist-aligned) ===== */

/* === Booking Wrapper === */
.travelotopos-booking-wrapper {
  background: #0A2640;
  color: #fff;
  border-radius: 20px;
  padding: 35px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  position: relative;
}

/* === Inline Top Row === */
.travelotopos-inline-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.travelotopos-participants,
.travelotopos-calendar {
  flex: 1 1 48%;
  min-width: 240px;
  position: relative;
}
/* === Inputs === */
.travelotopos-participants input,
.travelotopos-calendar input {
  width: 100%;
  border: none;
  border-radius: 15px;
  padding: 14px 48px 14px 44px;
  font-size: 16px;
  font-weight: 600;
  color: #192D59;
  background: #fff;
  background-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='%23192D59' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  cursor: pointer;
  transition: box-shadow 0.2s ease-in-out;
}
.travelotopos-participants input:focus,
.travelotopos-calendar input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 198, 0, 0.4);
}

/* === Inline Icons (LinkTwist-style) === */
.travelotopos-participants::before,
.travelotopos-calendar::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}
.travelotopos-participants::before {
  background-image: url('https://staging.zastours.com/wp-content/uploads/2025/03/add-participants2.svg');
}
.travelotopos-calendar::before {
  background-image: url('https://staging.zastours.com/wp-content/uploads/2025/03/calendar.svg');
}
/* === Participant Panel === */
.travelotopos-participants {
  position: relative;
}

.person-row .count {
  display: inline-block;
  min-width: 36px;
  text-align: center;
  background-color: #f0f0f0;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: bold;
  font-size: 16px;
  color: #333;
  margin: 0 10px;
  transition: all 0.2s ease;
}

#travelotopos-participants-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 100%;
  display: none;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 20px;
  z-index: 10;
}

.person-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 12px;
}

#travelotopos-participants-panel label {
  color: #001F3F !important;
}

.qty-controls button {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
  background: #D4F0FA;
  color: #0A2640;
  cursor: pointer;
}

.qty-controls button:hover {
  background: #BCE5F5;
}

.qty-controls .count {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
}

#travelotopos-save-participants {
  width: 100%;
  margin-top: 20px;
  background: #062341;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
/* === Label Color Fix === */
.label-container label {
  color: #0A2640 !important;
  font-weight: 600;
  font-size: 14px;
  display: block;
  margin-bottom: 4px;
}

/* === Option Panel === */
#travelotopos-options-panel {
  margin-top: 10px;
}

.option-block {
  margin-top: 12px;
}

.option-block:first-child {
  margin-top: 0;
}

.option-block button.option-button {
  all: unset;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  background: #E2F3FA;
  color: #0A2640;
  border-radius: 20px;
  border: 4px solid #E2F3FA;
  padding: 16px 18px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  cursor: pointer;
}

.option-block button.selected {
  background: #fff;
  border-color: #FFC600;
}

.option-times {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.option-times span {
  background: #f0f0f0;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 14px;
  border: 1px solid #eee;
}
/* === Continue Button === */
#travelotopos-continue-button:not(.enabled) {
  background: #ccc;
  color: #fff;
  cursor: pointer;
}

#travelotopos-continue-button.enabled {
  background: #FFC600;
  color: #0A2640;
  cursor: pointer;
}

/* === Customer Form Overlay === */
.travelotopos-customer-form-module {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 9999;
}

.form-container {
  background: #fff;
  width: calc(100% - 30px);
  max-width: 780px;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 30px;
  position: relative;
  color: #0A2640;
}

.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.form-header h2 {
  font-size: 22px;
}

.form-header .close-button {
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: #0A2640;
}
.contact-group {
  margin-bottom: 24px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 12px;
}

.contact-group h4 {
  margin: 0 0 12px;
  font-size: 18px;
  color: #0A2640;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-group h4::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml;utf8,<svg viewBox='0 0 24 24' fill='%230A2640' xmlns='http://www.w3.org/2000/svg'><path d='M12 12c2.7 0 5-2.3 5-5s-2.3-5-5-5-5 2.3-5 5 2.3 5 5 5zm0 2c-3.3 0-10 1.7-10 5v3h20v-3c0-3.3-6.7-5-10-5z'/></svg>") no-repeat center/contain;
}

.form-row {
  margin-bottom: 12px;
}

.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #0A2640;
}

.form-row input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  background: #FFF7DF;
  color: #0A2640;
}

.form-row input[type="text"]:focus {
  background: #fff;
  border-color: #E8EAEE;
  outline: none;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

#submit-customer-form {
  flex: 1;
  background: #FFC600;
  color: #0A2640;
  border: none;
  border-radius: 50px;
  padding: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}

#submit-customer-form:disabled {
  background: #ccc;
  cursor: not-allowed;
}

#cancel-customer-form {
  flex: 0 0 auto;
  background: #E2F3FA;
  color: #0A2640;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 16px;
  cursor: pointer;
}
/* === Flatpickr Calendar Fix === */
.flatpickr-calendar {
  width: auto !important;
  max-width: 95vw !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25) !important;
  overflow: hidden !important;
  z-index: 9999 !important;
  font-family: inherit;
}

.flatpickr-days {
  width: auto !important;
  min-width: 320px;
  max-width: 100%;
}

.flatpickr-months .flatpickr-month {
  font-weight: 600;
  font-size: 16px;
}

.flatpickr-weekday,
.flatpickr-day {
  font-size: 14px !important;
  color: #0A2640;
}

.flatpickr-day.today {
  background: #f0f0f0;
}

.flatpickr-day.selected {
  background: #062341 !important;
  color: #fff !important;
}

.flatpickr-day:hover {
  background: #E2F3FA !important;
}
/* === Hide WooCommerce Cart === */
form.cart .quantity,
form.cart .single_add_to_cart_button {
  display: none !important;
}

button.single_add_to_cart_button[name="add-to-cart"],
input.qty[name="quantity"] {
  display: none !important;
}

/* === Responsive === */
@media (max-width: 768px) {
  .travelotopos-inline-row {
    flex-direction: column;
  }

  .travelotopos-participants,
  .travelotopos-calendar {
    flex: 1 1 100%;
  }

  .flatpickr-calendar {
    max-width: 100vw !important;
  }

  .flatpickr-days {
    flex-wrap: wrap;
    display: flex;
    justify-content: space-around;
  }
}
