/* --- KONTAK PAGE SPECIFIC STYLES --- */

/* Common styles for contact sections */
.contact-section {
  padding: 80px 0;
  text-align: center;
}

.contact-section.light-bg {
  background-color: var(
    --light-gray
  ); /* Assuming var(--light-gray) is defined in style.css */
}

.contact-section.dark-bg {
  background-color: var(
    --dark-green
  ); /* Assuming var(--dark-green) is defined in style.css */
  color: var(--white);
}

.contact-section .section-title {
  color: var(--dark-green);
  font-size: 2.8rem;
  margin-bottom: 15px;
}
.contact-section .section-title.white-text {
  color: var(--white);
}

.contact-section .section-subtitle {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.contact-section .section-subtitle.white-text {
  color: rgba(255, 255, 255, 0.8);
}

/* --- Tentang Raftrip Section --- */
.about-us-content {
  display: flex;
  flex-wrap: wrap; /* Allows wrapping on smaller screens */
  gap: 40px;
  align-items: center;
  text-align: left;
  max-width: 1000px;
  margin: 0 auto;
}

.about-image {
  flex: 1 1 400px; /* Flex-grow, flex-shrink, basis */
  max-width: 50%; /* Max width for image column */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text {
  flex: 1 1 450px; /* Flex-grow, flex-shrink, basis */
  max-width: 50%; /* Max width for text column */
}

.about-text .section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-align: left;
}

.about-text p {
  font-size: 1.05em;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 15px;
}

/* --- Informasi Kontak Kami Grid --- */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(280px, 1fr)
  ); /* Responsive grid for cards */
  gap: 30px;
  margin-top: 40px;
}

.contact-card {
  background-color: var(--white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 200px; /* Ensure consistent height for cards */
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.contact-card i {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.contact-card h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--dark-green);
}

.contact-card .contact-detail {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text-color);
}

.contact-card .contact-note {
  font-size: 0.95rem;
  color: var(--light-text-color); /* Lighter text for notes */
}

/* Specific colors for contact cards (matching image) */
.contact-card.blue-card {
  background-color: #007bff;
  color: var(--white);
}
.contact-card.blue-card i,
.contact-card.blue-card h3,
.contact-card.blue-card .contact-detail,
.contact-card.blue-card .contact-note {
  color: var(--white);
}
.contact-card.green-card {
  background-color: #28a745;
  color: var(--white);
}
.contact-card.green-card i,
.contact-card.green-card h3,
.contact-card.green-card .contact-detail,
.contact-card.green-card .contact-note {
  color: var(--white);
}
.contact-card.teal-card {
  background-color: #17a2b8;
  color: var(--white);
}
.contact-card.teal-card i,
.contact-card.teal-card h3,
.contact-card.teal-card .contact-detail,
.contact-card.teal-card .contact-note {
  color: var(--white);
}
.contact-card.yellow-card {
  background-color: #ffc107;
  color: var(--dark-green);
}
.contact-card.yellow-card i,
.contact-card.yellow-card h3,
.contact-card.yellow-card .contact-detail,
.contact-card.yellow-card .contact-note {
  color: var(--dark-green);
}
.contact-card.gray-card {
  background-color: #6c757d;
  color: var(--white);
}
.contact-card.gray-card i,
.contact-card.gray-card h3,
.contact-card.gray-card .contact-detail,
.contact-card.gray-card .contact-note {
  color: var(--white);
}

/* --- Temukan Kami di Peta Section --- */
.map-container-kontak {
  width: 100%;
  max-width: 1000px;
  margin: 40px auto 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  min-height: 450px; /* Ensure map has a minimum height */
}

.map-container iframe {
  width: 100%;
  height: 100%; /* Fill the container */
  display: block; /* Remove extra space below iframe */
}
/* --- Temukan Kami di Peta Section --- */
.map-container {
  width: 100%;
  max-width: 1000px;
  margin: 40px auto 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  /* Hapus min-height di sini jika menggunakan .map-responsive karena tinggi akan diatur oleh padding-bottom */
  /* min-height: 450px; */ /* BISA DIHAPUS ATAU KOMENTARI */
}

/* Penambahan untuk Responsif Peta (Metode Aspek Rasio) */
.map-responsive {
  overflow: hidden;
  padding-bottom: 56.25%;

  position: relative;
  height: 0;
}

.map-responsive iframe {
  left: 0;
  top: 0;
  height: 100%; /* Iframe mengisi penuh tinggi .map-responsive */
  width: 100%; /* Iframe mengisi penuh lebar .map-responsive */
  position: absolute; /* Penting: Untuk mengisi ruang yang dibuat oleh padding-bottom */
}

/* ... (Kode CSS Responsive Adjustments tetap sama) ... */
/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  /* Tablet view */
  .page-header-section.kontak-header-bg h1 {
    font-size: 2.8rem;
  }
  .page-header-section.kontak-header-bg p {
    font-size: 1.1rem;
  }
  .contact-section .section-title {
    font-size: 2.4rem;
  }
  .contact-section .section-subtitle {
    font-size: 1em;
  }

  /* About Us Section */
  .about-us-content {
    flex-direction: column; /* Stack image and text */
    gap: 30px;
  }
  .about-image,
  .about-text {
    max-width: 100%; /* Allow full width */
  }
  .about-image {
    order: -1; /* Place image on top when stacked */
  }
  .about-text .section-title,
  .about-text p {
    text-align: center; /* Center text when stacked */
  }
  .about-text p {
    padding: 0 15px; /* Add some padding for better readability */
  }

  /* Contact Cards Grid */
  .contact-cards-grid {
    grid-template-columns: repeat(
      auto-fit,
      minmax(250px, 1fr)
    ); /* Slightly smaller cards */
    gap: 20px;
  }
}

@media (max-width: 768px) {
  /* Mobile Large */
  .page-header-section.kontak-header-bg {
    padding: 60px 0;
    min-height: 200px;
  }
  .page-header-section.kontak-header-bg h1 {
    font-size: 2rem;
  }
  .page-header-section.kontak-header-bg p {
    font-size: 0.95rem;
  }
  .contact-section {
    padding: 60px 0;
  }
  .contact-section .section-title {
    font-size: 2rem;
  }
  .contact-section .section-subtitle {
    margin-bottom: 30px;
  }

  .about-us-content {
    gap: 20px;
  }
  .about-image {
    height: auto; /* Allow image to scale */
  }
  .about-image img {
    height: auto;
  }

  .contact-cards-grid {
    grid-template-columns: 1fr; /* Stack on mobile */
    max-width: 400px; /* Limit width for stacked items */
    margin-left: auto;
    margin-right: auto;
  }

  .contact-card i {
    font-size: 3rem;
  }
  .contact-card h3 {
    font-size: 1.6rem;
  }
  .contact-card .contact-detail {
    font-size: 1.1rem;
  }
  .contact-card .contact-note {
    font-size: 0.85rem;
  }

  .map-container {
    min-height: 300px; /* Smaller map on mobile */
  }
}

@media (max-width: 480px) {
  /* Mobile Small */
  .page-header-section.kontak-header-bg h1 {
    font-size: 1.8rem;
  }
  .page-header-section.kontak-header-bg p {
    font-size: 0.85rem;
  }
  .contact-section .section-title {
    font-size: 1.8rem;
  }
  .about-text .section-title {
    font-size: 2rem;
  }
}
