/* ═══════════════════════════════════════════════════
   DTV MOTORS — Prasymo Forma Stylesheet
   ═══════════════════════════════════════════════════ */

/* ── Nav ── */
.forma-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}
.forma-nav__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.forma-nav__back {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}
.forma-nav__back:hover { color: var(--brand-400); }

/* ── Hero ── */
.forma-hero {
  padding: 7rem 1.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.forma-hero::before {
  content: '';
  position: absolute;
  top: -40%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(242, 196, 0, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.forma-hero__content {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}
.forma-hero__badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(242, 196, 0, 0.08);
  border: 1px solid rgba(242, 196, 0, 0.15);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-400);
  margin-bottom: 1.25rem;
}
.forma-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--text-white);
  margin: 0 0 1rem;
}
.forma-hero__subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}
.forma-hero__subtitle strong {
  color: var(--brand-400);
}

/* ── Container ── */
.forma-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* ── Section ── */
.forma-section {
  margin-bottom: 2.5rem;
}
.forma-section__header {
  margin-bottom: 1.25rem;
}
.forma-section__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-white);
  margin: 0 0 0.25rem;
}
.forma-section__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Card ── */
.forma-card {
  background: var(--surface-800);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}
.forma-card:hover {
  border-color: rgba(242, 196, 0, 0.15);
}
.forma-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}
.forma-card__number {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-400);
  letter-spacing: 0.02em;
}
.forma-card__remove {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  color: #ef4444;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}
.forma-card__remove:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
}

/* ── Fields ── */
.forma-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.875rem;
}
@media (max-width: 600px) {
  .forma-row { grid-template-columns: 1fr; gap: 0.75rem; }
}

.forma-field {
  margin-bottom: 0.875rem;
}
.forma-row .forma-field {
  margin-bottom: 0;
}
.forma-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
}
.forma-req {
  color: #ef4444;
}
.forma-optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.forma-field input,
.forma-field select,
.forma-field textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background: var(--surface-700);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.forma-field input::placeholder,
.forma-field textarea::placeholder {
  color: var(--text-muted);
}
.forma-field input:focus,
.forma-field select:focus,
.forma-field textarea:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(242, 196, 0, 0.08);
}
.forma-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
}
.forma-field select option {
  background: var(--surface-700);
  color: var(--text-primary);
}
.forma-field textarea {
  resize: vertical;
  min-height: 60px;
}

/* ── Add Button ── */
.forma-add-btn {
  display: block;
  width: 100%;
  padding: 0.875rem;
  background: rgba(242, 196, 0, 0.04);
  border: 2px dashed rgba(242, 196, 0, 0.2);
  border-radius: var(--radius);
  color: var(--brand-400);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.forma-add-btn:hover {
  background: rgba(242, 196, 0, 0.08);
  border-color: rgba(242, 196, 0, 0.35);
}

/* ── Submit Area ── */
.forma-submit-area {
  text-align: center;
  padding: 2rem 0;
}
.forma-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-sm);
  color: #fca5a5;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.forma-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 3rem;
  background: var(--brand-500);
  color: var(--surface-950);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 24px rgba(242, 196, 0, 0.2);
}
.forma-submit-btn:hover:not(:disabled) {
  background: var(--brand-400);
  box-shadow: 0 8px 32px rgba(242, 196, 0, 0.3);
  transform: translateY(-1px);
}
.forma-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.forma-submit-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* ── Success State ── */
.forma-success {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 2rem 1.5rem;
}
.forma-success__box {
  text-align: center;
  max-width: 480px;
}
.forma-success__icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}
.forma-success__title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-white);
  margin: 0 0 0.75rem;
}
.forma-success__text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Footer ── */
.forma-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── Mobile refinements ── */
@media (max-width: 600px) {
  .forma-hero { padding: 6rem 1.25rem 2rem; }
  .forma-container { padding: 0 1rem 3rem; }
  .forma-card { padding: 1.25rem; }
  .forma-submit-btn { width: 100%; padding: 1rem 2rem; }
}
