/* ======================================================
      === Night Mode Base ===
   ====================================================== */

body {
  background: #0f1115;
  color: #e9e9e9;
  font-family: "Tajawal", "Cairo", sans-serif;
  line-height: 1.65;
  letter-spacing: 0.3px;
  margin: 0;
  padding: 0;
}

/* ======================================================
      🎨 Typography — Beautiful & Simple
   ====================================================== */

#formTitle {
  font-size: 1.7rem;
  font-weight: bolder;
  text-align: center;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.form-desc {
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #f1f1f1;
  margin-bottom: 0.9rem;
}

.question label {
  font-size: 0.95rem;
  color: #d6d6d6;
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.6;
}

.question input::placeholder,
.question textarea::placeholder {
  color: #7b7b7b;
  font-size: 0.85rem;
}

.question input,
.question select,
.question textarea {
  font-size: 0.9rem;
  font-weight: 500;
  color: #eeeeee;
  letter-spacing: 0.2px;
}

/* أزرار التنقل */
.nav-btn {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.8px;
}

.submit-btn {
  font-size: 0.9rem;
  font-weight: 700;
}

.status {
  font-size: 0.9rem;
  font-weight: 500;
}

.thanks {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ======================================================
      🎨 Form Layout & Sections
   ====================================================== */

.container {
  max-width: 800px;
  width: 90%;
  margin: auto;
  padding: 1rem;
}

.form-section {
  background-color: #1a1c22;
  padding: 1.2rem;
  border-radius: 0.8rem;
  box-shadow: 
    0 10px 15px -3px rgba(0, 0, 0, 0.4),
    0 4px 6px -2px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ======================================================
      🎨 Unified Dark Inputs (Text / Select / Date / Textarea)
   ====================================================== */

.question input,
.question select,
.question textarea {
  font-weight: bold;
  width: 100%;
  max-width: 100%;
  padding: 0.9rem;
  border-radius: 0.55rem;
  border: 1px solid #2a2d36;
  background-color: #111318;
  outline: none;
  transition: 0.25s;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.4);
}

.question input:focus,
.question select:focus,
.question textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.3);
}

.question select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23aaa' height='24' width='24' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: left 10px center;
  padding-left: 2.5rem;
  font-weight: bold;
}

.question textarea {
  min-height: 110px;
  resize: vertical;
}

.question input[type="date"] {
  color-scheme: dark;
}

.question input[type="radio"],
.question input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #6366f1;
  cursor: pointer;
  margin-left: 6px;
}

/* ======================================================
      🔘 Navigation Buttons (Next / Prev / Submit)
   ====================================================== */

.section-nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.nav-btn {
  padding: 0.75rem 1.3rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  background-color: #4f46e5;
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  width: 48%;
  margin-bottom: 0.5rem;
  transition: 0.2s ease;
}

.nav-btn:hover {
  opacity: 0.85;
}

.submit-btn {
  background-color: #22c55e;
}

.submit-btn:hover {
  opacity: 0.85;
}

/* ======================================================
      ⚠ Status Messages
   ====================================================== */

.status {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #ff6b6b;
}

.thanks {
  font-size: 1.3rem;
  text-align: center;
  font-weight: 600;
  margin-top: 2rem;
  color: #fff;
}

/* ======================================================
      🛑 Hide Old Submit Button
   ====================================================== */

.actions {
  display: none;
}

/* ======================================================
      📱 Responsive Adjustments
   ====================================================== */

@media (max-width: 1024px) {
  .container {
    max-width: 90%;
    padding: 0.8rem;
  }
}

@media (max-width: 768px) {
  #formTitle {
    font-size: 1.4rem;
  }
  
  .section-title {
    font-size: 1.1rem;
  }

  .question input,
  .question select,
  .question textarea {
    padding: 0.75rem;
    font-size: 0.85rem;
  }

  .nav-btn {
    width: 100%;
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
  }
}

@media (max-width: 480px) {
  #formTitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 1rem;
  }

  .question input,
  .question select,
  .question textarea {
    padding: 0.6rem;
    font-size: 0.8rem;
  }

  .nav-btn {
    font-size: 0.75rem;
    padding: 0.5rem 0.8rem;
  }
}
