:root {
  --primary-dark: #000;
  --primary-red: #d10000;
  --primary-green: #006400;
  --accent-yellow: #ffd700;
  --text-white: #fff;
  --text-dark: #2c3e50;
  --gradient-angle: 135deg;
}

/* Hero Section */
.hero-contact {
  min-height: 60vh;
  background: linear-gradient(
      var(--gradient-angle),
      rgba(0, 0, 0, 0.9),
      rgba(209, 0, 0, 0.85),
      rgba(0, 100, 0, 0.8)
    ),
    url('assets/images/contact-bg.jpg') center/cover;
  position: relative;
  padding: 4rem 1rem;
}

.hero-contact h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.5rem;
}

.hero-contact .lead {
  font-size: clamp(1rem, 2vw, 1.5rem);
  opacity: 0.9;
}

/* Contact Details */
.contact-details {
  background: rgba(255, 255, 255, 0.95);
}

.contact-details h2 {
  color: var(--primary-green);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.contact-details h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary-red);
}

.contact-details p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.contact-details i {
  color: var(--primary-green);
  width: 30px;
  margin-right: 0.5rem;
}

.contact-details a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: var(--primary-red);
}

/* Google Map */
iframe {
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 3px solid var(--primary-green) !important;
}

/* Contact Form */
.contact-form {
  background: linear-gradient(
    var(--gradient-angle),
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.9)
  );
}

.contact-form h2 {
  color: var(--primary-dark);
  position: relative;
  padding-bottom: 1rem;
}

.contact-form h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--primary-red);
}

.form-control {
  border: 2px solid rgba(0, 0, 0, 0.1);
  padding: 0.75rem 1.25rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 0.25rem rgba(0, 100, 0, 0.1);
}

.btn-primary {
  background: var(--primary-green);
  border: none;
  padding: 1rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Alerts */
.alert {
  border-radius: 10px;
  border: 2px solid transparent;
}

.alert-success {
  background: rgba(0, 100, 0, 0.1);
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.alert-danger {
  background: rgba(209, 0, 0, 0.1);
  border-color: var(--primary-red);
  color: var(--primary-red);
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-details .col-md-6 {
    margin-bottom: 2rem;
  }
  
  iframe {
    height: 250px;
  }
  
  .hero-contact {
    min-height: 50vh;
    padding: 3rem 1rem;
  }
}

@media (max-width: 576px) {
  .form-control {
    padding: 0.625rem 1rem;
  }
  
  .btn-primary {
    width: 100%;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-details,
.contact-form {
  animation: fadeIn 0.6s ease forwards;
}

/* Accessibility */
.form-control:focus,
.btn:focus {
  outline: 3px solid var(--accent-yellow);
  outline-offset: 2px;
}