
/* =========================
   Dark Form — Improved
   ========================= */

:root {
  --bg-page: #0b0f14;
  --bg-card: #11161f;
  --bg-input: #0f1622;
  --border: #1f2937;
  --border-strong: rgb(100,100,100);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.35);
  --radius: 14px;
  --transition: 0.25s ease;
}

/* 🔥 Fix overflow globally */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Form Card */
.form-section {
  background: linear-gradient(145deg, #11161f, #0f141c);
  padding: 2.5rem;
  border-radius: var(--radius);
  max-width: 640px;
  margin: 3rem auto;
  border: 1px solid var(--border);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(99, 102, 241, 0.08);
  color: var(--text);
}

/* Group spacing */
.form-group {
  margin-bottom: 1.4rem;
}

/* Inputs + textarea */
.form-input,
.form-textarea {
  width: 100%;
  display: block;
  padding: 1rem 1.1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.95rem;
  transition: var(--transition);
}

/* Remove weird textarea overflow */
.form-textarea {
  min-height: 160px;
  resize: vertical;
  overflow: auto;
}

/* Placeholder */
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--muted);
}

/* Focus */
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: #111827;
}

/* Button container */
.form-actions {
  margin-top: 1.5rem;
}

/* Submit Button — More Prominent */
.submit-btn {
  width: 100%;
  padding: 1rem;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  color: white;
  background: linear-gradient(90deg, #6366f1, #7c3aed);
  transition: var(--transition);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

/* Hover */
.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.55);
}

/* Active */
.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

/* Mobile */
@media (max-width: 640px) {
  .form-section {
    padding: 1.75rem;
  }
}
