/* =========================
   Proxima Nova Fonts
========================= */

@font-face {
  font-family: 'Proxima Nova Alt Rg';
  src: url('fonts/ProximaNovaA-Regular.eot');
  src: local('Proxima Nova Alt Regular'), local('ProximaNovaA-Regular'),
       url('fonts/ProximaNovaA-Regular.eot?#iefix') format('embedded-opentype'),
       url('fonts/ProximaNovaA-Regular.woff2') format('woff2'),
       url('fonts/ProximaNovaA-Regular.woff') format('woff'),
       url('fonts/ProximaNovaA-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Proxima Nova Alt Lt';
  src: url('fonts/ProximaNovaA-Light.eot');
  src: local('Proxima Nova Alt Light'), local('ProximaNovaA-Light'),
       url('fonts/ProximaNovaA-Light.eot?#iefix') format('embedded-opentype'),
       url('fonts/ProximaNovaA-Light.woff2') format('woff2'),
       url('fonts/ProximaNovaA-Light.woff') format('woff'),
       url('fonts/ProximaNovaA-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Proxima Nova Alt Lt';
  src: url('fonts/ProximaNovaA-Semibold.eot');
  src: local('Proxima Nova Alt Semibold'), local('ProximaNovaA-Semibold'),
       url('fonts/ProximaNovaA-Semibold.eot?#iefix') format('embedded-opentype'),
       url('fonts/ProximaNovaA-Semibold.woff2') format('woff2'),
       url('fonts/ProximaNovaA-Semibold.woff') format('woff'),
       url('fonts/ProximaNovaA-Semibold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Proxima Nova Alt Rg';
  src: url('fonts/ProximaNovaA-Bold.eot');
  src: local('Proxima Nova Alt Bold'), local('ProximaNovaA-Bold'),
       url('fonts/ProximaNovaA-Bold.eot?#iefix') format('embedded-opentype'),
       url('fonts/ProximaNovaA-Bold.woff2') format('woff2'),
       url('fonts/ProximaNovaA-Bold.woff') format('woff'),
       url('fonts/ProximaNovaA-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

/* =========================
   Booking Wrapper Base
========================= */
.booking-wrapper * {
  box-sizing: border-box;
  font-family: 'Proxima Nova Alt Rg', Arial, sans-serif;
  margin: 0;
  color: #000000;
  /* padding: 0; */
}

/* =========================
   Booking Card
========================= */

.booking-wrapper {
  background: #ffffff;
  width: 100%;
  max-width: 420px;
  padding: 30px 25px;       /* ✅ keep padding for content */
  border-radius: 30px;
  box-shadow: 0 0 0 1px #eee;
  position: relative;
  overflow: hidden;          /* important for smooth height transition */
  transition: height 0.35s ease; /* smooth height animation */
  padding: 0; /* important */
}

/* =========================
   Heading
========================= */

.booking-wrapper h2 {
  text-align: center;
  margin: 0 0 25px;
  padding-top: 30px;  /* move top space inside wrapper */
  font-family: 'Proxima Nova Alt Lt';
  font-weight: 600;
  font-size: 22px;
  text-transform: none;
}

/* =========================
   Form Fields
========================= */

.booking-form input,
.booking-form select {
  width: 100%!important;
  padding: 14px 16px!important;
  margin-bottom: 16px!important;
  border-radius: 12px!important;
  border: 1px solid #e5e5e5!important;
  font-size: 14px!important;
  font-family: 'Proxima Nova Alt Rg'!important;
  font-weight: 400!important;
  outline: none!important;
  background: #fff;
}

.booking-form select,
.booking-form select option {
  font-family: 'Proxima Nova Alt Rg';
  font-size: 14px;
  font-weight: 400;
  color: #333;
}

.booking-form select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-family: 'Proxima Nova Alt Rg';
  font-size: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  background: #fff url('icons/arrow-down.svg') no-repeat right 16px center;
  background-size: 12px;
}

.booking-form input::placeholder {
  color: #999;
}

.booking-form select {
  cursor: pointer;
  appearance: none;
}

/* =========================
   Two Column Rows
========================= */

.row {
  display: flex;
  gap: 12px;
}

.row input {
  flex: 1;
}

/* =========================
   Benefits List
========================= */

.benefits {
  margin: 20px 0;
  padding-left: 20px;
}

.benefits li {
  margin-bottom: 8px;
  font-size: 14px;
  font-family: 'Proxima Nova Alt Rg';
}

/* =========================
   Submit Button
========================= */

.booking-wrapper button {
  width: 100%;
  padding: 16px;
  background: #000;
  color: #fff!important;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-family: 'Proxima Nova Alt Lt';
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 0 #c9a24d;
}

.booking-wrapper button:hover {
  opacity: 0.9;
}

/* =========================
   Footer Note
========================= */

.note {
  text-align: center;
  margin-top: 18px;
  font-size: 15px;
  color: #333;
  font-family: 'Proxima Nova Alt Lt';
  font-weight: 600;
}

/* =========================
   Responsive
========================= */

@media (max-width: 480px) {
  .booking-wrapper {
    padding: 25px 20px;
  }
}

/* Page transition */
.page-longefit {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 30px 25px;   /* 👈 move padding here */
  box-sizing: border-box;
  
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.page-longefit.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Calendar Header */
.calendar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.calendar-header h3 {
  flex: 1;
  text-align: center;
  font-weight: 600;
  font-size: 20px;
  text-transform: none;
}

.calendar-header button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

/* Flatpickr UI */
.flatpickr-calendar {
  width: 100%;
  box-shadow: none;
  border: none;
}

/* All days: default transparent background */
.flatpickr-day {
  border-radius: 6px!important;       /* Rounded corners */
  border: 1px solid transparent!important; /* Default border */
  background-color: transparent!important;
}

/* Hover effect: colored border */
.flatpickr-day:hover {
  border: 1px solid #A0762E!important; /* Your color */
  background-color: transparent!important;
  color: #A0762E!important; /* optional: text matches border */
}

/* Selected day: same border style */
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  border: 1px solid #A0762E!important; /* Your color */
  background-color: transparent!important;
  color: #A0762E!important;
}

/* Remove default background fill when selected */
.flatpickr-day.selected:focus {
  background-color: transparent!important;
}

/* Timezone */
.timezone {
  margin-top: 20px;
}

.timezone select {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
}

#tzTime {
  margin-top: 8px;
  font-size: 13px;
  color: #555;
}

/* Icon / back button override */
.booking-wrapper .icon-btn {
  width: auto;
  padding: 0;
  background: transparent;
  color: #000;
  box-shadow: none;
  border-radius: 0;
  font-size: 20px;
  line-height: 1;
}

.booking-wrapper .icon-btn:hover {
  opacity: 0.7;
}

/* Selected date text */
.selected-date {
  text-align: center;
  margin-bottom: 15px;
  font-weight: 500;
}

/* Loading text */
.loading-text {
  text-align: center;
  font-size: 14px;
  margin: 20px 0;
  opacity: 0.8;
}

/* Time slots container */
.time-slots {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 6px;
}

/* Individual slot */
.time-slot {
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  text-align: center;
  font-weight: 600;
  background: #fff;
}

/* Available */
.time-slot.available {
  cursor: pointer;
}

/* Hover effect (only available) */
.time-slot.available:hover {
  border-color: #A0762E;
}

/* Selected */
.time-slot.selected {
  border-color: #A0762E;
  background: #fff;
}

/* Disabled */
.time-slot.disabled {
  color: #ccc;
  background: #fafafa;
  cursor: not-allowed;
}

/* Submit button */
.submit-btn {
  margin-top: 20px;
  width: 100%;
  padding: 16px;
  background: #000;
  color: #fff;
  border-radius: 14px;
  border: none;
  font-size: 16px;
  box-shadow: 0 4px 0 #c9a24d;
}

/* Hidden */
.hidden {
  display: none;
}

/* THANK YOU PAGE */
.thank-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.thank-text {
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
  margin: 0px auto 24px auto;
  max-width: 300px;  
}

.divider {
  width: 120px;
  height: 2px;
  background: #c89b3c;
  margin: 0 auto 24px;
}

/* Curved video card */
.video-card {
  width: 370px;
  height: 220px;
  margin: 0 auto 24px;
  border-radius: 26px;
  overflow: hidden;
  position: relative;
}

.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer text */
.contact-text {
  text-align: center;
  font-size: 13px;
  margin-bottom: 12px;
}

/* Social icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.social-icons .icon {
  width: 20px;   /* size of icons */
  height: 20px;
  cursor: pointer;
  transition: transform 0.2s;
}

.social-icons .icon:hover {
  transform: scale(1.1); /* simple hover effect */
}

/* =============================
   Form Validation Layout Fix
============================= */

/* IMPORTANT: each input/select must be wrapped */
.booking-form .form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* =============================
   Error Highlighting
============================= */

.booking-form input.error,
.booking-form select.error {
  border-color: #e63946;
  background-color: #fff5f5;
}

/* =============================
   Error Message Text
============================= */

.form-error {
  font-size: 14px;
  color: #e63946;
  margin-top: 10px;
  line-height: 1.3;
  text-align: center;
}

/* =============================
   Smooth Interaction
============================= */

.booking-form input,
.booking-form select {
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

/* =============================
   Optional Focus Improvement
============================= */

.booking-form input:focus.error,
.booking-form select:focus.error {
  outline: none;
  box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.15);
}

/* =========================
   Custom Select Wrapper
========================= */
.custom-select-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 16px;
  font-family: 'Proxima Nova Alt Rg', Arial, sans-serif;
  font-size: 14px;
}

/* =========================
   Custom Select Container
========================= */
.custom-select {
  position: relative;
  cursor: pointer;
}

/* =========================
   Trigger
========================= */
.custom-select-trigger {
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.custom-select-trigger:hover {
  border-color: #c89b3c;
}

/* =========================
   Arrow
========================= */
.custom-select-trigger .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.custom-select.open .custom-select-trigger .arrow {
  transform: rotate(180deg);
}

/* =========================
   Options Container
========================= */
.custom-options {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  max-height: 220px;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  z-index: 10;
}

/* Show options when open */
.custom-select.open .custom-options {
  display: flex;
}

/* =========================
   Option Items
========================= */
.custom-option {
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.custom-option:hover {
  background: #f5f5f5;
}

/* =========================
   Selected State Highlight
========================= */
.custom-option.selected {
  background: #f0e4c9;
}

/* =========================
   Smooth interaction
========================= */
.custom-select-trigger,
.custom-option {
  font-family: 'Proxima Nova Alt Rg', Arial, sans-serif;
}

/* =========================
   Optional scroll styling
========================= */
.custom-options::-webkit-scrollbar {
  width: 6px;
}

.custom-options::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.2);
  border-radius: 3px;
}