/* =======================
   BASE STYLES (Mobile First)
   ======================= */

.contact {
  padding: 1rem;
}

/* ========== LIGHT THEME ========== */
.light .contact,
.light .contact-form,
.light .contact-info {
  background: #ffffff;
  color: #111;
}

.light .contact p,
.light .contact address {
  color: #333;
}

.light .btn-outline {
  border-color: #0d6efd;
  color: #0d6efd;
}

.light .btn-outline:hover {
  background: #0d6efd;
  color: #fff;
}

.light .contact a {
  color: #0d6efd;
}

.light .contact a:hover {
  color: #084298;
}

/* ========== DARK THEME ========== */
.dark .contact,
.dark .contact-form,
.dark .contact-info {
  background: #121212;
  color: #f2f2f2;
}

.dark .contact p,
.dark .contact address {
  color: #d0d0d0;
}

.dark .btn-outline {
  border-color: #ffb703;
  color: #ffb703;
}

.dark .btn-outline:hover {
  background: #ffb703;
  color: #111;
}

.dark .contact a {
  color: #ffb703;
}

.dark .contact a:hover {
  color: #e6a700;
}

.dark .contact-form {
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.05);
}

/* ========== COMMON STYLES - Mobile First ========== */

.contact-hero {
  text-align: center;
  margin-bottom: 1.5rem;
}

.hero-image {
  width: 80%;
  max-width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

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

.contact-info h1 {
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.contact-info p {
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.company-details {
  margin-top: 1.5rem;
}

.company-details p {
  margin-bottom: 0.5rem;
}

address {
  font-style: normal;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  margin: 1rem 0;
  border: 2px solid;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline img {
  height: 18px;
  width: auto;
}

.map-box {
  margin-top: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
}

.map-box iframe {
  width: 100%;
  height: 250px;
  border: 0;
}

/* FORM - Mobile */
.contact-form {
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.contact-form h3 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.contact-form iframe {
  width: 100%;
  max-width: 100%;
  height: 474px;
  border: none;
  margin: 1rem 0;
}

.muted {
  opacity: 0.7;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* =======================
   TABLET (481px - 768px)
   ======================= */

@media (min-width: 481px) {
  .contact {
    padding: 1.5rem;
  }

  .contact-hero {
    margin-bottom: 2rem;
  }

  .hero-image {
    width: 60%;
    max-width: 350px;
  }

  .contact-info h1 {
    font-size: 2rem;
  }

  .contact-form {
    padding: 2rem;
  }

  .contact-form h3 {
    font-size: 1.65rem;
  }

  .map-box iframe {
    height: 300px;
  }
}

/* =======================
   TABLET LANDSCAPE (769px - 1024px)
   ======================= */

@media (min-width: 769px) {
  .contact {
    padding: 2rem;
  }

  .contact-hero {
    margin-bottom: 2.5rem;
  }

  .hero-image {
    width: 40%;
    max-width: 400px;
  }

  /* Two column grid */
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .contact-info h1 {
    font-size: 2.25rem;
  }

  .contact-form iframe {
    max-width: 400px;
  }

  .map-box iframe {
    height: 350px;
  }
}

/* =======================
   DESKTOP (1025px and up)
   ======================= */

@media (min-width: 1025px) {
  .contact {
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
  }

  .contact-hero {
    margin-bottom: 3rem;
  }

  .hero-image {
    width: 25%;
    max-width: 450px;
    border-radius: 12px;
  }

  /* Adjust grid ratio for better balance */
  .contact-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
  }

  .contact-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }

  .contact-info p {
    font-size: 1.05rem;
  }

  .company-details {
    margin-top: 2.5rem;
  }

  .contact-form {
    padding: 2.5rem;
    border-radius: 14px;
  }

  .contact-form h3 {
    font-size: 1.75rem;
  }

  .map-box iframe {
    height: 400px;
  }
}

/* =======================
   LARGE DESKTOP (1400px and up)
   ======================= */

@media (min-width: 1400px) {
  .contact {
    max-width: 1600px;
    padding: 3rem 3rem;
  }

  .contact-grid {
    gap: 4rem;
  }

  .hero-image {
    max-width: 500px;
  }
}

/* =======================
   TRANSITIONS
   ======================= */

.contact,
.contact-form,
.contact-info,
.btn-outline,
a {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* =======================
   UTILITY CLASSES
   ======================= */

/* Ensure content doesn't overflow on very small screens */
@media (max-width: 380px) {
  .contact-form iframe {
    height: 500px;
  }
  
  .btn-outline {
    width: 100%;
    justify-content: center;
  }
}

/* Print styles */
@media print {
  .contact-form {
    display: none;
  }
  
  .map-box iframe {
    display: none;
  }
}
