/* General Styles */
body {
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 0;
  /* background: #f9fafc; */
}

/* ========================= */
/* HERO SECTION REDESIGN */
/* ========================= */

.contact-hero {
  position: relative;
  width: 100%;
  /* reduced from 100vh to ~75vh to lower hero height across non-index pages */
  height: 75vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

/* Background Image */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(50%);
}

/* Overlay for Darkening Background */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(173, 0, 0, 0.4),
    rgba(64, 0, 0, 0.5)
  );
  z-index: -1;
}

/* Content Styling */
.hero-content {
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.primary-btn,
.secondary-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.primary-btn {
  background: #ecd733;
  border: 1px solid #af002d;
  color: black;
}

/* .primary-btn:hover {
    background: #0056b3;
} */

.secondary-btn {
  border: 1px solid white;
  color: white;
}

.secondary-btn:hover {
  background: white;
  color: #af002d;
}

/* Footer (Scroll Cue) */
.hero-footer {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

.hero-footer i {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  animation: bounce 1.5s infinite;
}

/* Bounce Animation */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ========================= */
/* MEDIA QUERIES */
/* ========================= */

/* Tablets */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .primary-btn,
  .secondary-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .contact-hero {
    height: 70%;
  }
  * /* .hero-overlay{ 
        height: 40%;
    }
    .hero-content{
        height: 40%;
    }
    .hero-background{
        height: 40%;
    } */
    .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 0.9rem;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 5px;
  }
  .primary-btn,
  .secondary-btn {
    width: 80%;
    text-align: center;
  }
  .hero-footer {
    display: none;
  }
}

.contact-info {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 1.5rem;
  padding: 3rem 2rem;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.info-card {
  text-align: center;
  background: #ffffff;
  border-radius: 15px;
  padding: 2rem 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
  flex: 1;
  max-width: 300px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.icon-circle {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #af002d, #ffe100);
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.info-details h3 {
  font-size: 1.2rem;
  margin: 0.5rem 0;
  color: #333;
}

.info-details p {
  font-size: 1rem;
  color: #555;
  margin: 0;
}

/* Contact Form Section */
.contact-form {
  padding: 4rem 2rem;
  background: #fff;
  text-align: center;
  width: 90%;
  margin: auto;
}

.contact-form h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.form-container {
  max-width: 600px;
  margin: auto;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  width: 100%;
}
.fr-2 {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  width: 100%;
}
.fr-2 input:nth-child(1) {
  width: 45%;
  padding: 0.75rem;
}
.fr-2 input:nth-child(2) {
  width: 55%;
}
.form-row input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

textarea {
  width: 95%;
  padding: 0.75rem;
  height: 150px;
  resize: none;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.submit-btn {
  background: #af002d;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.submit-btn:hover {
  background: #af003f;
}

#form-status {
  margin-top: 1rem;
  font-size: 1rem;
}

/* Map Section */
.map-section {
  margin-bottom: -10px;
  /* margin: 4rem auto; */
  text-align: center;
}

.map-section h2 {
  margin: 0;
  font-size: 2.5rem;
  /* margin-bottom: -2000px; */
}
.subtitle {
  margin: 0;
  font-size: 1.5rem;
  margin-bottom: 2rem;
}
.subtextline {
  width: 100px;
}

.map-container {
  /* margin-top: 1rem; */
  /* max-width: 800px; */
  margin: 0;
  width: 100%;
}

.map-container iframe {
  width: 100%;
  /* height: 400px; */
  border: none;
  /* border-radius: 10px; */
}

/* Form Feedback Styling */
#formResponse {
  margin-top: 1rem;
  font-size: 0.95rem;
  text-align: center;
  padding: 0.75rem;
  border-radius: 5px;
  display: none;
}

#formResponse.success {
  background-color: #d4edda;
  color: green;
  border: 1px solid #c3e6cb;
}

#formResponse.error {
  background-color: #f8d7da;
  color: green;
  border: 1px solid #f5c6cb;
}

/* Small devices (Phones) */
@media (max-width: 768px) {
  /* Hero Section */
  .contact-hero h1 {
    font-size: 2rem;
  }

  .contact-hero p {
    font-size: 12px;
  }

  /* Contact Info Section */
  .contact-info {
    flex-direction: column;
    gap: 1.5rem;
  }

  .info-card {
    width: 100%;
    padding: 2rem;
  }

  .info-card p {
    font-size: 12px;
  }

  /* Contact Form Section */
  .form-row {
    flex-direction: column;
    gap: 1rem;
  }

  .form-row input,
  textarea {
    width: 95%;
  }

  .fr-2 input:nth-child(1) {
    width: 50%;
  }
  .fr-2 input:nth-child(2) {
    width: 50%;
  }

  textarea {
    height: 120px;
  }

  .contact-form h2 {
    font-size: 2rem;
  }

  /* Map Section */
  .map-container iframe {
    height: 300px;
  }

  .map-section h2 {
    font-size: 2rem;
  }
}

/* Medium devices (Tablets) */
@media (max-width: 1024px) {
  /* Hero Section */
  .contact-hero h1 {
    font-size: 2.5rem;
  }

  .contact-hero p {
    font-size: 1.1rem;
  }

  /* Contact Info Section */
  .contact-info {
    gap: 1.5rem;
  }

  .info-card {
    width: 45%;
  }

  /* Contact Form Section */
  .form-row {
    gap: 1rem;
  }

  .form-container {
    max-width: 500px;
  }

  .contact-form h2 {
    font-size: 2.2rem;
  }

  /* Map Section */
  .map-container iframe {
    height: 350px;
  }
}

/* Large devices (Desktops) */
@media (min-width: 1025px) {
  .contact-hero {
    padding: 6rem 2rem;
  }

  .contact-hero h1 {
    font-size: 3.5rem;
  }

  .contact-hero p {
    font-size: 1.3rem;
  }

  .contact-info {
    gap: 2rem;
  }

  .info-card {
    width: 30%;
  }

  .form-container {
    max-width: 600px;
  }

  .map-container iframe {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .contact-form {
    width: 90%;
    margin: 5%;
    margin-left: -10px;
  }
}
