.altf {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(13, 20, 38, 0.96), rgba(10, 14, 28, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  color: #fff;
}

.altf--modal {
  max-width: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.altf__notice {
  margin-bottom: 20px;
  padding: 16px 18px;
  border-radius: 18px;
  font-weight: 700;
}

.altf__notice--success {
  background: rgba(21, 128, 61, 0.18);
  border: 1px solid rgba(74, 222, 128, 0.2);
  color: #bbf7d0;
}

.altf__notice--error {
  background: rgba(153, 27, 27, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.2);
  color: #fecaca;
}

.altf__progress {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.altf--modal .altf__progress {
  margin-bottom: 20px;
}

.altf__step {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 10px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-weight: 700;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.altf__step:hover {
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.altf__step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
}

.altf__step-label {
  white-space: nowrap;
}

.altf__step.is-active {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(0, 255, 204, 0.26);
  box-shadow: 0 0 0 1px rgba(0, 255, 204, 0.08) inset;
}

.altf__step.is-active .altf__step-index {
  background: linear-gradient(135deg, #00ffcc 0%, #3b82f6 55%, #7c3aed 100%);
  color: #050a14;
}

.altf__panel {
  display: none;
}

.altf__panel.is-active {
  display: block;
}

.altf__panel h2 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
}

.altf__panel > p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.6;
}

.altf--modal .altf__panel h2,
.altf--modal .altf__panel > p {
  display: none;
}

.altf__grid {
  display: grid;
  gap: 18px;
}

.altf__grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.altf__field,
.altf__choices {
  display: grid;
  gap: 10px;
}

.altf__field--full {
  grid-column: 1 / -1;
}

.altf__field span,
.altf__choices legend {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.altf__field input,
.altf__field select,
.altf__field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.altf__field select {
  color-scheme: dark;
}

.altf__field select option {
  background: #101827;
  color: #fff;
}

.altf__field textarea {
  min-height: 150px;
  resize: vertical;
}

.altf__field input:focus,
.altf__field select:focus,
.altf__field textarea:focus {
  outline: none;
  border-color: rgba(0, 255, 204, 0.45);
  box-shadow: 0 0 0 4px rgba(0, 255, 204, 0.08);
}

.altf__choices {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
}

.altf__choices label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.84);
}

.altf__actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.altf--modal .altf__actions {
  margin-top: 18px;
}

.altf__button {
  min-height: 50px;
  padding: 12px 34px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.altf__button--primary {
  color: #050a14;
  background: linear-gradient(135deg, #00ffcc 0%, #3b82f6 55%, #7c3aed 100%);
}

.altf__button--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.altf__button[disabled] {
  opacity: 0.5;
  cursor: default;
}

.is-hidden {
  display: none !important;
}

.altf__honeypot {
  position: absolute;
  left: -9999px;
}

@media (max-width: 782px) {
  .altf {
    padding: 24px;
  }

  .altf__grid--two {
    grid-template-columns: 1fr;
  }

  .altf__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .altf__progress {
    flex-direction: column;
  }

  .altf__step {
    justify-content: flex-start;
  }
}
