/* Add styles here */

body {
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  transition: background-color 0.3s, color 0.3s;
}

/* Light mode (default) */
body.light {
  background-color: #ffffff;
  color: #111111;
}

/* Dark mode */
body.dark {
  background-color: #1a1a1a;
  color: #f0f0f0;
}

#theme-toggle {
  padding: 10px 20px;
  margin-top: 20px;
  border: 2px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

#theme-toggle:hover {
  background-color: rgba(128, 128, 128, 0.2);
}

/* Contact form */
.contact-section {
  width: 100%;
  max-width: 480px;
  margin-top: 48px;
  padding: 32px;
  border-radius: 12px;
  box-sizing: border-box;
}

body.light .contact-section {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
}

body.dark .contact-section {
  background-color: #2a2a2a;
  border: 1px solid #444;
}

.contact-section h2 {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 1.3rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.875rem;
  margin-bottom: 6px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid;
  font-size: 1rem;
  font-family: inherit;
  background: transparent;
  color: inherit;
  transition: border-color 0.2s;
  resize: vertical;
}

body.light .form-group input,
body.light .form-group textarea {
  border-color: #ccc;
  background-color: #fff;
}

body.dark .form-group input,
body.dark .form-group textarea {
  border-color: #555;
  background-color: #1a1a1a;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #888;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background-color: #333;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

body.dark .submit-btn {
  background-color: #f0f0f0;
  color: #111;
}

.submit-btn:hover {
  opacity: 0.85;
}

.form-success {
  margin-top: 16px;
  text-align: center;
  font-size: 0.95rem;
  color: #4caf50;
}
