/* Registration form — official style aligned with site palette */
.lead-form {
  max-width: 480px;
  width: 100%;
  margin: 20px auto 0;
  padding: 28px 24px 24px;
  background: var(--bg-elevated, #ffffff);
  border: 1px solid var(--border, #d0d0d0);
  border-radius: 2px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: 'TheSans', system-ui, -apple-system, sans-serif;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.form-group:last-of-type {
  margin-bottom: 20px;
}

.form-group label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  display: none !important;
}

.form-input {
  height: 58px;
  padding: 0 18px;
  font-size: 18px;
  font-family: inherit;
  color: var(--text, #1a1a1a);
  background: var(--bg-elevated, #ffffff);
  border: 1px solid #bdd7d2;
  border-radius: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-input::placeholder {
  color: #929aaa;
  opacity: 1;
}

.form-input:focus {
  border-color: #7fb9ad;
  box-shadow: 0 0 0 3px rgba(127, 185, 173, 0.18);
  outline: none;
}

.input-error {
  border-color: var(--urgency, #c44a4a) !important;
  box-shadow: 0 0 0 3px rgba(196, 74, 74, 0.12) !important;
}

.form-error {
  color: var(--urgency, #c44a4a);
  font-size: 12px;
  margin-top: 4px;
  min-height: 16px;
}

.phone-row {
  width: 100%;
}

.phone-row .iti {
  position: relative;
  height: 58px;
  overflow: hidden;
  background: var(--bg-elevated, #ffffff);
  border: 1px solid #bdd7d2;
  border-radius: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.phone-row .iti:focus-within {
  border-color: #7fb9ad;
  box-shadow: 0 0 0 3px rgba(127, 185, 173, 0.18);
}

.form-submit {
  height: 48px;
  width: 100%;
  background: var(--accent, #0ba6cd);
  color: #ffffff;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background-color 0.2s;
}

.form-submit:hover {
  background: var(--interviewer, #0a7ea4);
}

.form-submit:active {
  background: #086f8f;
}

.form-submit:focus-visible {
  outline: 2px solid var(--accent, #0ba6cd);
  outline-offset: 2px;
}

/* intl-tel-input */
.iti {
  width: 100%;
  display: block;
}

.iti__flag-container {
  height: 100%;
  border-right: 1px solid #bdd7d2;
  background: transparent !important;
  border-radius: 0;
}

.iti__selected-flag {
  min-width: 104px;
  height: 100%;
  background: transparent !important;
  border-radius: 0;
  padding: 0 12px;
  color: var(--text, #1a1a1a);
  gap: 8px;
}

.iti__selected-flag:hover,
.iti__selected-flag:focus {
  background: var(--bg-elevated, #ffffff) !important;
}

.iti__selected-dial-code {
  color: var(--text, #1a1a1a);
}

.iti--allow-dropdown .form-input,
.iti--allow-dropdown input[type="tel"] {
  padding-left: 118px;
}

.phone-row .iti input[type="tel"] {
  height: 56px;
  padding-left: 118px !important;
  padding-right: 14px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.iti__country-list {
  border: 1px solid var(--border, #d0d0d0);
  border-radius: 2px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  font-family: inherit;
}

.iti__country.iti__highlight {
  background: rgba(11, 166, 205, 0.1);
}

.iti__dial-code {
  color: var(--text-muted, #555555);
}

@media (max-width: 480px) {
  .lead-form {
    padding: 20px 16px 18px;
  }

  .form-input {
    font-size: 16px;
  }

  .phone-input,
  .phone-input::placeholder {
    font-size: 15px;
  }

  .iti--allow-dropdown .form-input,
  .iti--allow-dropdown input[type="tel"] {
    padding-left: 100px;
  }

  .iti__selected-flag {
    min-width: 90px;
    padding: 0 9px;
    gap: 7px;
  }

  .phone-row .iti input[type="tel"] {
    padding-left: 100px !important;
  }
}
