/* ================================================
   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;
}
.succ-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.succ-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(34, 197, 94, 0.45);
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s;
}

.succ-back:hover,
.succ-back:focus-visible {
  background: var(--accent);
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.28);
  outline: none;
}

/* Payment confirmation step */
.payment-step {
  display: grid;
  gap: 16px;
}

.payment-step[hidden] {
  display: none;
}

.payment-back {
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.pay-summary,
.bank-box {
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 16px;
  background: rgba(34, 197, 94, 0.06);
  padding: 18px;
}

.pay-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
}

.pay-summary span,
.bank-box span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.pay-summary strong {
  color: var(--text);
  font-size: 18px;
}

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

.bank-box div {
  min-width: 0;
}

.bank-box strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 14px;
}

.payment-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.payment-fields {
  margin-top: 2px;
}

@media (max-width: 680px) {
  .pay-summary,
  .bank-box {
    grid-template-columns: 1fr;
  }
}
