/* Contact Page Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: white;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Contact Hero Section */
.contact-hero {
  background: linear-gradient(
      135deg,
      rgba(179, 65, 38, 0.9),
      rgba(179, 65, 38, 0.8)
    ),
    url("https://images.unsplash.com/photo-1544816155-12df9643f363?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 60vh;
  display: flex;
  align-items: center;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.contact-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.contact-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.contact-subtitle {
  font-size: 1.3rem;
  line-height: 1.6;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 1s ease-out 0.2s both;
}

/* Contact Main Section */
.contact-main {
  padding: 80px 0;
  background: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

/* Contact Information Section */
.contact-info-section {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-info-section h2 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 20px;
  font-weight: 700;
}

.contact-info-text {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 40px;
  line-height: 1.7;
}

.contact-info-list {
  margin-bottom: 50px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
  padding: 25px;
  background: white;
  border-radius: 15px;
  transition: all 0.3s ease;
  border-left: 4px solid #b34126;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-info-item:hover {
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateX(5px);
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #b34126 0%, #b34126 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(179, 65, 38, 0.3);
}

.contact-info-content h4 {
  font-size: 1.2rem;
  color: #1a1a1a;
  margin-bottom: 8px;
  font-weight: 600;
}

.contact-info-content p {
  color: #555;
  line-height: 1.6;
}

.contact-info-content a {
  color: #b34126;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-info-content a:hover {
  color: #8b2e16;
  text-decoration: underline;
}

/* Quick Stats */
.quick-stats {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-top: 40px;
}

.quick-stat {
  text-align: center;
  padding: 20px;
  background: white;
  color: #333;
  border-radius: 15px;
  flex: 1;
  transition: transform 0.3s ease;
  border: 2px solid #b34126;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.quick-stat:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  display: block;
  margin-bottom: 5px;
  color: #b34126;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
}

/* Contact Form Section */
.contact-form-section {
  background: white;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.form-container {
  padding: 40px;
}

.form-container h2 {
  font-size: 2.2rem;
  color: #2c3e50;
  margin-bottom: 15px;
  font-weight: 700;
}

.form-description {
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 15px;
  border: 1px solid #000000;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #b34126;
  box-shadow: 0 0 0 3px rgba(179, 65, 38, 0.1);
  transform: translateY(-2px);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: #333333;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  padding: 10px;
}

/* Checkbox Group */
.checkbox-group {
  margin: 10px 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: #b34126;
}

.checkbox-text {
  color: #555;
  flex: 1;
}

/* Submit Button */
.submit-btn {
  background: linear-gradient(135deg, #b34126 0%, #b34126 100%);
  color: white;
  padding: 18px 40px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
  box-shadow: 0 8px 25px rgba(179, 65, 38, 0.3);
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(179, 65, 38, 0.4);
}

.submit-btn:active {
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 8px 25px rgba(179, 65, 38, 0.2);
}

/* Loading Spinner */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 2px solid white;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 8px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Map Section */
.map-section {
  padding: 60px 0;
  background: white;
}

.map-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 40px;
  font-weight: 700;
}

.map-container {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-placeholder {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.map-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.7;
}

.map-placeholder h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.map-placeholder p {
  color: #666;
  margin-bottom: 25px;
  max-width: 400px;
}

.map-contact-btn {
  background: linear-gradient(135deg, #b34126 0%, #b34126 100%);
  color: white;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.map-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(179, 65, 38, 0.3);
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background: white;
}

.faq-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 60px;
  font-weight: 700;
}

.faq-grid {
  display: grid;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #f8f9fa;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  cursor: pointer;
  background: white;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: #f8f9fa;
}

.faq-question h4 {
  color: #2c3e50;
  font-size: 1.1rem;
  font-weight: 600;
  flex: 1;
  margin-right: 20px;
}

.faq-toggle {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #b34126 0%, #b34126 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: white;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 30px 25px;
}

.faq-answer p {
  color: #666;
  line-height: 1.7;
  padding-top: 10px;
}

/* CTA Section */
.contact-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #b34126 0%, #b34126 100%);
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: white;
  color: #b34126;
  border: 2px solid white;
}

.btn-primary:hover {
  background: transparent;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: #b34126;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Form Validation Styles */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.error-message {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 5px;
  display: block;
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

/* Success Message */
.success-message {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  color: white;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
  display: none;
}

.success-message.show {
  display: block;
  animation: fadeInUp 0.5s ease-out;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .contact-grid {
    gap: 40px;
  }

  .contact-title {
    font-size: 2.8rem;
  }

  .contact-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    min-height: 50vh;
    background-attachment: scroll;
  }

  .contact-title {
    font-size: 2.2rem;
  }

  .contact-subtitle {
    font-size: 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .quick-stats {
    flex-direction: column;
    gap: 15px;
  }

  .contact-info-item {
    padding: 20px;
  }

  .form-container {
    padding: 30px 20px;
  }

  .contact-main {
    padding: 60px 0;
  }

  .faq-section,
  .contact-cta {
    padding: 60px 0;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 250px;
  }

  .container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .contact-title {
    font-size: 1.8rem;
  }

  .contact-subtitle {
    font-size: 0.9rem;
  }

  .contact-info-section h2,
  .form-container h2,
  .faq-section h2,
  .map-section h2,
  .cta-content h2 {
    font-size: 2rem;
  }

  .contact-info-item {
    padding: 15px;
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .contact-info-icon {
    align-self: center;
  }

  .form-container {
    padding: 25px 15px;
  }

  .submit-btn {
    padding: 15px 30px;
    font-size: 1rem;
  }

  .faq-question {
    padding: 20px;
  }

  .faq-answer {
    padding: 0 20px;
  }

  .faq-item.active .faq-answer {
    padding: 0 20px 20px;
  }
}

/* Print Styles */
@media print {
  .contact-hero,
  .contact-cta,
  .map-section {
    display: none;
  }

  .contact-main {
    padding: 20px 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .form-container,
  .contact-info-item {
    box-shadow: none;
    border: 1px solid #e1e8ed;
  }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  .contact-form-section {
    background: #2d3748;
  }

  .form-container h2,
  .contact-info-section h2 {
    color: #e2e8f0;
  }

  .form-description,
  .contact-info-text {
    color: #a0aec0;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    background: #4a5568;
    border-color: #4a5568;
    color: #e2e8f0;
  }

  .contact-info-item {
    background: #2d3748;
    border-left-color: #8e44ad;
  }

  .contact-info-content h4 {
    color: #e2e8f0;
  }

  .contact-info-content p {
    color: #a0aec0;
  }
}

/* Accessibility Enhancements */
.form-group input:invalid {
  box-shadow: none;
}

.form-group input:focus:invalid {
  border-color: #dc2626;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .contact-info-item {
    border: 2px solid #333;
  }

  .faq-item {
    border: 2px solid #333;
  }

  .contact-form-section {
    border: 2px solid #333;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .contact-hero {
    background-attachment: scroll;
  }
}
