/* ==========================================================================
   form.css — Registration form card, fields, validation states, submit button
   ========================================================================== */

/* ── Card wrapper ────────────────────────────────────────────────────────── */

.form-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 44px 40px;
  box-shadow: var(--sh-lg), 0 0 0 1px rgba(24, 105, 60, .10);
  position: relative;
}

/* Gradient top bar */
.form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-mid) 40%, var(--yellow) 100%);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

/* ── Card header ─────────────────────────────────────────────────────────── */

.fc-head { text-align: center; margin-bottom: 32px; }

.fc-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fc-icon svg { width: 26px; height: 26px; color: var(--green); }

.fc-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 5px;
  letter-spacing: -.02em;
}

.fc-sub { font-size: 13px; color: var(--text-muted); font-weight: 400; }

/* ── Form grid ───────────────────────────────────────────────────────────── */

.fg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.fg { display: flex; flex-direction: column; gap: 6px; }
.fg.full { grid-column: 1 / -1; }

/* ── Labels ──────────────────────────────────────────────────────────────── */

label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
}

label .req { color: var(--green); margin-left: 2px; }

/* ── Inputs & selects ────────────────────────────────────────────────────── */

input,
select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}

input::placeholder { color: #B5C0BA; font-weight: 400; }

input:focus,
select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(24, 105, 60, .12);
}

/* Custom select arrow */
.sel-w { position: relative; }

.sel-w::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--text-muted);
  pointer-events: none;
}

select { cursor: pointer; padding-right: 34px; }

/* ── Validation ──────────────────────────────────────────────────────────── */

.fg.err input,
.fg.err select { border-color: var(--error); }

.ferr {
  font-size: 11px;
  color: var(--error);
  font-weight: 500;
  display: none;
}

.fg.err .ferr { display: block; }

/* ── Submit button ───────────────────────────────────────────────────────── */

.btn-sub {
  width: 100%;
  height: 54px;
  margin-top: 10px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .2s, transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep on hover */
.btn-sub::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 208, 90, .20), transparent);
  transform: translateX(-100%);
  transition: transform .5s;
}

.btn-sub:hover {
  background: var(--green-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(24, 105, 60, .28);
}

.btn-sub:hover::after { transform: translateX(100%); }
.btn-sub:active       { transform: translateY(0); }
.btn-sub svg          { width: 17px; height: 17px; transition: transform .2s; }
.btn-sub:hover svg    { transform: translateX(3px); }

.btn-sub:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}

/* Privacy note */
.fp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 12px;
}

.fp svg { width: 11px; height: 11px; opacity: .5; }

/* ── Success state ───────────────────────────────────────────────────────── */

.f-ok {
  display: none;
  text-align: center;
  padding: 36px 16px;
}

.ok-circle {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ok-circle svg { width: 34px; height: 34px; color: var(--green); }

.f-ok h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}

.f-ok p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ── Error banner (API failure) ──────────────────────────────────────────── */

.form-error-banner {
  display: none;
  align-items: center;
  gap: 10px;
  background: #fff0f0;
  border: 1.5px solid var(--error);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--error);
  font-weight: 600;
  margin-top: 12px;
}

.form-error-banner.show { display: flex; }
.form-error-banner svg  { width: 16px; height: 16px; flex-shrink: 0; }
