.form-section { margin-block: 32px 40px; }
#page-form {
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid #e9bf8b;
  border-block-start: 5px solid #ef8700;
  border-radius: 16px;
  background: #fffcf8;
  box-shadow: 0 12px 36px rgb(77 49 12 / 9%);
  color: #24282c;
  font-family: Arial, sans-serif;
  text-align: left;
}
#page-form .signup-heading { margin-block-end: 24px; }
#page-form .signup-heading h2 {
  margin: 0 0 8px;
  color: #202428;
  font-size: clamp(26px, 5vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-align: left;
}
#page-form .signup-heading p { margin: 0; color: #535b63; font-size: 16px; line-height: 1.5; }
#page-form .aio-sdk-input-container { gap: 0; margin-block-end: 18px; }
#page-form label { display: block; margin: 0 0 7px; color: #30363c; text-align: left; font-size: 15px; font-weight: 600; line-height: 1.4; }
#page-form .aio-sdk-input {
  min-block-size: 52px;
  margin: 0;
  padding: 13px 15px;
  border: 1px solid #bfc8d1;
  border-radius: 8px;
  background: #fff;
  color: #20262c;
  font-family: inherit;
  font-size: 17px;
  line-height: 1.4;
  text-align: left;
  cursor: text;
}
#page-form .aio-sdk-input::placeholder { color: #6d7580; opacity: 1; }
#page-form .aio-sdk-input:focus { border-color: #245d9c; }
#page-form input[aria-invalid="true"] { border-color: #a52626; }
#page-form .signup-field-error { margin: 7px 0 0; text-align: left; color: #8d1d1d; font-size: 14px; line-height: 1.4; }
#page-form [hidden] { display: none !important; }
#page-form [type="submit"] {
  min-block-size: 54px;
  margin: 4px 0 0;
  padding: 14px 18px;
  border: 1px solid #cb7000;
  border-radius: 8px;
  background: #ef8700;
  color: #1e1b16;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  text-transform: none;
  box-shadow: 0 3px 0 #c66d00;
  animation: none;
  transition: background-color 120ms ease;
}
#page-form [type="submit"]:hover:not(:disabled) { background: #fa980f; filter: none; }
#page-form [type="submit"]:active:not(:disabled) { box-shadow: 0 1px 0 #c66d00; }
#page-form [type="submit"]:disabled { cursor: default; opacity: .7; }
#page-form[aria-busy="true"] [type="submit"] { cursor: wait; }
#page-form .signup-submit-wrap { position: relative; }
#page-form .signup-submit-spinner {
  display: none;
  position: absolute;
  inset-inline-end: 18px;
  inset-block-start: calc(50% - 9px);
  inline-size: 20px;
  block-size: 20px;
  box-sizing: border-box;
  border: 2px solid rgb(30 27 22 / 25%);
  border-block-start-color: #1e1b16;
  border-radius: 50%;
  pointer-events: none;
  animation: signup-form-spin 700ms linear infinite;
}
#page-form[aria-busy="true"] .signup-submit-spinner { display: block; }
#page-form[aria-busy="true"] [type="submit"] { padding-inline: 44px; }
#page-form[data-completed="true"] .signup-heading,
#page-form[data-completed="true"] .signup-fields { display: none; }
#page-form .signup-success { padding-block: 20px; text-align: center; }
#page-form .signup-success-icon {
  display: grid;
  place-items: center;
  inline-size: 64px;
  block-size: 64px;
  margin: 0 auto 20px;
  border: 1px solid #b6d6be;
  border-radius: 50%;
  background: #e9f4ec;
  color: #247142;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}
#page-form .signup-success h3 { margin: 0 0 12px; color: #202428; font-size: 26px; font-weight: 700; line-height: 1.25; }
#page-form .signup-success p { margin: 0; color: #3e4c43; font-size: 16px; line-height: 1.5; }
@keyframes signup-form-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  #page-form .signup-submit-spinner { animation: none; }
}
#page-form [data-local-status] { margin: 4px 0 0; padding: 12px; border: 1px solid #d4dce3; border-radius: 8px; background: #fff; color: #27323c; font-size: 15px; line-height: 1.5; }
#page-form :focus-visible { outline: 2px solid #245d9c; outline-offset: 2px; }
#page-form .signup-phone-hint { margin: 8px 0 0; text-align: left; font-size: 13px; line-height: 1.5; color: #525b65; }
#page-form .signup-phone-hint[data-phone-state="valid"] { color: #276545; }
#page-form .signup-phone-hint[data-phone-state="error"] { color: #8d1d1d; }
#page-form .signup-phone-field {
  display: flex;
  align-items: stretch;
  min-inline-size: 0;
  border: 1px solid #bfc8d1;
  border-radius: 8px;
  background: #fff;
}
#page-form .signup-phone-country {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 96px;
  gap: 9px;
  border-inline-end: 1px solid #d6dde3;
  border-radius: 7px 0 0 7px;
  background: #f3f5f7;
  color: #27323c;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  user-select: none;
}
#page-form .signup-hu-flag {
  display: block;
  flex: 0 0 24px;
  inline-size: 24px;
  block-size: 16px;
  border-radius: 2px;
  background: linear-gradient(to bottom, #ce2939 0 33.333%, #fff 33.333% 66.666%, #477050 66.666% 100%);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 12%);
}
#page-form .signup-phone-field input {
  flex: 1 1 0%;
  inline-size: 0;
  min-inline-size: 0;
  min-block-size: 50px;
  border: 0;
  border-radius: 0 7px 7px 0;
}
#page-form .signup-phone-field:focus-within { border-color: #245d9c; outline: 2px solid #245d9c; outline-offset: 2px; }
#page-form .signup-phone-field input:focus-visible { outline: 0; }
#page-form .signup-phone-field:has(input[aria-invalid="true"]) { border-color: #a52626; }
@media (max-width: 380px) {
  #page-form { padding: 20px 16px; }
  #page-form .signup-phone-country { flex-basis: 86px; gap: 7px; font-size: 16px; }
  #page-form .signup-phone-field input { padding-inline: 10px; font-size: 16px; }
}
