/* Reset and body */
body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: linear-gradient(135deg, #e0e7ff, #f4f4f4);
  color: #22223b;
  min-height: 100vh;
}

/* Theme Toggle Button - FIXED on viewport */
#theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #22223b;
  z-index: 1000;
  padding: 0.5rem;
  background: linear-gradient(135deg, #6366f1, #60a5fa);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.dark #theme-toggle {
  color: #fff;
}

/* Centered container */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 5rem 1rem;
}

/* Heading */
h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  text-align: center;
}

/* Form */
form {
  background: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  box-sizing: border-box;
}

/* Inputs */
input,
textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid #c7d2fe;
  border-radius: 8px;
  font-size: 1rem;
  background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: none;
}

input:focus,
textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px #c7d2fe;
}

/* Button */
button[type="submit"] {
  background: linear-gradient(90deg, #6366f1, #60a5fa);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
  transition: background 0.2s, transform 0.1s;
}

button[type="submit"]:hover {
  background: linear-gradient(90deg, #4f46e5, #2563eb);
  transform: translateY(-2px) scale(1.03);
}

/* Dark mode */
body.dark {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #e0e7ff;
}

body.dark form {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 8px 32px rgba(100, 100, 150, 0.5);
}

body.dark input,
body.dark textarea {
  background: #334155;
  border-color: #64748b;
  color: #f1f5f9;
}

body.dark button[type="submit"] {
  background: linear-gradient(90deg, #818cf8, #6366f1);
  color: #f8fafc;
  box-shadow: 0 2px 8px rgba(129, 140, 248, 0.8);
}

body.dark button[type="submit"]:hover {
  background: linear-gradient(90deg, #5b6cd1, #4c51bf);
}

/* Responsive */
@media (max-width: 500px) {
  .container {
    padding: 3rem 1rem;
  }

  form {
    padding: 1.5rem;
  }
}

.thank-you-message {
  text-align: center;
  font-size: 1.2rem;
  max-width: 400px;
  margin: 0 auto;
  color: inherit; /* inherit color for dark mode support */
}

.thank-you-message a {
  color: #6366f1;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
  transition: color 0.2s;
}

.thank-you-message a:hover {
  color: #4f46e5;
}

body.dark .thank-you-message a {
  color: #818cf8;
}

body.dark .thank-you-message a:hover {
  color: #5b6cd1;
}


/* Smooth transition for theme color changes */
body,
form,
input,
textarea,
button[type="submit"],
#theme-toggle {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
