html {
  overflow-y: scroll; /* Always show the vertical scrollbar */
}

body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ece7f2;
  color: #333;
}

header {
  background-color: #3d2b5a;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

header img {
  max-height: 80px;
  height: auto;
}

main {
  display: flex;
  justify-content: center;
  padding: 2rem;
}

form {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
  box-sizing: border-box;
}

h1 {
  font-size: 1.5rem;
  color: #3d2b5a;
  margin-bottom: 1.5rem;
  text-align: center;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

input:not([type="checkbox"]), select, button {
  width: 100%;
  box-sizing: border-box;
}

input, select {
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

input[type="tel"] {
  pattern: "[0-9]{3}[- ]?[0-9]{3}[- ]?[0-9]{3}";
}

button {
  background-color: #6f4da4;
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

button:hover {
  background-color: #583d82;
}

button:disabled {
  background-color: #ccc; /* Grey background */
  color: #666; /* Grey text */
  cursor: not-allowed; /* Change cursor to indicate it's not clickable */
  opacity: 0.7; /* Slightly transparent for a disabled effect */
}

.note {
  font-size: 0.95rem;
  margin-top: 1rem;
  color: #666;
  text-align: center;
}

.success-message {
  display: none;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: green;
  margin-top: 1rem;
}

.privacy {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.privacy label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.4;
}

.privacy input[type="checkbox"] {
  margin: 0;
  flex-shrink: 0;
  width: auto;
}

.privacy a {
  color: #3d2b5a;
  text-decoration: underline;
}


.terms {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.terms label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.4;
}

.terms input[type="checkbox"] {
  margin: 0;
  flex-shrink: 0;
  width: auto;
}

.terms a {
  color: #3d2b5a;
  text-decoration: underline;
}

@media (max-width: 600px) {
  main {
    padding: 1rem;
  }

  form {
    padding: 1rem;
    margin: 0 1rem;
  }
}

.flash-message {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  font-size: 1rem;
  text-align: center;
}

.flash-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.flash-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}