.footer {
  background: #e7e7e7;
  border-radius: 15px;
  margin: 0 auto;
  max-width: 100%;
  padding: 25px 35px;
  width: var(--max-form-width);
}

  .footer p {
    color: #575757;
    font-size: 0.75rem;
    font-style: italic;
  }

  .footer p:last-child {
      margin-bottom: 0;
    }

.logo {
  margin: 50px auto 0;
  max-width: 100%;
  width: var(--max-form-width);
}
  .logo img {
    display: block;
    height: auto;
    margin: auto;
    max-width: 500px;
    width: 100%;
  }

:root {
  --max-form-width: 750px;
}

body {
  background-color: #ebebeb;
  padding: 0 20px 50px;
}

body:has(.clover-footer) .nyap-form {
  margin-bottom: 0;
  border-radius: 15px 15px 0 0;
  /* min-height: calc(100dvh - 138px); */
}


.clover-footer {
  border-radius: 0 0 15px 15px !important;
  margin: auto;
  max-width: var(--max-form-width);
}


.nyap-form {
  --field-pb: 1rem;

  background-color: #f8f8f8;
  border-radius: 15px;
  /* min-height: calc(100dvh - 100px); */
  margin: 50px auto;
  max-width: var(--max-form-width);
  padding: 50px 35px;
}

.nyap-form button:not(:disabled) .loading {
  display: none;
}

input[readonly],
textarea[readonly] {
  background-color: var(--bs-secondary-bg);
}

input[readonly]:active,
  input[readonly]:focus,
  textarea[readonly]:active,
  textarea[readonly]:focus {
    background-color: var(--bs-secondary-bg);
  }

.nyap-form form {
  padding: 1px 0 5px;
}

.nyap-form input,
.nyap-form select,
.nyap-form label {
  font-size: 17px;
}

.nyap-form h1 {
  text-align: center;
}

.nyap-form iframe {
  height: 20px;
}

.nyap-form .button-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1em;
}

.nyap-form .cf-turnstile {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.nyap-form .clover-field {
  position: relative;
}

.nyap-form .clover-field:has(.has-error) {
  margin-bottom: 7px;
}

.nyap-form .clover-fields {
  background: #f2f2f2;
  padding: 20px 20px 0;
  border-radius: 10px;
}

.nyap-form .clover-field {
  height: calc(55px + var(--field-pb));
  padding-bottom: var(--field-pb);
}

.nyap-form .clover-field-error {
  bottom: 0;
  bottom: 0;
  color: red;
  font-family: roboto;
  font-size: 13px;
  font-style: italic;
  font-weight: bold;
  position: absolute;
}

.nyap-form .errors {
  display: none;
}

.nyap-form .errors:not(:empty) {
  display: block;
}

.nyap-form .form-rows {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.nyap-form .form-label {
  font-weight: bold;
  font-size: 12px;
  margin-bottom: 0.25em;
}

.nyap-form .required {
  color: red;
}

@media (min-width: 768px) {
  .nyap-form .button-container {
    display: flex;
    justify-content: space-between;
  }

  .nyap-form .button-container button {
    width: -moz-max-content;
    width: max-content;
  }
}

.p-success .logo {
    margin-bottom: 25px;
  }

    .p-success .logo img {
      display: block;
      margin: auto;
      max-width: 75%;
      width: 480px;
    }
  .p-success .tr-amount {
    font-weight: bold;
    font-size: 35px;
  }
  .p-success .tr-details {
    text-align: center;
  }
  .p-success .tr-footer {
    color: gray;
    font-size: 0.85rem;
    margin: 35px auto 0;
    max-width: 100%;
    width: 450px;
    text-align: center;
  }
  .p-success .tr-footer a {
      color: gray;
      text-underline-offset: 0.25em;
    }
  .p-success .tr-footer a:visited {
        color: currentColor;
      }
  .p-success .tr-footer p:last-child {
        margin-bottom: 0;
      }
  .p-success .tr-heading {
    margin-bottom: 20px;
  }
  .p-success .tr-highlight {
    background: #ebebeb;
    padding: 25px 0;
  }
  .p-success .tr-ref {
    font-size: 0.8rem;
  }



