.formCard {
  margin-top: 24px;
  border-radius: var(--radius);
  padding: 16px;
}

.form {
  width: 100%;
}

.fieldGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 13px;
  font-weight: 600;
  color: #d9d9de;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-size: 16px;
  padding: 12px 13px;
  font-family: inherit;
  transition: border-color var(--speed-fast) ease, box-shadow var(--speed-fast) ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238f8f99' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.field select option,
.countryCode option {
  background: #1a1a1e;
  color: #ffffff;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(var(--orange-rgb), 0.65);
  box-shadow: 0 0 0 3px rgba(var(--orange-rgb), 0.2);
  outline: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-tertiary);
}

/* Phone row: country code + number */
.phoneRow {
  display: flex;
  gap: 8px;
}

.countryCode {
  width: 100%;
  max-width: 120px;
  flex-shrink: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  font-size: 16px;
  padding: 12px 10px;
  font-family: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238f8f99' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  transition: border-color var(--speed-fast) ease, box-shadow var(--speed-fast) ease;
}

.countryCode:focus {
  border-color: rgba(var(--orange-rgb), 0.65);
  box-shadow: 0 0 0 3px rgba(var(--orange-rgb), 0.2);
  outline: none;
}

.phoneInput {
  flex: 1;
  min-width: 0;
}

.fieldFull {
  grid-column: 1 / -1;
}

.actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.submitButton {
  border: 1px solid var(--orange);
  background: var(--orange);
  /* Near-black on orange reads ~9:1; white on orange is ~2.1:1 and fails. */
  color: #0a0a0a;
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform var(--speed-fast) ease, background var(--speed-fast) ease, color var(--speed-fast) ease;
}

.submitButton:hover {
  transform: translateY(-2px);
  background: #ffffff;
  color: #000000;
}

/* Success state */
.successState {
  text-align: center;
  padding: 48px 24px;
}

.successIcon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: rgba(var(--orange-rgb), 0.15);
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.successState h3 {
  font-size: 22px;
  color: var(--text-primary);
  margin: 0 0 10px;
}

.successState p {
  color: var(--text-tertiary);
  font-size: 15px;
  margin: 0 0 28px;
  line-height: 1.6;
}

/* Error message */
.errorMessage {
  color: var(--orange-deep);
  font-size: 14px;
  margin: 12px 0 0;
}

/* Spinner */
.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.submitButton:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* reCAPTCHA attribution (required when badge is hidden) */
.recaptchaNotice {
  margin: 14px 0 0;
  font-size: 11px;
  color: #6b6b73;
  line-height: 1.5;
}

.recaptchaNotice a {
  color: var(--text-tertiary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.recaptchaNotice a:hover {
  color: var(--text-primary);
}

@media (max-width: 767px) {
  .fieldGrid {
    grid-template-columns: 1fr;
  }

  .fieldFull {
    grid-column: auto;
  }
}
