/* ================================================
   FORM — Application form + success state
   ================================================ */

.form-bg {
  background: linear-gradient(140deg, rgba(13, 74, 47, 0.07) 0%, transparent 60%);
}

.form-card {
  max-width: 640px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* ── Form grid ── */
.fg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.fgroup {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fgroup.w2 {
  grid-column: 1 / -1;
}

/* ── Label ── */
.flbl {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.flbl em {
  color: #ef4444;
  font-style: normal;
  margin-left: 2px;
}

/* ── Inputs, selects, textarea ── */
.fi2,
.fsel,
.fta {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 15px;
  color: var(--text);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
  outline: none;
  width: 100%;
}

.fi2::placeholder,
.fta::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.fi2:focus,
.fsel:focus,
.fta:focus {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.04);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* ── Error state + shake ── */
.fi2.err,
.fsel.err,
.fta.err {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
  animation: shake 0.45s ease;
}

/* ── Select extras ── */
.fsel {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a1a1aa' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.fsel option {
  background: #181818;
  color: var(--text);
}

/* ── Textarea ── */
.fta {
  resize: vertical;
  min-height: 96px;
}

/* ── Submit button ── */
.fsub {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  color: #000;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s;
  margin-top: 8px;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.fsub:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
}

/* ── Submit states ── */
.fsub:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.fsub[aria-busy="true"] svg {
  animation: submit-spin 0.8s linear infinite;
}

.form-status {
  min-height: 20px;
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
}

.form-status.error {
  color: #f87171;
}

@keyframes submit-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Success state ── */
.succ {
  display: none;
  text-align: center;
  padding: 24px 0;
}

.succ.on {
  display: block;
}

.succ-ico {
  width: 70px;
  height: 70px;
  background: rgba(34, 197, 94, 0.14);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 18px;
}

.succ-ttl {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 12px;
}

.succ-txt {
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}
