/* Contact Form Styles */
.contact-form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 8px;
}

.contact-form-container h1 {
  color: #1e40af;
  margin-bottom: 1.5rem;
  text-align: center;
}

.contact-form {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
}

.form-group-half {
  display: flex;
  flex-direction: column;
}

.form-group {
  display: flex;
  flex-direction: column;
  grid-column: span 2;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #333;
}

.form-control {
  padding: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.error-messages {
  background-color: #fee2e2;
  color: #b91c1c;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  grid-column: span 2;
}

.error-messages ul {
  margin: 0;
  padding-left: 1.5rem;
}

.form-submit {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  grid-column: span 2;
}

.form-submit .btn-discover-call {
  background: #3b82f6;
  color: #fff;
  width: 100%;
  padding: 1.1rem 0;
}

.form-submit .btn-discover-call:hover {
  background: #2563eb;
  color: #fff;
  padding: 1.1rem 0;
}

/* Flash messages */
.flash {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  text-align: center;
}

.flash-success {
  background-color: #d1fae5;
  color: #065f46;
}

.flash-error {
  background-color: #fee2e2;
  color: #b91c1c;
}

/* Custom Checkbox Styles */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  grid-column: span 2;
  position: relative;
  padding-left: 35px;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 24px;
  width: 24px;
  background-color: #f8fafc;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
  transition: all 0.2s ease;
}

/* On mouse-over, add a blue border */
.checkbox-group:hover input ~ .checkmark {
  border-color: #3b82f6;
}

/* When the checkbox is checked, add a blue background */
.checkbox-group input:checked ~ .checkmark {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.checkbox-group input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.checkbox-group .checkmark:after {
  left: 8px;
  top: 4px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label {
  margin-left: 10px;
  user-select: none;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #4b5563;
}

/* Focus styles for accessibility */
.checkbox-group input:focus ~ .checkmark {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}
