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';

    &: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;
      }
    }
}


.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;
}

.section-overview .inner p.hint {
  font-style: normal;
  font-weight: 300;
  font-size: 18px;
  line-height: 155%;
  color: #5F6368;
  margin: 0;
}

/* 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: 60px 24px 0px 24px;
  }

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

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

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

  .section-overview .inner h2 {
    font-size: 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: 8px;
  }

  /* 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 16px;
      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: 88px;
        overflow: auto;
        left: 0;
        right: 0;
        box-sizing: border-box;
        padding: 8px 16px 16px 16px;
        margin: 0;
      }
  }

  .modal-close {
    top: 28px;
    right: 16px;
  }
}