/* ==================== Contact Page Specific Styles ==================== */

/* Hero Section for Contact Page */
.contact-hero {
  background: linear-gradient(
      rgba(var(--primary-red-rgb), 0.7),
      rgba(var(--primary-red-rgb), 0.7)
    ),
    url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTZQFG3b3Zx32Ij31Fhax5CUBbe2nvutfRe-A&s')
      center center/cover no-repeat;
  color: var(--white);
  padding: 3rem 1rem;
  text-align: center;
  margin-bottom: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-hero h1 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

/* Common Styling for Sections */
.contact-form-section,
.contact-info-section {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-form-section h2,
.contact-info-section h2,
.contact-map h2 {
  color: var(--secondary-dark);
  font-size: 2rem;
  margin-bottom: 1.8rem;
  text-align: center;
  position: relative;
}

.contact-form-section h2::after,
.contact-info-section h2::after,
.contact-map h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--primary-red);
  margin: 0.8rem auto 0;
}

/* Contact Form Styles */
.contact-form .form-group {
  margin-bottom: 1.2rem;
}

.contact-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--secondary-dark);
  font-size: 0.95rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(var(--primary-red-rgb), 0.1);
  outline: none;
}

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

.contact-form .btn-primary {
  width: 100%;
  padding: 0.9rem;
  font-size: 1.1rem;
  border-radius: 5px;
}

/* Contact Info Section Styles */
.info-block {
  margin-bottom: 1.8rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--border-color);
}

.info-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.info-block h3 {
  color: var(--primary-red);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}

.info-block h3 i {
  margin-right: 0.8rem;
  font-size: 1.5rem;
}

.info-block p,
.info-block ul {
  font-size: 1rem;
  color: var(--text-color);
  padding-left: 2.3rem; /* Align with icon */
}

.info-block ul li {
  margin-bottom: 0.4rem;
}
.email-link {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.email-link:hover {
  color: #e63946; /* reddish on hover */
}.phone-list a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.phone-list a:hover {
  color: #e63946; /* reddish on hover */
}

.info-block .slogan {
  font-style: italic;
  font-weight: 500;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
  padding-left: 2.3rem;
  color: var(--secondary-dark);
}

.opening-hours p {
  line-height: 1.8;
}

/* Map Section */
.contact-map {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 3rem;
}

.map-container {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.map-container iframe {
  width: 100%; /* Ensure iframe takes full width of its container */
  height: 400px; /* Adjust height as needed */
  display: block; /* Remove extra space below iframe */
}

/* ==================== Responsive Adjustments for Contact Page ==================== */

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1.5fr 1fr; /* Form takes more space on larger screens */
    align-items: start; /* Align tops of the sections */
  }

  .contact-form-section,
  .contact-info-section {
    padding: 2.5rem;
  }

  .contact-form .btn-primary {
    width: auto; /* Button doesn't need to be full width on desktop */
  }

  .info-block p,
  .info-block ul {
    padding-left: 0; /* No need to align with icon on desktop, as sections are next to each other */
  }

  .info-block .slogan {
    padding-left: 0;
  }

  .contact-map {
    padding: 2.5rem;
  }

  .contact-hero h1 {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 40% 60%; /* Further refine column distribution */
  }

  .contact-form-section h2,
  .contact-info-section h2,
  .contact-map h2 {
    font-size: 2.2rem;
  }
}