html,
body {
  margin: 0;
  font-family: "Open Sans", sans-serif;
  color: #3e3e3e;
}

.section-overview {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  z-index: 3;
  position: relative;
  font-family: "Open Sans";
  margin-top: 30px;
  margin-bottom: 30px;

  &:has(.modal-overlay[hidden]) {
    z-index: 1;
  }
}

.section-overview .inner {
  box-sizing: border-box;
  padding: 80px 0 60px 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 100%;
  max-width: 1040px;

  h1 {
    font-style: normal;
    font-weight: 700;
    font-size: 40px;
    line-height: 122%;
    color: #3e3e3e;
    margin: 0;

    span {
      background: linear-gradient(134.71deg, #169ff2 -0.5%, #5c0dce 98.45%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      text-fill-color: transparent;
    }
  }

  p {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 160%;
    color: #3f4650;
    margin-bottom: 40px;

    &.footnote {
      margin-top: 24px;
      font-size: 15px;
      color: #5f6368;
    }
  }
  .modal #modal-title {
    margin: 0 0 6px;
    font-size: 40px;
    color: #3e3e3e;
    margin: 0;
    font-weight: 700;
    padding-right: 30px;

    span {
      background: linear-gradient(134.71deg, #169ff2 -0.5%, #5c0dce 98.45%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      text-fill-color: transparent;
    }
  }

  p.hint {
    font-style: normal;
    font-weight: 600;
    font-size: 15px;
    line-height: 155%;
    color: #5f6368;
    margin: 0;
    margin-top: 8px;
  }
}

.day-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  border-bottom: 2px solid #169ff2;
  padding-bottom: 24px;
}

.day-tab {
  border: 1px solid #868a8f;
  background: transparent;
  color: #3e3e3e;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 400;
  transition: all 0.15s ease;
  min-height: 44px; /* comfortable tap target */
}

.day-tab:hover {
  border-color: #169ff2;
  background: #0078ae;
  color: #fff;
}

.day-tab.active {
  background: #169ff2;
  border-color: #169ff2;
  color: #fff;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
}

.slot-btn {
  border: 1px solid #868a8f;
  background: #fff;
  color: #3e3e3e;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  transition: all 0.15s ease;
  min-height: 44px; /* comfortable tap target */
}

.slot-btn:hover {
  background-color: #c7edff;
  border-color: #169ff2;
}


  p.hint {
    font-style: normal;
    font-weight: 600;
    font-size: 15px;
    line-height: 155%;
    color: #5f6368;
    margin: 0;
    margin-top: 8px;
  }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(2px);
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  width: 100%;
  max-width: 800px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);

  #booking-form {
    padding: 0;
    margin: 24px 0 0 0;
  }
}

.modal-close {
  position: absolute;
  top: 32px;
  right: 24px;
  background: none;
  border: none;
  font-size: 22px;
  color: #38404a;
  cursor: pointer;
  line-height: 1;
  padding: 8px; /* bigger tap target without changing visual size much */
  margin: -8px;
}

.modal h2 {
  margin: 0 0 6px;
  font-size: 40px;
  color: #3e3e3e;
  margin: 0;

  span {
    background: linear-gradient(134.71deg, #169ff2 -0.5%, #5c0dce 98.45%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
  }
}

#booking-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

#booking-form label {
  display: flex;
  flex-direction: column;
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 0.1px;
  color: #55545b;
}

#booking-form input {
  font-size: 16px; /* 16px+ prevents iOS Safari from auto-zooming on focus */
  font-weight: 400;
  outline: none;
  height: 48px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 8px 16px;
  background: #ffffff;
  /* border: 1px solid #55545B; */
  border: 1px solid #ccc;
  border-radius: 12px;
  margin-top: 8px;
}

#booking-form input:focus {
  border-color: #03a9f4;
}

#booking-form input::placeholder {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  display: flex;
  align-items: center;
  color: #b7b6bc;
}

.buttons {
  display: flex;
  flex-direction: row;
  width: 100%;
  gap: 16px;
  margin-top: 12px;
}

.btn-secondary {
  background-color: #fff;
  color: #fff;
  border: none;
  padding: 12px;
  border: 1px solid #03a9f4;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  height: 48px;
  width: 120px;
  text-align: center;
  color: #03a9f4;
}
/* 
.btn-secondary:hover {

  border-color: #169FF2;
} */

.btn-primary {
  background: #03a9f4;
  color: #fff;
  border: 2px solid #03a9f4;
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  height: 48px;
  width: 100%;
}

.btn-primary:hover {
  /* background: var(--primary-dark); */
}

.form-error {
  color: #d64545;
  font-size: 13px;
  margin: 0;
}

#thankyou-view {
  > p {
    margin-bottom: 12px;
  }
}

.section-overview .inner .thankyou-details {
  background: #def2fe;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 40px 0 !important;
}

@media (max-width: 1024px) {
  .section-overview .inner {
    padding: 80px 24px 60px 24px;
  }
}


/* ---------------------------------------------------------------- */
/* Mobile layout                                                     */
/* ---------------------------------------------------------------- */
@media (max-width: 600px) {
  .section-overview .inner {
    padding: 30px 24px 0px 24px;
  }

  .section-overview .inner .booking-label {
    font-size: 24px;
  }

  .section-overview .inner p {
    font-size: 15px;
    margin-bottom: 40px;

    &.footnote {
      margin-top: 24px;
      color: #5f6368;
    }
  }

  .section-overview .inner .modal #modal-title{
    font-size: 24px;
  }
  .modal-close {
    top: 24px;
    right: 24px;
  }

  .day-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .day-tabs::-webkit-scrollbar {
    display: none;
  }

  .day-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 15px;
  }

  .slot-btn {
    font-size: 15px;
  }

  .slot-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
  }

  /* Modal becomes a full-screen sheet on small screens rather than a
     centered card, so the form has room to breathe and nothing gets
     clipped by the keyboard. */
  .modal-overlay {
    padding: 0;
    align-items: stretch;
  }

  .modal {
    top: 60px;
    width: 100%;
    border-radius: 24px 24px 0 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    /* overflow: auto; */
    max-height: initial;
    box-sizing: border-box;
    position: absolute;
    bottom: 0;

    #booking-form {
      position: absolute;
      bottom: 0;
      top: 130px;
      overflow: auto;
      left: 0;
      right: 0;
      box-sizing: border-box;
      padding: 8px 24px 24px 24px;
      margin: 0;
    }
  }

  .modal-close {
    top: 24px;
    right: 24px;
  }
}


@media (max-width: 340px) {
  .section-overview .inner {
    padding: 30px 24px 0px 24px;
  }

  .section-overview .inner .booking-label {
    font-size: 24px;
  }

  .section-overview .inner p {
    font-size: 15px;
    margin-bottom: 40px;

    &.footnote {
      margin-top: 24px;
      color: #5f6368;
    }
  }

  .section-overview .inner .modal #modal-title{
    font-size: 24px;
  }
}