/* ===================== BOOKING SECTION ===================== */
.booking-section {
  background: var(--white);
  padding: 165px 0 50px 0; /* Mobile Base */
  position: relative;
  z-index: 2;
}
.modal .booking-form .section-heading p {
    display: none;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-14);
  font-weight: var(--fw-600);
  color: var(--global-color-accent);
  padding: 0 0 15px 0;
}

.section-tag svg {
  width: 14px;
  height: 14px;
}

.booking-heading {
  padding: 0 0 20px 0;
  font-size: var(--fs-20);
  font-weight: var(--fw-700);
  color: var(--global-color-accent);
  line-height: var(--heading-line-height);
}

.booking-heading2 {
  color: var(--global-color-primary);
  font-weight: var(--fw-700);
  line-height: var(--heading-line-height);
}

/* ===================== STEP INDICATOR ===================== */
.step-indicator {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 0 15px 15px;
}

.step-summary-container {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  order: 2;
}

.step-nav-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--global-color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.step-nav-arrow.step-nav-prev,
.step-nav-arrow.step-nav-next {
  justify-self: unset;
}

.step-nav-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: var(--global-color-darkdivider);
  color: var(--global-color-text);
}

.step-nav-arrow svg {
  width: 25px;
  height: 25px;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-14);
  color: var(--global-color-primary);
  font-weight: var(--fw-500);
  transition: all 0.3s ease;
}

.summary-item svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--global-color-accent);
}

.summary-item.active {
  background: var(--global-color-accent);
  color: var(--white);
}

.summary-item.active svg {
  color: var(--white);
}
/* ===================== BOOKING FORM CONTAINER ===================== */
.booking-form {
  flex: 1;
  padding: 30px 20px;
  order: 1;
  background: var(--white);
  border-radius: 40px;
  box-shadow: var(--box-shadow);
  font-family: var(--font-family);
}

.booking-form input,
.booking-form textarea,
.booking-form select,
.booking-form button,
.booking-form small,
.booking-form label {
  font-family: var(--font-family);
}

.booking-step {
  display: none;
}

.booking-step.active {
  display: block;
}

/* Visibility Utilities */
.d-none { display: none !important; }
.v-hidden { visibility: hidden !important; }
.v-visible { visibility: visible !important; }
.step-nav-arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
/* ===================== STEP 1: SERVICE CARDS ===================== */
.row-service {

}



.apporach-card {
  width: 100%;
  background: var(--white);
  padding: 30px 20px;
  text-align: center;
  border-radius: 16px;
  border: 1px solid var(--global-color-darkdivider);
  transition: all 0.25s ease;
}

.apporach-card.selected {
  background: var(--background-card-dark-linea);
  box-shadow: var(--box-shadow);
  transform: scale(1.02);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(27, 125, 173, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.service-icon svg {
  width: 30px;
  height: 30px;
  color: var(--global-color-accent);
}

.apporach-card:hover .service-icon svg,
.apporach-card.selected .service-icon svg {
  color: var(--white);
}

.service-title {
  font-size: var(--fs-16);
  font-weight: var(--fw-600);
  margin-bottom: 18px;
  color: var(--global-color-primary);
  line-height: var(--heading-line-height);
}

.service-btn {
  border: 1px solid var(--global-color-accent);
  background: transparent;
  color: var(--global-color-accent);
  font-size: 13px;
  padding: 7px 18px;
  border-radius: var(--br-20);
  transition: all 0.25s ease;
}

.service-btn-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-btn:hover {
  background: var(--global-color-accent);
  color: var(--white);
}

/* ===================== STEP 2: DATE & TIME ===================== */
.step-2 { margin-top: 20px; }

.form-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--global-color-primary);
  margin-bottom: 8px;
  line-height: var(--lh-md);
}

.slot-title {
  font-size: var(--fs-14);
  font-weight: var(--fw-600);
  margin: 20px 0 15px;
  color: var(--global-color-primary);
}

.date-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin-bottom: 16px;
}

.date-box {
  flex: 0 0 calc((100% - 16px) / 3);
  min-height: 56px;
  min-width: 70px;
  font-size: var(--fs-14);
  border-radius: 12px;
  background: var(--global-color-secondary);
  text-align: center;
  color: var(--global-color-primary);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding-top: 10px;
}

.date-box:hover {
  background: rgba(27, 125, 173, 0.1);
  border-color: var(--global-color-accent);
}

.date-box.active {
  background: var(--global-color-accent);
  color: var(--white);
  font-weight: var(--fw-600);
  border-color: var(--global-color-accent);
}

.date-box strong {
  display: block;
  font-size: 14px;
  line-height: 1;
}

.time-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.time-box {
  border-radius: 4px;
  background: var(--global-color-secondary);
  font-size: 12px;
  text-align: center;
  transition: all 0.3s ease;
  color: var(--global-color-primary);
  border: 2px solid transparent;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  width: 100%;
}

.time-box:hover {
  background: rgba(27, 125, 173, 0.1);
  border-color: var(--global-color-accent);
}

.time-box.active {
  background: var(--global-color-accent);
  color: var(--white);
  font-weight: var(--fw-500);
  border-color: var(--global-color-accent);
}

.time-box.disabled {
  opacity: 0.4 ;
  cursor: not-allowed ;
  background-color: #f5f5f5 ;
  color: #bbb ;
  pointer-events: none ;
  border: 2px solid #ddd ;
}

/* ===================== STEP 3: INPUTS ===================== */
.booking-form .form-control {
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #e3e8ef;
  font-size: 15px;
  color: var(--global-color-primary);
  background: var(--white);
  outline: none;
  transition: 0.3s ease;
  height: auto;
}

.booking-form .form-control:focus {
  box-shadow: var(--box-shadow-gray);
  border-color: var(--global-color-accent);
}

.booking-form textarea.form-control {
  min-height: 97px;
  padding: 16px 18px;
  line-height: var(--lh-md);
  resize: none;
}

.booking-form .form-control::placeholder {
  color: var(--global-color-text);
}

/* Step 3 only: form fields scroll + button sticky */
.modal .booking-form.step-3-active {
  overflow: hidden ;
  display: flex ;
  flex-direction: column ;
}

.modal .booking-form.step-3-active .step-3.active {
  display: flex ;
  flex-direction: column ;
  flex: 1 1 auto ;
  min-height: 0 ;
  overflow: hidden ;
}

.modal .booking-form.step-3-active .step-3.active .step-3-scroll {
  flex: 1 1 auto ;
  min-height: 0 ;
  overflow-y: auto ;
  overflow-x: hidden ;
  -webkit-overflow-scrolling: touch ;
}

.modal .booking-form.step-3-active .step-3.active .step-btns {
  flex-shrink: 0 ;
  position: sticky;
  bottom: 0;
  z-index: 20;
  background: var(--white);
  padding: 15px 0 0;
  margin-top: 0;
}

/* ===================== CUSTOM DROPDOWN ===================== */
.custom-dropdown {
    position: relative;
    width: 100%;
}
.dropdown-trigger {
    padding: 15px 18px;
    border-radius: var(--br-14);
    border: 1px solid var(--global-color-darkdivider);
    font-size: var(--fs-15);
    background: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s ease;
}
.custom-dropdown.open .dropdown-trigger {
    border-color: var(--global-color-accent);
}
.dropdown-trigger .trigger-text {
    color: var(--global-color-text); /* Placeholder color */
}
.custom-dropdown.has-value .dropdown-trigger .trigger-text {
    color: var(--global-color-primary); /* Selected value color */
}
.dropdown-trigger .icon {
    transition: transform 0.3s ease;
    line-height: 0;
}
.custom-dropdown.open .dropdown-trigger .icon {
    transform: rotate(180deg);
}
.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    border: 1px solid var(--global-color-darkdivider);
    border-radius: 14px;
    box-shadow: var(--box-shadow);
    z-index: 100;
    max-height: 320px;
    overflow-y: auto;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}
.custom-dropdown.open {
    z-index: 1001;
}

/* Ensure the parent column/row of the open dropdown stays on top of other rows */
.row:has(.custom-dropdown.open),
.row-special:has(.custom-dropdown.open),
.col:has(.custom-dropdown.open) {
    z-index: 1002;
    position: relative;
}

.custom-dropdown.open .dropdown-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-option {
    padding: 7px 15px 7px 20px;
    font-size: var(--fs-14);
    color: var(--global-color-primary);
    cursor: pointer;
    transition: background 0.2s ease;
}
.dropdown-option:hover {
    background: var(--global-color-secondary);
    color: var(--global-color-accent);
}
.dropdown-option.selected {
    background: var(--global-color-secondary);
    color: var(--global-color-accent);
}

/* Custom Scrollbar for Dropdown */
.dropdown-options::-webkit-scrollbar {
    width: 6px;
}
.dropdown-options::-webkit-scrollbar-track {
    background: transparent;
    margin: 10px 0;
}
.dropdown-options::-webkit-scrollbar-thumb {
    background: var(--global-color-primary);
    border-radius: 10px;
    border: 1px solid #fff;
}

/* Autofill Fix */
.booking-form .form-control:-webkit-autofill,
.booking-form .form-control:-webkit-autofill:hover,
.booking-form .form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--global-color-primary);
  -webkit-box-shadow: 0 0 0px 1000px var(--white) inset;
  transition: background-color 5000s ease-in-out 0s;
}

.step-3 .row,
.step-3 .row-special {
  margin-bottom: 20px;
  width: 100%;
}

/* ===================== COUNTRY PHONE ===================== */
.country-phone {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 14px;
  border: 1px solid #e3e8ef;
  background: var(--white);
  transition: all 0.3s ease;
  width: 100%;
}

.country-phone:focus-within {
  box-shadow: var(--box-shadow-gray);
  border-color: var(--global-color-accent);
}

.country-phone .country-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 54px;
  padding: 0 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--global-color-primary);
  border-right: 1px solid #e3e8ef;
  position: relative;
}

.country-phone .country-select .icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.country-phone .country-select[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}

.country-phone .country-select .flag {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.country-phone .phone-input {
  border: none ;
  height: 54px;
  padding: 0 18px;
  flex: 1;
  font-size: 15px;
  color: var(--global-color-primary);
  background: transparent;
  box-shadow: none ;
}

.country-phone .country-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 260px;
  max-height: 220px;
  overflow: auto;
  background: var(--white);
  border: 1px solid #e3e8ef;
  border-radius: 12px;
  list-style: none;
  padding: 6px 0;
  z-index: 99999;
}

.country-phone .country-dropdown.drop-up {
  top: auto;
  bottom: calc(100% + 6px);
}

.country-phone .country-dropdown li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
}

.country-phone .country-dropdown li:hover {
  background: var(--global-color-secondary);
}

/* ===================== NAVIGATION BUTTONS ===================== */
.step-btns {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 30px;
  gap: 12px;
}

.back-btn,
.next-btn {
  width: 100%;
  height: 48px;
  border-radius: var(--br-14);
  border: none;
  font-size: var(--fs-14);
  font-weight: var(--fw-600);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-btn {
  background: var(--global-color-secondary);
  color: var(--global-color-primary);
}

.next-btn {
  background: var(--global-color-accent);
  color: var(--white);
}

.next-btn:hover {
  background: var(--global-color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 125, 173, 0.3);
}

/* ===================== VALIDATION & MISC ===================== */
.error-msg {
  display: none;
  font-size: var(--fs-12);
  color: var(--error-color);
}

.error-msg:not(:empty) {
  display: block;
}

.form-control.error,
.country-phone.error,
.custom-dropdown.error .dropdown-trigger {
  border-color: var(--error-color);
}

.word-count {
  display: block;
  padding: 8px 0 0 0;
  font-size: var(--fs-14);
  color: var(--global-color-text);
  text-align: right;
}

.message-row { position: relative; }

.message-row textarea.form-control {
  padding-bottom: 32px ;
  min-height: 120px;
}

.message-row .word-count {
  position: absolute;
  bottom: -20px;
  right: 12px;
  font-size: var(--fs-12);
  padding: 2px 6px;
}

.message-row .word-count.warning {
  color: #ff9800;
  background: rgba(255, 152, 0, 0.1);
  border-color: #ff9800;
}

.message-row .word-count.danger {
  color: #f44336;
  background: rgba(244, 67, 54, 0.1);
  border-color: #f44336;
}

/* ===================== MODAL ===================== */
.modal {
  display: none;
  position: fixed ;
  inset: 0 ;
  width: 100vw ;
  height: 100dvh ;
  min-height: 100dvh ;
  z-index: 999999 ;
  margin: 0 ;
  padding: 0 ;
  overflow: hidden ;
}

.modal.open {
  display: flex ;
  visibility: visible ;
  opacity: 1 ;
  pointer-events: auto ;
}

body.no-scroll {
  overflow: hidden ;
}

.modal .modal-overlay {
  position: fixed ;
  inset: 0 ;
  width: 100vw ;
  height: 100dvh ;
  background: var(--black) ;
  opacity: 0.6 ;
  z-index: 1 ;
}

.modal .modal-container {
  position: relative ;
  inset: auto ;
  transform: none ;
  margin: 0 ;
  padding: 0 ;
  width: 100vw ;
  height: 100dvh ;
  min-height: 100dvh ;
  max-width: none ;
  background-color: transparent ;
  border-radius: 0 ;
  box-shadow: none ;
  overflow: hidden ;
  z-index: 2 ;
  font-family: var(--font-family);
  display: flex ;
  flex-direction: column ;
}

.modal .booking-form {
  width: 100vw ;
  height: 100dvh ;
  min-height: 0 ;
  max-width: none ;
  flex: 1 1 auto ;
  overflow-y: auto ;
  overflow-x: hidden ;
  -webkit-overflow-scrolling: touch ;
  background: var(--white) ;
  padding: 35px 20px 20px 20px ;
  margin: 0 ;
  border-radius: 0 ;
  box-shadow: none ;
}

.modal.modal-md .modal-container {
  max-width: none ;
}

.modal .modal-close {
  position: fixed ;
  top: 15px ;
  right: 18px ;
  background: var(--global-color-accent);
  border: none;
  font-size: 20px;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--white);
  z-index: 1000000 ;
  transition: all 0.3s ease;
}

.modal .modal-close:hover {
  background: var(--global-color-primary);
}

.slot-count {
  display: block;
  font-size: 10px;
  opacity: 0.7;
}

@media (min-width: 481px) {
  .booking-heading {
    font-size: var(--fs-24);
  }

  .summary-item svg {
    width: 14px;
    height: 14px;
  }

  .date-box {
    min-width: 80px;
    font-size: 12px;
  }
}

@media (min-width: 576px) {
  .step-indicator {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .step-summary-container {
    width: auto;
    grid-column: 2;
    order: 2;
  }

  .step-nav-arrow.step-nav-prev {
    grid-column: 1;
    order: 1;
    justify-self: center;
  }

  .step-nav-arrow.step-nav-next {
    grid-column: 3;
    order: 3;
    justify-self: center;
  }
}

@media (min-width: 768px) {
  .modal .modal-container {
  width: 700px;
  height: auto;
  min-height: auto;
  max-width: calc(100vw - 40px);
  border-radius: var(--br-20);
  margin: auto;
  display: block;
}

.modal .booking-form {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 80px);
  padding: 60px 40px;
}

  .modal.modal-md .modal-container {
    max-width: 700px ;
  }

  .modal .modal-close {
    position: absolute ;
    top: 15px ;
    right: 25px ;
  }

  .booking-section {
    padding: 140px 0 60px 0;
  }

  .booking-heading {
    padding: 0 0 15px 0;
    font-size: var(--fs-36);
  }

  .booking-form {
    padding: 40px 60px;
    order: 0;
  }

  .apporach-card {
    padding: 26px 18px 22px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
  }

  .apporach-card.selected {
    transform: none;
  }

  .service-icon {
    margin-bottom: 14px;
  }

  .service-title {
    font-size: 16px;
    text-align: center;
    margin-bottom: 25px;
  }

  .service-btn {
    font-size: var(--fs-14);
    padding: 8px 22px;
    width: 100%;
    max-width: 140px;
  }

  .date-row {
    gap: 14px;
  }

  .date-box {
    flex: 0 0 calc((100% - 42px) / 4);
    min-height: 64px;
    font-size: 13px;
    border-radius: var(--br-14);
  }

  .date-box strong {
    font-size: 16px;
  }

  .time-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .time-box {
    font-size: 13px;
    min-height: 38px;
  }

  .step-btns {
    flex-direction: row;
    padding: 0 0 0 17px;
    gap: 14px;
  }

  .back-btn,
  .next-btn {
    width: auto;
    height: auto;
    padding: 14px 28px;
    border-radius: var(--br-20);
  }

  .booking-form .form-control {
    padding: 16px 18px;
    font-size: 15px;
  }

  .booking-form textarea.form-control {
    min-height: 110px;
  }

  .step-3 .row,
  .step-3 .row-special {
    gap: 24px;
  }

  .message-row textarea.form-control {
    padding-bottom: 35px;
  }

  .message-row .word-count {
    bottom: -20px;
    right: 15px;
    font-size: var(--fs-14);
    padding: 0;
  }
}

@media (min-width: 992px) {
  .step-btns {
    gap: 15px;
  }

  .back-btn,
  .next-btn {
    padding: 14px 35px;
  }
}

@media (min-width: 1024px) {
    .modal .modal-container {
    width: 800px;
  }
  .date-row {
    gap: 18px;
  }

  .date-box {
    flex: 0 0 calc((100% - 108px) / 7);
    min-height: 68px;
    font-size: var(--fs-14);
  }

  .time-row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
  }

  .time-box {
    font-size: var(--fs-14);
    min-height: 40px;
  }
}

@media (min-width: 1200px) {
  .booking-section {
    padding: 195px 0 100px 0;
  }

  .booking-heading {
    font-size: var(--fs-44);
  }

  .booking-form {
    padding: 40px 140px;
  }

  .apporach-card {
    padding: 26px 18px;
    display: block;
  }

  .service-icon {
    width: 64px;
    height: 64px;
  }

  .service-title {
    font-size: var(--fs-18);
  }

  .service-btn {
    width: auto;
    max-width: none;
  }
}
.modal .booking-form,
.modal .booking-form *,
.modal .step-3-scroll,
.modal .dropdown-options {
  scrollbar-width: thin;
  scrollbar-color: var(--global-color-secondary) transparent;
}

.modal .booking-form::-webkit-scrollbar,
.modal .booking-form *::-webkit-scrollbar,
.modal .step-3-scroll::-webkit-scrollbar,
.modal .dropdown-options::-webkit-scrollbar {
  width: 2px;
  height: 2px;
}

.modal .booking-form::-webkit-scrollbar-track,
.modal .booking-form *::-webkit-scrollbar-track,
.modal .step-3-scroll::-webkit-scrollbar-track,
.modal .dropdown-options::-webkit-scrollbar-track {
  background: transparent;
}

.modal .booking-form::-webkit-scrollbar-thumb,
.modal .booking-form *::-webkit-scrollbar-thumb,
.modal .step-3-scroll::-webkit-scrollbar-thumb,
.modal .dropdown-options::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 20px;
}