@media only screen and (max-width: 576px) {
  section {
    padding: 1rem;
  }
}

.scrollToTop-btn {
  display: none;
}

button:hover {
  cursor: pointer;
}

/*Contact Section*/
.form-section {
  /* padding-top: 2rem; */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-section-title {
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: normal;
}

.form-section-subtitle {
  margin-bottom: 1.5rem;
  margin-top: -1rem;
  text-align: center;
  font-weight: normal;
}

.form-section .classes {
  max-width: 850px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 1rem;
  padding-bottom: 2rem;
}

.class-item {
  box-sizing: border-box;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  cursor: pointer;
  flex: 0 1 calc(100% / 3 - 2rem);
}

@media only screen and (max-width: 768px) {
  .form-section .classes {
    flex-direction: row;
    justify-content: center;
  }

  .class-item {
    flex: 0 0 calc(50% - 1rem); /* Adjust for 2 items per row */
    min-width: 0;
  }
}

.class-item .class-text {
  white-space: nowrap;
}

.class-item.highlight .class-img img {
  opacity: 100%;
  box-shadow: 2px 2px 5px 2px rgba(0, 0, 0, 0.25);
  -webkit-box-shadow: 2px 2px 5px 2px rgba(0, 0, 0, 0.25);
  -moz-box-shadow: 2px 2px 5px 2px rgba(0, 0, 0, 0.25);
}

.class-item.highlight .class-text {
  opacity: 100%;
}

.class-img {
  width: 100%;
  z-index: -1;
}

.class-img img {
  width: 100%;
  opacity: 50%;
  border-radius: 5px;
}

.class-text {
  opacity: 0.5;
  text-align: center;
}

@media only screen and (max-width: 768px) {
  .class-text h2 {
    font-size: 1.25rem;
    white-space: nowrap;
  }

  .class-text em {
    font-size: 1rem;
  }
}

#suffix label {
  white-space: nowrap;
}

.paymentText {
  text-align: center;
  grid-column: 1 / 3;
  text-align-last: unset;
}

.form-section #detailsSect {
  max-width: 650px;
  width: 100%;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

#phoneSect {
  display: grid;
  grid-template-columns: 1fr 4fr;
  gap: 1rem;
}

#locSect {
  max-width: 100%;
  padding-top: 2rem;
}

#selectedDate {
  margin-bottom: 0;
}

#timeSect {
  margin-top: 1rem;
}

#timeSect div p.ignoreDefaultPTag {
  text-align: center;
}

#selectedPvtTime + .flatpickr-mobile {
  width: 100%;
  margin-top: 0.375rem;
  padding: 0.8rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
}

.form-section .location {
  max-width: 650px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 2rem;
}

.location-subtitle {
  text-align: center;
}

.location-subtitle:not(:first-of-type) {
  margin-top: 12px;
}

.location-item {
  border-radius: 5px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  background-color: white;
  border: 2px solid lightgrey;
  cursor: pointer;
}

.location-item.highlight {
  box-shadow: 2px 2px 5px 2px rgba(0, 0, 0, 0.25);
  -webkit-box-shadow: 2px 2px 5px 2px rgba(0, 0, 0, 0.25);
  -moz-box-shadow: 2px 2px 5px 2px rgba(0, 0, 0, 0.25);
}

.location-item.dull {
  opacity: 0.5;
}

.location-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  gap: 0.5rem;
  flex-grow: 1;
}

.form-section #scheduleSect,
.form-section #pvtScheduleSect {
  max-width: 650px;
  width: 100%;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.contact-box {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-box a {
  text-decoration: none;
  color: #666362;
}

.contact-box a i {
  margin-right: 0.25rem;
}

.flatpickr-day.prevMonthDay {
  color: #393939;
}
.flatpickr-day.prevMonthDay.flatpickr-disabled {
  color: rgba(57, 57, 57, 0.1);
}
.flatpickr-day.nextMonthDay {
  color: #393939;
}
.flatpickr-day.nextMonthDay.flatpickr-disabled {
  color: rgba(57, 57, 57, 0.1);
}

#agreementSect {
  max-width: 650px;
  width: 100%;
  padding-bottom: 2rem;
}

#agreementSect .agreements {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#agreementChkBoxSect,
.chkboxs:not(.hide) {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chkboxs.hide {
  display: none;
}

#agreementChkBox,
.chkboxs input[type="checkbox"] {
  height: 1rem;
  width: 1rem;
  accent-color: #666362;
}

.res-msg p {
  text-align: center;
  text-align-last: unset;
}

.hidden {
  display: none;
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 0.375rem;
  margin-bottom: 1rem;
  resize: vertical;
}

@media only screen and (min-width: 1024px) {
  form {
    padding: 0rem 4rem;
  }

  .location-item {
    display: flex;
    justify-content: center;
    height: 25vh;
    max-height: 200px;
    flex-direction: row;
  }

  .location-img {
    width: 40%;
    height: auto;
    object-fit: cover;
    flex-shrink: 0;
  }

  .top-section-ctc {
    padding-left: 6rem;
    padding-bottom: 0rem;
  }
}

@media only screen and (min-width: 1200px) {
  form {
    padding: 0rem 6rem;
  }

  .top-section-ctc {
    padding-left: 8rem;
    padding-bottom: 0rem;
  }
}

@media only screen and (min-width: 1600px) {
  form {
    padding: 0rem 14rem;
  }

  .top-section-ctc {
    padding-left: 16rem;
    padding-bottom: 0rem;
  }
}

#submitBtn {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

#submitBtn .btn {
  min-width: unset;
  width: unset;
}

#submitSpinner {
  position: absolute;
  left: 100%;
}

#submitBtn button:disabled,
#submitBtn button[disabled] {
  opacity: 0.5;
  pointer-events: none;
}

/* T&C modal styling */
#tncModal {
  height: 100vh;
  width: unset;
  align-items: end;
}

#tncModal .modal-content section {
  gap: 2rem;
  display: flex;
  flex-direction: column;
  padding: 0;
}

#tncModal .modal-content .content {
  line-height: 1.5rem;
}

#tncModal .modal-content .content h2 {
  margin-bottom: 1rem;
}

#tncModal .modal-content .content li {
  list-style-type: disc;
  margin-left: 1rem;
}
