/**
 * Public booking pages
 */
body {
    line-height: 1.5;
    overflow-x: hidden;
    max-width: 100%;
    background: #FDF6FE;
    font-weight: 200;
    color: #19204E;
    font-size: 14px;
    margin: 0;
    font-family: 'Rubik', sans-serif;
}

a {
  color: #4F64E9;
}

a:hover {
  text-decoration: underline;
}

a:focus,
a:focus-visible {
  outline: 2px solid #4f64e9;
  outline-offset: 2px;
}

h1 {
  font-family: 'Lexend Deca', sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  margin: 15px auto;
}

h2 {
  font-size: 24px;
  font-weight: 500;
  margin: 10px 0 30px;
  --tw-text-opacity: 1;
  color: rgb(25 32 78 / var(--tw-text-opacity));
  font-family: 'Lexend Deca', sans-serif;
  -webkit-font-smoothing: antialiased;
}

h3 {
  font-family: 'Lexend Deca', sans-serif;
  font-weight: 500;
  font-size: 18px;
  margin: 10px auto;
  -webkit-font-smoothing: antialiased;
}

h4 {
  font-family: 'Albert Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #29347D;
  margin: 20px auto 15px;
  -webkit-font-smoothing: antialiased;
}

.flex {
  display: flex;
}

.flex-row {
  flex-direction: row;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.w-full {
  width: 100%;
}
.basis-1\/3 {
  flex-basis: 33.333333%;
}
.basis-2\/3 {
  flex-basis: 66.666667%;
}
.gap-y-4 {
  row-gap: 1rem;
}
.gap-x-4 {
  column-gap: 1rem;
}

/* Layout */
.booking-page {
    background: #F2ECF3;
 }
.booking-container {
    background-color: #FDF6FE; 
    min-height: 100vh;
    width: auto;
    max-width: 1100px;
    overflow: hidden;
}

.rounded-box {
    border-radius: 8px;
    background-color: #FDF6FE;
    border: 1px solid #EFE8F2;
    padding: 20px 24px;
    text-align: left;
    color: #19204E;
    position: relative;
    margin-bottom: 10px;
  }
  
  .rounded-box h3 {
    margin: 0;
    font-size: 20px;
  }


.booking-header {
    text-align: center;
    font-size: 18px;
    font-weight: 400;
    margin: 30px 0;
}

.booking-org-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 10px;
    vertical-align: middle;
    background-color: #e0e0e0;
}

.booking-org-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.booking-event-attribute {
    font-size: 16px;
    line-height: 1.8;
}

.booking-event-details {
    border-bottom: 1px solid #EFE8F2;
    padding: 15px 20px;
}

.booking-event-details h1 {
    margin-bottom: 5px;
}

.booking-slot-row {
    font-size: 14px;
    font-weight: 300;
    border-width: 0;
    border-bottom-width: 1px;
    margin-bottom: 0;
}
.booking-event-description {
    font-size: 16px;
    line-height: 1.6;
    margin-top: 20px;
}

.btn-third {
    --tw-bg-opacity: 1;
    background-color: rgb(72 96 248 / var(--tw-bg-opacity));
    --tw-text-opacity: 1;
    color: rgb(253 246 254 / var(--tw-text-opacity));
    border-radius: 9999px;
    padding: 8px 25px;
    font-size: 14px;
    font-family: Albert Sans, sans-serif;
    font-weight: 300;
    display: inline-block;
    -webkit-font-smoothing: initial;
    line-height: initial;
    text-decoration: none;
}
.btn-third.disabled {
    background-color: #A8A2AB;
    cursor: not-allowed;
    pointer-events: none;
}
.btn-third:hover:not(.disabled) {
    background-color: #19204E;
    text-decoration: none;
}
.btn-third:focus,
.btn-third:focus-visible {
    outline: 2px solid #4f64e9;
    outline-offset: 2px;
}
.booking-slot-row .btn-third {
  min-width: 55px;
  text-align: center;
  padding: 8px 12px;
}
.status-dot {
    min-width: 8px;
    min-height: 8px;
    border-radius: 50%;
    background-color: #A8A2AB;
}
.status-dot.available {
    background-color: #81E187;
}
.status-dot.unavailable {
    background-color: #F96F6F;
}
.booking-event-meta-item {
    line-height: 2;
    vertical-align: middle;
    padding-right: 20px;
}
.booking-event-meta-icon {
    font-size: 18px;
}
.booking-slot-group-date {
    flex-basis: 30%;
}
.booking-slot-time {
    flex-basis: 20%;
}

label {
    --tw-text-opacity: 1;
    color: rgb(25 32 78 / var(--tw-text-opacity));
    font-weight: 450;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
}
.required {
    color: #F84848;
}
input[type="text"],
input[type="email"],
input[type="date"],
textarea,
.booking-card-element {
    padding: 10px 20px;
    border: 1px solid #EFE8F2;
    border-radius: 5px;
    width: 100%;
    max-width: 485px;
    background: transparent;
    font-size: 16px;
    font-weight: 300;
    -webkit-font-smoothing: initial;
    line-height: initial;
    color: #19204E;
    font-family: 'Rubik', sans-serif;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
textarea:focus,
.booking-card-element:focus,
input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
input[type="date"]:focus-visible,
textarea:focus-visible,
.booking-card-element:focus-visible {
    outline: 2px solid #4f64e9;
    outline-offset: 2px;
    border-color: #4f64e9;
    box-shadow: 0 0 0 3px rgba(79, 100, 233, 0.18);
}
textarea {
    min-height: 100px;
}
.form-item {
    margin-bottom: 20px;
}
input[type="checkbox"] {
    background: #EFE8F2;
    width: auto;
    float: left;
    padding: 10px;
    margin-right: 10px;
    -webkit-appearance: none;
    appearance: none;
  }
  
  input[type="checkbox"]:focus,
  input[type="checkbox"]:focus-visible {
    outline: 2px solid #4f64e9;
    outline-offset: 2px;
  }
  
input[type="checkbox"]:checked {
    background-image: url("/img/check.svg");
    background-repeat: no-repeat;
    background-position: 50% 50%;
}
.form-item.error input,
.form-item.error textarea,
.form-item.error select,
.form-item.error input[type="email"] {
  border: 1px solid #F84848;
  color: #F84848;
}

.form-item.error label {
  color: #F84848;
}

.btn {
    border-radius: 9999px;
    border: none;
    --tw-bg-opacity: 1;
    background-color: rgb(183 235 111 / var(--tw-bg-opacity));
    --tw-text-opacity: 1;
    color: rgb(25 32 78 / var(--tw-text-opacity));
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 60px;
    padding-right: 60px;
    font-weight: 700;
    font-family: Albert Sans, sans-serif;
    margin-top: 20px;
    margin-bottom: 25px;
    font-size: 14px;
    display: inline-block;
  }
  
.btn:hover {
    background: #AEE069;
    text-decoration: none;
}

.btn:focus,
.btn:focus-visible {
    outline: 2px solid #4f64e9;
    outline-offset: 2px;
}

/* Booking pay button loading spinner */
.booking-submit-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.booking-btn-spinner {
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  border: 2px solid rgba(25, 32, 78, 0.25);
  border-top-color: rgba(25, 32, 78, 0.9);
  display: none;
  animation: booking-spin 0.8s linear infinite;
}

.booking-btn-spinner.is-loading {
  display: inline-block;
}

@keyframes booking-spin {
  to { transform: rotate(360deg); }
}
.booking-form-terms-checkbox-item {
    font-weight: 200;
    line-height: 1.6;
}
.booking-form-errors {
  position: relative;
  margin: 5px auto 40px;
  word-wrap: break-word !important;
  padding: 20px;
  background-color: #F84848;
  color: #FDF6FE;
}

/* Booking event month navigation */
.booking-event-slots-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 10px;
}

.booking-event-slots-header-row .booking-event-slots-header {
  margin: 0 8px;
}

.booking-month-nav-btn img {
  width: 28px;
  height: 28px;
  display: block;
}

.booking-event-empty {
  font-size: 0.95rem;
  color: #4F4A63;
  padding: 8px 0;
}
/* Booking payment + confirmation */
.booking-card-errors {
  color: #F84848;
  font-size: 13px;
  min-height: 18px;
  margin-bottom: 12px;
}
.booking-confirmed-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}
.booking-confirmed-card {
  padding: 40px 32px 48px;
  max-width: 640px;
  width: 100%;
  text-align: center;
}
.booking-confirmed-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 9999px;
  background: #AEE069;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.booking-confirmed-icon {
  color: #1D293F;
  font-size: 32px;
}
.booking-confirmed-title {
  font-family: "Lexend Deca", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #1D293F;
  margin-bottom: 12px;
}
.booking-confirmed-subtitle {
  font-size: 15px;
  color: #5A6175;
  margin-bottom: 24px;
}
.booking-confirmed-policy {
  font-size: 14px;
  color: #3A3F56;
  max-width: 520px;
  margin: 0 auto;
}
.booking-confirmed-policy strong {
  font-weight: 600;
}
.booking-payment-layout {
  max-width: 485px;
  margin: 0 auto;
  text-align: center;
}
.booking-payment-details-section {
  border-bottom: 1px solid #EFE8F2;
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.booking-form-section {
  padding: 0 20px;
}

/* -----  Tablet styles -------------------- */
@media (min-width: 768px) {
  .booking-container {
    margin: 3% auto;
    border-radius: 8px;
    padding: 24px; 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
  .booking-event-details {
    border-bottom: none;
    border-right: 1px solid #EFE8F2;
    padding: 0 20px 0 0;
  }
  .booking-event-slots-scroll {
    max-height: calc(100vh - 200px); /* Adjust offset as needed */
    overflow-y: auto;
  }
  .booking-event-slots-section,
  .booking-form-section {
    padding: 0 0 0 20px;
  }
  .booking-event-slots-header-row {
    padding: 0;
  }
  .md\:flex {
    display: flex;
  }
  .md\:justify-between {
    justify-content: space-between;
  }
  .md\:grid {
    display: grid;
  }
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }  
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .md\:w-2\/6 {
    width: 33.333333%;
  }

  .md\:basis-1\/4 {
    flex-basis: 25%;
  }

  .md\:basis-3\/4 {
    flex-basis: 75%;
  }
  .md\:gap-x-4 {
    column-gap: 1rem;
  }
  .md\:gap-y-4 {
    row-gap: 1rem;
  }

  .md\:flex-row {
    flex-direction: row;
    justify-content: space-between;
  }
  .md\:flex-col {
    flex-direction: column;
  }
  .md\:items-center {
    align-items: center;
  }
  .booking-slot-row {
    font-size: 18px;
    margin-bottom: 10px;
    border-width: 1px;
  }
  .booking-slot-row .btn-third {
    padding: 8px 20px;
  }
  .status-dot {
    min-width: 10px;
    min-height: 10px;
  }
}