@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

.container {
  padding: 40px;
  max-width: 720px;
  margin: 0 auto;
  font-family: "Roboto", sans-serif;
}
form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 20px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.full-width {
  grid-column: 1 / -1;
}
.center-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-field--day,
.form-field--month {
  width: 50px;
}

.form-field--radio-group {
  display: flex;
  flex-direction: column;
  gap: 4px; 
  margin-top: 8px;
}

.form-field--radio {
  display: flex;
  justify-content: start;
  align-items: center;
}
.form-field--radio input[type=radio] {
  width: 13px !important;
  margin-right: 8px;
}

.form-field--year {
  width: 70px;
}

.form-field--email,
.form-field--privacy-policy,
.form-field--recaptcha {
  grid-column: 1 / -1;
}
.form-field--checkbox {
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
}
.description {
  font-size: 11px;
  color: #516383de;
}

textarea {
  font-family: inherit;
}

select,
textarea,
input:not(input[type="submit"]):not(input[type="checkbox"]):not(
    input[type="file"]
  ) {
  padding: 9px 10px;
  font-size: 16px;
  border: 1px solid #959494;
  border-radius: 3px;
  width: 100%;
  box-sizing: border-box;
  background-color: #f5f8fa;
}
input:not(input[type="submit"]):focus {
  border-color: #005fcc;
}
.has-error {
  border-color: #e51520 !important;
}
button[type="submit"] {
  width: auto; 
  background: #0d2ea0;
  border-color: #0d2ea0;
  color: #ffffff;
  font-family: helvetica;
  line-height: 12px;
  font-size: 12px;
  padding: 12px 24px;
  display: inline-block; 
  font-weight: 700;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  height: 42px;
  min-width: 88.64px;
}
label {
  font-size: 13px;
}
.label-subtitle {
  font-size: 11px;
  color: #7C98B6; 
}
.required::after {
  font-size: 13px;
  margin-left: 4px;
  content: "*";
  color: #e51520;
}
p {
  line-height: 24px;
  font-size: 14px;
  color: rgb(51, 71, 91);
}
.g-recaptcha {
  grid-column: 1 / -1;
}
.form-error {
  color: #e51520;
  font-weight: 400;
  font-size: 13px;
  display: none;
}
.form-error.active {
  display: block;
}
.cols-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px 20px;
}
.font-color-blue {
  color: #1815b5;
}
.font-13 {
  font-size: 13px;
}
.font-14 {
  font-size: 14px;
}
.font-11 {
  font-size: 11px;
}
.form-field--date {
  display: flex;
  align-items: center;
  gap: 4px;
}
.font-bold {
  font-weight: bold;
}
.font-color-red {
  color: red;
}
.font-color-dark-blue {
  color: #33475b;
}
.background-red {
  background-color: #ED4F24 !important;
}
.font-color-white {
  color: white;
}
@media (max-width: 500px) {
  .container {
    padding: 20px;
  }
  .cols-3 {
   grid-template-columns: 1fr;
  }
  form {
    grid-template-columns: 1fr;
    gap: 15px 0;
  }
  .g-recaptcha div {
    width: 100px !important;
  }
  .g-recaptcha {
    transform: scale(0.77);
    transform-origin: 0 0;
  }
}

.spinner {
  border: 2px solid #f3f3f3; /* Light grey */
  border-top: 2px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 14px;
  height: 14px;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px; /* Space between spinner and text */
}

.af-spinner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    right: 5px;
    top: 25px;
    display: none;
  }

  .af-spinner.loading {
    display: block;
  }


  .af-check {
    position: absolute;
    width: 20px;
    height: 20px;
    right: 5px;
    top: 29px;
    display: none;
  }

  .af-cross {
    position: absolute;
    width: 20px;
    height: 20px;
    right: 5px;
    top: 28px;
    display: none;
  }

  .af-active {
    display: block;
  }

  .email-container {
    position: relative;
  }

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.form-field--submit:disabled {
  cursor: not-allowed;
}

.max-width-400 {
  max-width: 400px;
}

.cols-1 {
  grid-template-columns: 1fr;
}