/* Offerlash - Form UI (matches card/surface system) */

.form-card {
  display: grid;
  gap: 20px;
}

.form-description {
  padding: 18px;
  border-radius: var(--brand-radius-md);
  background: var(--brand-surface-muted);
  border: 1px solid var(--brand-border);
}

.form-description h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.form-description p {
  margin: 0 0 10px;
  color: var(--brand-text-muted);
}

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

.alert {
  padding: 14px 16px;
  border-radius: var(--brand-radius-md);
  border: 1px solid var(--brand-border);
  background: #fff;
}

.alert--error {
  border-color: rgba(180, 83, 83, 0.35);
  background: rgba(180, 83, 83, 0.08);
}

.alert--error strong {
  color: #b45353;
}

.alert--success {
  border-color: rgba(28, 202, 211, 0.5);
  background: rgba(28, 202, 211, 0.12);
}

.alert--success strong {
  color: #0b6a70;
}

.application-form {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  /* Prevent shorter fields from vertically stretching/centering when neighbors have help text. */
  align-items: start;
}

.form-field {
  display: grid;
  gap: 8px;
  align-content: start;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-label {
  font-weight: 600;
  color: var(--brand-text);
}

.form-help {
  font-size: 0.95rem;
  color: var(--brand-text-muted);
  margin: 0;
}

.form-input,
.form-select {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border-radius: var(--brand-radius-md);
  border: 1px solid var(--brand-border);
  background: var(--brand-surface);
  color: var(--brand-text);
  box-shadow: 0 10px 24px rgba(20, 24, 40, 0.08);
}

.form-select {
  /* Custom arrow so spacing is consistent across browsers (especially RTL). */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-inline-end: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%235b6273' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-position: right 14px center;
}

[dir="rtl"] .form-select {
  background-position: left 14px center;
}

.form-input::placeholder {
  color: rgba(91, 98, 115, 0.75);
}

.form-input:focus-visible,
.form-select:focus-visible {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 3px;
}

.form-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--brand-radius-md);
  border: 1px solid var(--brand-border);
  background: var(--brand-surface);
}

.form-checkbox input {
  margin-top: 4px;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  margin-top: 6px;
}

.honeypot {
  position: absolute !important;
  inset-inline-start: 0 !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}

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

/* Thanks page (no inline styles due to CSP) */
.thanks-hero-message {
  text-align: center;
  max-width: 420px;
}

.thanks-hero-title {
  margin: 0 0 10px;
  font-size: 1.6rem;
}

.thanks-hero-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}
