/* General Page Styling */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff5eb;
  color: #333;
  margin: 0;
  padding: 0;
  transition: background-color 0.4s, color 0.4s;
}

/* Container */
.container {
  max-width: 600px;
  margin: 40px auto;
  background: #ffffff;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

h1 {
  color: #b22222;
  font-size: 24px;
}

h2 {
  color: #b22222;
  font-size: 18px;
  margin-top: 20px;
}

/* Form Elements */
label {
  display: block;
  margin-top: 10px;
  font-weight: 600;
}

input, select, textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* Hover effects */
input:hover, select:hover, textarea:hover {
  border-color: #b22222;
  box-shadow: 0 0 5px rgba(178, 34, 34, 0.2);
}

button {
  background-color: #b22222;
  color: white;
  border: none;
  padding: 10px;
  width: 100%;
  margin-top: 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 15px;
  transition: background-color 0.3s, transform 0.2s;
}

button:hover {
  background-color: #8b0000;
  transform: scale(1.03);
}

fieldset {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  margin-top: 10px;
  transition: border-color 0.3s;
}

fieldset:hover {
  border-color: #b22222;
}

/* Success Message */
#successMessage {
  text-align: center;
  color: green;
  font-weight: bold;
  margin-top: 20px;
}

.hidden {
  display: none;
}

/* Dark Mode */
body.dark-mode {
  background-color: #1e1e1e;
  color: #eee;
}

body.dark-mode .container {
  background-color: #2c2c2c;
}

body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  background-color: #3a3a3a;
  color: white;
  border: 1px solid #555;
}

body.dark-mode button {
  background-color: #d35400;
}

body.dark-mode button:hover {
  background-color: #e67e22;
}