/* =========================================
   CONTACT PAGE VARIABLES
========================================= */
:root {
  --color-primary: #007bff; /* Replace with your brand blue */
  --color-secondary: #0056b3;
  --color-accent: #25d366; /* WhatsApp Green */
  --color-text: #333333;
  --color-text-light: #666666;
  --color-bg-light: #f9f9f9;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius-lg: 12px;
  --radius-md: 8px;
}

/* =========================================
   HERO SECTION
========================================= */
.contact-hero {
  position: relative;
  height: 40vh;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 80px; /* Adjust based on your navbar height */
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* Dark Overlay for text readability */
}

.contact-hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.contact-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

/* =========================================
   CONTACT LAYOUT WRAPPER
========================================= */
.contact-area {
  padding: 4rem 0;
  background-color: var(--color-bg-light);
}

.contact-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* =========================================
   1. CONTACT INFO CARD (Horizontal Bar)
========================================= */
.contact-info-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: 1rem;
}

.info-header {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.icon-box {
  background: rgba(0, 123, 255, 0.1);
  color: var(--color-primary);
  padding: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}

.contact-link,
address {
  color: var(--color-text-light);
  font-style: normal;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--color-primary);
}

/* =========================================
   2. FORM & MAP GRID
========================================= */
.form-map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Form Styling */
.contact-form-wrapper {
  background: #fff;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.contact-form-wrapper h2 {
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  color: var(--color-text);
}

.contact-form-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

/* Screen Reader Only Label */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

input,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: var(--radius-md);
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

textarea {
  resize: vertical;
}

/* Submit Button */
.contact-submit-btn {
  grid-column: 1 / -1;
  background-color: var(--color-accent);
  color: #fff;
  border: none;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition:
    background-color 0.3s ease,
    transform 0.2s;
}

.contact-submit-btn:hover {
  background-color: #1ebc57;
  transform: translateY(-2px);
}

/* Map Styling */
.contact-map {
  border-radius: var(--radius-lg); /* 12px matches your form */
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-height: 450px; /* Slightly taller for better desktop balance */
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-map:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}
/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 968px) {
  .form-map-grid {
    grid-template-columns: 1fr; /* Stack Form and Map */
  }

  .contact-map {
    height: 350px;
  }
}

@media (max-width: 600px) {
  .contact-hero h1 {
    font-size: 2rem;
  }
  .contact-form-box {
    grid-template-columns: 1fr;
  } /* Stack Inputs */
  .contact-info-card {
    padding: 1.5rem;
  }
  .contact-form-wrapper {
    padding: 1.5rem;
  }
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  /* Higher than your hero-content (which was 10) */
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Ensures the cursor changes to a pointer */
  cursor: pointer;
  /* Prevents any parent overlap from blocking the click */
  pointer-events: auto !important;
}

.whatsapp-float img {
  /* Ensures the image doesn't block the link click */
  pointer-events: none;
}
/* Optimized Map Styling for Delight Trips */
.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;

  /* CRITICAL FIX: Ensure the container has a set height on desktop */
  height: 100%;
  min-height: 500px; /* Increased for a more premium, balanced look */
  display: flex; /* Helps internal alignment */
}

.contact-map iframe {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.contact-map:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}
@media (max-width: 968px) {
  .form-map-grid {
    grid-template-columns: 1fr; /* Stacks Form and Map */
  }

  .contact-map {
    height: 450px; /* Ensures a generous view on mobile/tablets */
    min-height: auto;
  }
}
