/* Base layout */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f6f8;
  margin: 0;
  padding: 0;
  color: #333;
  line-height: 1.6;
}

/* Container styling */
.container,
.form-container {
  max-width: 600px;
  margin: 4rem auto;
  padding: 2.5rem;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* Form inputs and selects */
input,
select,
button,
textarea {
  width: 100%;
  padding: 0.8rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  border: 1px solid #ccd0d5;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #0056b3;
  outline: none;
  box-shadow: 0 0 4px rgba(0, 123, 255, 0.3);
}

/* Labels */
label {
  font-weight: 600;
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

/* Button styling */
button {
  background-color: #007bff;
  color: white;
  font-weight: bold;
  border: none;
  padding: 0.85rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

button:hover {
  background-color: #0056b3;
}

button:active {
  transform: scale(0.98);
}

/* Modal overlay */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.active {
  display: flex;
}

/* Modal box */
.modal-content {
  background: #ffffff;
  padding: 2rem;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.modal-content h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.modal-content p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.modal-content button {
  margin: 0.5rem 0.25rem;
  width: auto;
  padding: 0.6rem 1.5rem;
  font-size: 0.95rem;
  border-radius: 6px;
}

/* Error message */
.error-message {
  color: #dc3545;
  font-weight: 500;
  background-color: #f8d7da;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #f5c6cb;
  margin-bottom: 1.5rem;
}
