/* Contact Form Page Styles */
.contact-form-section {
  padding: 120px 0 5rem;
  background-color: #f9fafb;
  min-height: calc(100vh - 80px); /* Account for footer height */
}

.contact-form-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 2.5rem;
  position: relative;
}

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

.contact-description {
  text-align: center;
  margin-bottom: 2.5rem;
  color: #4b5563;
  line-height: 1.8;
}

.required-notice {
  font-size: 0.9rem;
  color: #cc0000;
}

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

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #1f2937;
}

.contact-form .required {
  color: #cc0000;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #C7A252;
  outline: none;
  box-shadow: 0 0 0 3px rgba(199, 162, 82, 0.2);
}

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

.character-counter {
  text-align: right;
  font-size: 0.875rem;
  color: #666;
  margin-top: 0.25rem;
}

.privacy-agreement {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.privacy-agreement input[type="checkbox"] {
  margin-top: 0.25rem;
}

.privacy-agreement a {
  color: #CD821F;
  text-decoration: none;
}

.privacy-agreement a:hover {
  text-decoration: underline;
}

.error-message {
  color: #cc0000;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  min-height: 1.25rem;
}

.form-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.submit-button,
.reset-button,
.back-button {
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-button {
  background-color: #C7A252;
  color: white;
  border: none;
}

.submit-button:hover {
  background-color: #CD821F;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.reset-button {
  background-color: transparent;
  color: #6b7280;
  border: 1px solid #d1d5db;
}

.reset-button:hover {
  background-color: #f3f4f6;
  transform: translateY(-2px);
}

.back-button {
  background-color: #4b5563;
  color: white;
  border: none;
}

.back-button:hover {
  background-color: #374151;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Success message */
.form-success {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  z-index: 10;
}

.success-content {
  max-width: 400px;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #10b981;
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  margin: 0 auto 1.5rem;
}

.form-success h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #1f2937;
}

.form-success p {
  color: #4b5563;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hidden {
  display: none;
}

/* For animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-success:not(.hidden) {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-form-container {
    padding: 1.5rem;
    margin: 0 1rem;
  }
  
  .form-buttons {
    flex-direction: column;
  }
  
  .submit-button,
  .reset-button {
    width: 100%;
  }
  
  .contact-description br {
    display: none;
  }
}