/* Open Sans Font */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital@0;1&display=swap");

form * {
  font-family: "Open Sans";
}

.header-content {
  height: 50px;
}

.requiredIndicatorText {
  left: 0px;
  position: absolute;
  top: -30px;
}

.requiredIndicatorText p {
  color: #666666;
  font-size: 12px;
  margin: 0px;
  text-wrap: nowrap;
}

input.input-text::placeholder {
  color: #b3b3b3;
  text-transform: none;
}

input.input-text {
  text-transform: none;
}

.requiredField sup {
  color: #b11a1a;
}

.header-logo {
  width: 100%;
  height: 100%;
}

.inputAndError {
  position: relative;
}

.form-content {
  width: 50%;
  margin-inline: auto;
  margin-block: 15px;
}

.button-content {
  display: flex;
  justify-content: space-between;
}

.lyceum-button-content {
  display: flex;
  justify-content: space-between;
}

.select-checkboxes {
  display: grid;
  row-gap: 3px;
}

.form-type-btn {
  height: 100px;
  width: 100px;
  background-color: transparent;
  border: 5px solid rgba(128, 0, 128, 0.205);
  font-size: 16px;
  color: purple;
  cursor: pointer;
}

.input-content {
  margin-bottom: 5px;
  padding-block: 5px;
  position: relative;
}

.input-text {
  width: 100%;
  height: 20px;
  border: solid #c6c6c6 1px;
  border-radius: 5px;
}

.input-text.radio {
  border: none;
  margin-top: 20px;
}

.input-label {
  color: #555555;
  font-family: "Open Sans";
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}

.textarea-content {
  margin-bottom: 5px;
  padding-block: 5px;
}

.input-textarea {
  width: 100%;
  height: 80px;
  border: none;
  border-radius: 5px;
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
    rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
}

.dropdown-content {
  margin-bottom: 5px;
  padding-block: 5px;
}

.dropdown {
  background-color: #fff;
  border: solid #c6c6c6 1px;
  border-radius: 5px;
  height: 30px;
  margin-top: 10px;
  text-transform: none;
  white-space: normal;
  width: 100%;
  word-wrap: break-word;
}

.dropdown-content.hide {
  display: none;
}

.dropdown-content.show {
  display: block;
}

.submit-content {
  text-align: center;
  margin-bottom: 30px;
}

.submit-btn {
  width: 100px;
  height: 40px;
  margin-top: 5px;
  border: none;
  border-radius: 30px;
  background-color: #1766b0;
  color: white;
  font-weight: 600;
}

.submit-btn:hover {
  cursor: pointer;
}

.submit-btn:disabled {
  display: none;
}

.top-banner,
.assesment-page-button {
  width: 273px;
}

.top-banner img,
.assesment-page-button img {
  width: 100%;
  height: 100%;
}

.body-content {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: center;
  margin-block: 15px;
  min-height: calc(100dvh - 50px - 50px);
}

.input-text {
  margin-top: 5px;
}

.form-content {
  width: 60%;
  margin: 0;
}

.errorMessage {
  color: #b11a1a;
  font-size: 13px;
  margin-block: 5px 0px;
}

.captcha-wrapper {
  max-width: 250px;
  margin: auto;
  text-align: center;
}

.g-recaptcha {
  scale: 0.7;
  margin-left: -18%;
}

.bottom-banner {
  height: 50px;
}

.bottom-banner div {
  height: 50px;
}

.bottom-banner img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

@media only screen and (min-width: 480px) {
  .body-content {
    display: flex;
    flex-direction: column;
  }

  .form-content {
    margin-top: 35px;
  }

  .form-type-btn {
    height: 150px;
    width: 130px;
  }

  .input-text {
    width: 90%;
  }

  .input-textarea {
    width: 90%;
    height: 60px;
  }

  .dropdown {
    width: 90%;
  }

  .submit-btn {
    width: 120px;
    height: 35px;
  }

  .errorMessage {
    width: 100%;
  }
}

@media only screen and (min-width: 786px) {
  .form-content {
    width: 80%;
  }

  .button-content {
    justify-content: space-around;
  }

  .lyceum-button-content {
    justify-content: space-around;
  }

  .form-type-btn {
    height: 250px;
    width: 325px;
    font-size: 36px;
    border: 10px solid #800080;
  }

  .input-content {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    width: 95%;
  }

  .select-checkboxes {
    column-gap: 14px;
    grid-template-columns: 1fr 1fr 1fr;
    max-width: 50%;
    row-gap: 5px;
  }

  .select-checkboxes div {
    align-items: center;
    display: flex;
  }

  select#dd-4.dropdown {
    margin-left: 8px;
    width: 65%;
  }

  .input-label {
    width: 50%;
    font-weight: 600;
  }

  .textarea-content {
    width: 95%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .input-textarea {
    height: 60px;
  }

  .dropdown-content {
    width: 95%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
  }

  .dropdown-content.show {
    display: flex !important;
  }

  .input-label[for="dd-4"] {
    max-width: unset;
    width: 35%;
  }

  .dropdown.firstDDHeight {
    min-height: 30px;
  }

  .dropdown.thirdDDHeight {
    min-height: 30px;
  }

  .submit-btn {
    width: 140px;
    height: 30px;
  }

  .inputAndError {
    display: flex;
    justify-content: flex-end;
    width: 91%;
  }

  .inputAndError .input-text {
    width: 99%;
  }

  .errorMessage {
    bottom: -15px;
    left: 0px;
    margin: 0px;
    position: absolute;
  }

  .captcha-wrapper {
    margin-inline: 34%;
  }

  .errorMessage {
    width: 100%;
  }
}

@media only screen and (min-width: 1024px) {
  .requiredField sup {
    color: #b11a1a;
    font-size: 18px;
  }

  .requiredIndicatorText p {
    color: #666666;
    font-size: 14px;
    line-height: 26px;
    max-width: 935px;
    text-align: right;
  }

  .requiredIndicatorText {
    right: 0px;
    top: -30px;
  }

  .input-text {
    height: 37px;
    padding-left: 14px;
  }

  .dropdown {
    height: 37px;
    padding-left: 10px;
    width: 92%;
  }

  .input-content {
    height: 40px;
    margin-bottom: 35px;
    padding-block: 0px;
  }

  .submit-btn {
    height: 42px;
    margin-left: 100px;
    width: 200px;
  }

  .body-content {
    flex-direction: row;
    min-height: fit-content;
    padding-top: 30px;
    max-width: 1440px;
    margin: auto;
    min-height: calc(100dvh - 80px - 80px);
  }

  .top-banner {
    width: 500px;
  }

  .assesment-page-button {
    width: 300px;
  }

  .select-checkboxes {
    min-width: 65%;
  }

  select#dd-4.dropdown {
    margin-left: 0px;
    width: 90%;
  }

  .bottom-banner {
    height: 80px;

    div {
      height: 80px;
    }

    img {
      object-fit: cover;
      height: 100%;
      width: 100%;
    }
  }

  .header-logo {
    height: 80px;
  }

  .input-label[for="dd-4"] {
    max-width: unset;
    width: 50%;
  }

  .lyceum-button-content {
    justify-content: space-between;
  }

  .g-recaptcha {
    scale: 1;
    margin-left: 2px;
    margin-top: 20px;
  }

  .captcha-wrapper {
    margin-bottom: 32px;
  }

  .submit-content {
    margin-left: -17%;
  }

  .captcha-wrapper {
    margin-inline: 33%;
  }

  .inputAndError,
  .inputAndError .input-text {
    width: 95%;
  }
}

@media only screen and (min-width: 1200px) {
  .input-label[for="dd-4"] {
    width: 35%;
  }

  select#dd-4.dropdown {
    margin-left: 7px;
    width: 50%;
  }

  .submit-content {
    margin-left: -13%;
  }

  .inputAndError {
    max-width: 65%;
  }

  .inputAndError .input-text {
    width: 97%;
  }

  .submit-btn {
    margin-left: 50px;
  }
}

@media only screen and (min-width: 1400px) {
  .select-checkboxes div label {
    text-wrap: nowrap;
  }

  .submit-btn {
    margin-left: 0px;
  }

  select#dd-4.dropdown {
    margin-left: 0;
    width: 65%;
  }
}

.multiple-payments-remove,
.multiple-payments-add-more {
  background: #d9534f;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
  margin-top: 10px;
}

.multiple-payments-add-more {
  background: #1766b0;
}

.multiple-payments-add-more[disabled] {
  background: #555555;
}

.multiple-payments-student-number,
.multiple-payments-student-name,
.multiple-payments-student-dob {
  @media only screen and (min-width: 1024px) {
    width: 100%;
    margin-right: 20px;
  }
}

.multiple-payments-checkbox {
  width: 28px;
  height: 28px;
  margin-top: 10px;

  @media only screen and (min-width: 1024px) {
    margin-top: 0px;
    margin-right: 20px;
  }
}

.input-label.multiple-payments-checkbox-container {
  text-transform: unset;
  font-weight: 400;
}

.input-label.multiple-payments-checkbox-container b {
  font-weight: 700;
}

.multiplePaymentsContainer {
  @media only screen and (min-width: 1024px) {
    margin-top: 20px;
  }
}

.multiplePaymentsContainer .input-content .inputAndError.checkbox {
  @media only screen and (min-width: 768px) {
    width: 0;
  }
}

.multiplePaymentsContainer .input-content .inputAndError {
  @media only screen and (min-width: 768px) {
    width: 100%;
    max-width: unset;
  }
}

.multiplePaymentsContainer .input-content {
  @media only screen and (min-width: 768px) {
    height: auto;
    align-items: end;
  }
}

/* Installment Options Styling */
.installment-options-container,
.additional-fees-container {
  margin: 15px 0;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  background-color: #f9f9f9;
}

/* Installment Additional Fees Section */
.installment-additional-fees {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

/* Additional Fees Styling */
.additional-fees-title,
.additional-fees-total {
  font-weight: 700;
  margin-bottom: 15px;
  color: #555555;
  font-family: "Open Sans";
  font-size: 15px;
}

.additional-fees-total {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #e0e0e0;
  text-align: right;
  color: #1766b0;
  font-size: 16px;
  margin-bottom: 20px;
}

.base-fee-row {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #e0e0e0;
}

.base-fee-label {
  flex-grow: 1;
  font-size: 14px;
  font-weight: 600;
}

.base-fee-amount {
  font-weight: 600;
  color: #1766b0;
  min-width: 100px;
  text-align: right;
}

.additional-fee-option {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.additional-fee-checkbox {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.additional-fee-option label {
  flex-grow: 1;
  cursor: pointer;
  font-size: 14px;
}

.additional-fee-amount {
  font-weight: 600;
  color: #1766b0;
  min-width: 100px;
  text-align: right;
}

/* Installment Card Type Styling */
#installmentCardTypeContainer {
  margin-top: -10px;
  margin-bottom: 15px;
}

.installment-options-title {
  font-weight: 700;
  margin-bottom: 15px;
  color: #555555;
  font-family: "Open Sans";
  font-size: 15px;
}

.installment-option {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 5px 0;
}

.installment-checkbox,
.installment-radio {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.installment-option label {
  margin-right: 15px;
  flex-grow: 1;
  cursor: pointer;
  font-size: 14px;
  min-width: 120px;
}

.installment-count {
  width: 70px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #c6c6c6;
  border-radius: 4px;
  font-size: 14px;
  margin-right: 15px;
}

.installment-count-label {
  font-size: 12px;
  font-weight: 600;
  color: #555555;
  margin-right: 8px;
  white-space: nowrap;
  font-family: "Open Sans";
}

.installment-remark {
  width: 200px;
  height: 30px;
  padding: 4px 8px;
  border: 1px solid #c6c6c6;
  border-radius: 4px;
  font-size: 14px;
  margin-right: 15px;
  resize: none;
  font-family: "Open Sans";
}

/* Styling for input validation */
.installment-count:invalid {
  border: 1px solid #b11a1a;
  background-color: rgba(177, 26, 26, 0.05);
}

.installment-remark:disabled {
  background-color: #f5f5f5;
  color: #999;
}

.installment-count:disabled {
  background-color: #f5f5f5;
  color: #999;
}

/* Add a tooltip for max value */
.installment-count::-webkit-inner-spin-button {
  opacity: 1;
}

/* Removed installment-total styling as it's no longer used */

.installment-grand-total {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #e0e0e0;
  font-size: 16px;
  font-weight: bold;
  color: #1766b0;
  text-align: right;
}

@media only screen and (max-width: 786px) {
  .installment-option {
    flex-wrap: wrap;
  }

  .installment-checkbox,
  .installment-radio {
    margin-right: 8px;
  }

  .installment-remark {
    width: 100%;
    margin-top: 5px;
    margin-left: 28px;
    margin-right: 0;
  }

  .installment-count {
    margin-top: 5px;
    margin-left: 28px;
  }

  .installment-count-label {
    margin-top: 5px;
    margin-left: 28px;
    margin-right: 0;
    width: 100%;
    font-size: 11px;
  }

  .installment-total {
    width: 100%;
    margin-top: 5px;
    margin-left: 28px;
  }
}

@media only screen and (min-width: 1024px) {
  .installment-options-container {
    padding: 20px;
  }

  .installment-option {
    padding: 8px 0;
  }

  .installment-checkbox,
  .installment-radio {
    width: 20px;
    height: 20px;
  }

  .installment-remark {
    width: 250px;
    height: 37px;
  }

  .installment-count {
    width: 80px;
    height: 37px;
  }

  .installment-count-label {
    font-size: 13px;
    margin-right: 5px;
  }

  /* Removed installment-total styling as it's no longer used */

  .installment-grand-total {
    font-size: 18px;
    margin-top: 20px;
    padding-top: 15px;
  }
}
