/* Contact Form - New Version */
.intro {
  text-align: center;
  font-size: 1.125rem; /* Match var(--font-size-lg) */
  color: #444;
  margin-bottom: 2rem; /* Make consistent with other pages */
  line-height: 1.8;
}

/* Adjust form top margin for better spacing */
form {
  background-color: var(--white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  box-sizing: border-box;
  border-top: 3px solid var(--accent); 
  margin-top: 0; /* Remove top margin to move content up */
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

.required {
  color: #dc3545;
}

input, textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* Ensure all form elements use consistent fonts */
input, textarea, select, button, label {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

input:focus, textarea:focus {
  border-color: var(--accent); /* Electric blue focus state */
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1); /* Matching accent color */
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.validation-message {
  color: #dc3545;
  font-size: 0.875rem; /* Match var(--font-size-sm) */
  margin-top: 0.35rem;
  min-height: 1.2rem;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

/* Button styles */
.form-actions {
  margin-top: 1rem;
}

.primary-button {
  background: var(--gradient-primary); /* Match the main CTA style */
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.primary-button:hover {
  background: var(--gradient-accent); /* Electric blue on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.primary-button:disabled {
  background: var(--grey);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Spinner for loading state */
.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  position: absolute;
  right: 15px;
  top: calc(50% - 9px);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.primary-button.loading .button-text {
  visibility: hidden;
}

.primary-button.loading .spinner {
  display: block;
}

/* Status message styling */
.form-status {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 4px;
  display: none;
}

.form-status.success {
  display: block;
  background-color: rgba(5, 150, 105, 0.1); /* Lighter success background */
  color: var(--success);
  border: 1px solid var(--success);
}

.form-status.error {
  display: block;
  background-color: rgba(220, 38, 38, 0.1); /* Lighter error background */
  color: var(--error);
  border: 1px solid var(--error);
}

/* Highlight Box Styles */
.highlight-box {
  background-color: rgba(26, 86, 219, 0.05);
  border-left: 4px solid #1a56db;
  padding: 10px 10px 10px 10px;
  margin: 0px 20px 15px 0px;
  border-radius: 0.25rem;
}

.highlight-box h3 {
  margin-top: 0;
  color: #1a56db;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  form {
    padding: 1rem;
    width: 95%;
    min-width: 280px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .form-actions {
    text-align: center;
  }
  
  .primary-button {
    width: 100%;
  }
}

/* Ensure the page-content has consistent padding */
.page-content.extra-top-space {
  padding-top: 37px; /* Match other pages' top padding */
}

