/* ==========================================================================
   HALAMAN KONTAK (kontak.html)
   ========================================================================== */
/* ==========================================================================
   PERLEBAR CONTAINER & RUANG HALAMAN (MORE WIDESCREEN & FILLING)
   ========================================================================== */
/* 3. Menyesuaikan Grid 2, 3, dan 4 Kolom agar Menyebar Rapi di Layar Lebar */
.contact-grid {
  gap: 48px; /* Memberi ruang napas antar kolom lebar */
}

/* ==========================================
   PAGE KONTAK (EXACT MOCKUP DESIGN)
   ========================================== */
.contact-page-wrapper {
  background-color: none;
  position: relative;
  overflow: hidden;
  padding-bottom: 80px;
}

/* Hero Background Banner */
.contact-hero-section {
  background-image: url("../assets/header_hubungikami.png"), url("assets/header_hubungikami.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding: 60px 0 30px 0;
  min-height: 220px;
}

.main-contact-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.main-contact-title .navy {
  color: #1A2B56; /* Navy gelap khas desain mockup */
}

.contact-lead-desc {
  font-size: 1.1rem;
  color: #1A2B56;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

/* 2 Column Grid Layout */
.contact-content-section {
  margin-top: 10px;
  position: relative;
  z-index: 2;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: flex-start;
}

/* ==========================================
   KOLOM KIRI: INFO KONTAK CARDS
   ========================================== */
.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  background-color: #FFFFFF;
  border-radius: 20px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
  border: 1px solid #F3F4F6;
}

.contact-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-box .info-icon {
  font-size: 1.6rem;
}

/* Icon Colors */
.bg-location { background-color: #2B59C3; color: white; }

.contact-info-text h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1A2B56;
  margin: 0 0 4px 0;
}

.contact-info-text p {
  font-size: 0.88rem;
  color: #6B7280;
  margin: 0;
}

/* Styling Kartu Kontak Bertautan (Clickable) */
.contact-card-link {
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.contact-card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(43, 89, 195, 0.12);
  border-color: #2B59C3;
}

/* ==========================================
   KOLOM KANAN: FORMULIR PESAN
   ========================================== */
.contact-form-card {
  background-color: #FFFFFF;
  border-radius: 28px;
  padding: 36px 40px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.05);
  border: 1px solid #F3F4F6;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 16px;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1A2B56;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background-color: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 0.92rem;
  color: #1F2937;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  background-color: #FFFFFF;
  border-color: #2B59C3;
  box-shadow: 0 0 0 3px rgba(43, 89, 195, 0.1);
}

.form-group textarea {
  resize: vertical;
}

/* Tombol Kirim Pesan */
.btn-send-message {
  width: 100%;
  padding: 14px 28px;
  background-color: #FF2A85;
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 800;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(255, 42, 133, 0.25);
}

.btn-send-message:hover {
  background-color: #e01f72;
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  /* Responsive Styles */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .form-group {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .main-contact-title {
    font-size: 2.2rem;
  }
}

/* ==========================================================================
   10. MEDIA QUERIES (RESPONSIVE DISATUKAN)
   ========================================================================== */

@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ==========================================
   HALAMAN KONTAK & FORMULIR
   ========================================== */
.main-contact-title .navy {
  color: var(--blue) !important;
}

.contact-info-card {
  background-color: #FFFFFF !important;
  border-color: #E2E8F0;
}

.contact-card-link:hover {
  border-color: var(--blue) !important;
  box-shadow: 0 12px 30px rgba(77, 177, 211, 0.15) !important;
}

.bg-location { background-color: var(--blue) !important; }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 3px rgba(77, 177, 211, 0.15) !important;
}

.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background-color: #FFFFFF;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  box-sizing: border-box;
}

.form-group select:focus {
  border-color: var(--pink-main);
}

.btn-send-message:hover {
  background-color: #c23864 !important;
}


/* ==========================================================================
   HERO SECTION DECORATIVE ORNAMENTS (BACKGROUND LEVEL)
   ========================================================================== */

/* 1. Pastikan section hero menjadi acuan koordinat (relative) & overflow aman */
.hero, .hero-about, .detail-hero, .program-hero, .gallery-hero, .contact-hero-section {
  position: relative !important;
  overflow: hidden; /* Mencegah ornamen keluar dari batas layar */
}

/* 2. Pastikan Konten Utama (Teks, Tombol, Gambar Utama) Berada DI ATAS Ornamen */
.hero .container,
.hero-text-side,
.hero-art-side,
.hero-grid {
  position: relative;
  z-index: 2; /* Layer Konten Utama */
}

/* 3. Container Khusus Ornamen Background */
.hero-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Layer Background di Bawah Konten */
  pointer-events: none; /* Agar ornamen tidak menghalangi klik kursor/mouse */
}

/* 4. Base Class Semua Ornamen */
.decor-item {
  position: absolute;
  pointer-events: none;
  user-select: none;
  opacity: 0.85; /* Transparansi lembut agar terlihat seperti elemen background */
}

/* ==========================================================================
   TATA LETAK MASING-MASING ORNAMEN (CONPOSING & POSISIONING)
   ========================================================================== */

/* Splatter/Bercak Cat (Cat Spill) - Pojok Kiri Atas */
.decor-cat-spill {
  top: -20px;
  left: -30px;
  width: 280px;
  height: auto;
  transform: rotate(-15deg);
}

/* Bintang Berkilau (Blink Stars) - Kiri Tengah Samping Teks */
.decor-blink-star {
  top: 65%;
  left: 3%;
  width: 155px;
  height: auto;
}

/* Deretan 5 Bintang (5Star) - Kanan Atas di Belakang Gambar Utama */
.decor-5star {
  top: 10px;
  right: 2%;
  width: 160px;
  height: auto;
}

/* Garis Gelombang (Wavy Line) - Bawah Kiri Dekat Tombol */
.decor-wavy {
  bottom: 10px;
  right: 20%;
  width: 200px;
  height: auto;
}

/* Garis Setengah Lingkaran (Half Circle Line) - Kanan Bawah */
.decor-half-circle {
  bottom: -70px;
  right: -3%;
  width: 350px;
  height: auto;
}

/* Ikon Hati / Heart - Melayang di Tengah */
.decor-heart {
  top: 7%;
  left: 45%;
  width: 155px;
  height: auto;
  transform: rotate(12deg);
}

/* Ikon Bintang / Star - Melayang di Kanan Atas */
.decor-star {
  top: 5%;
 left: 30%;
  width: 250px;
  height: auto;
  transform: rotate(5deg);
}

/* ==========================================================================
   RESPONSIF MOBILE (<768px)
   ========================================================================== */
@media (max-width: 1440px){
  .decor-star { left: 25%; width: 200px; }
}

@media (max-width: 1024px) {
  .decor-heart { top: 10%; left: 40%; width: 140px; }
  .decor-half-circle { top: 52%;   right: -4%;   width: 250px; }
  .decor-wavy        { bottom: 1px; right: 23%;  width: 150px; }
  .decor-star { left: 20%; width: 180px; }
}

@media (max-width: 768px) {
  /* Di HP ukuran ornamen disesuaikan agar layar tidak terasa sempit */
  .decor-cat-spill { width: 110px; top: -10px; left: -15px; }
  .decor-5star { width: 75px; }
  .decor-wavy { right: 20% ; width: 90px; }
  .decor-half-circle { width: 130px; }
  .decor-blink-star, .decor-heart { opacity: 0.5; }
  .decor-star { width: 150px; left: 15%; }
}

@media (max-width: 425px) {
  .decor-blink-star{ left: 1%; width: 100px; }
  .decor-half-circle { top: 67% ; width: 120px; }
  .decor-heart { width: 125px; opacity: 0.4; }
  .decor-wavy { display: none}
  .decor-star { opacity: 0.4; }
}

/* ==========================================================================
   PERBAIKAN KHUSUS RESPONSIF MOBILE (< 425PX)
   ========================================================================== */
@media (max-width: 425px) {
  /* Ornamen dekorasi disesuaikan */
  .decor-blink-star { left: 1%; width: 100px; }
  .decor-half-circle { top: 67%; width: 120px; }
  .decor-heart { width: 125px; }
  .decor-wavy { display: none; }

  /* Mencegah overflow horizontal pada container */
  .contact-page-wrapper,
  .contact-content-section,
  .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  /* Main Title & Lead Text */
  .main-contact-title {
    font-size: 1.8rem !important;
    line-height: 1.2;
  }

  .contact-lead-desc {
    font-size: 0.95rem !important;
  }

  /* Kolom Kiri: Mencegah Kartu Info Terpotong */
  .contact-info-col {
    gap: 12px !important;
    width: 100% !important;
  }

  .contact-info-card {
    padding: 14px 16px !important; /* Diperkecil dari 24px ke 16px agar muat */
    gap: 12px !important;          /* Diperkecil dari 20px ke 12px */
    border-radius: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .contact-icon-box {
    width: 44px !important;        /* Diperkecil dari 56px ke 44px */
    height: 44px !important;
    border-radius: 12px !important;
    flex-shrink: 0 !important;     /* Mencegah ikon ciut/tergepeng */
  }

  .contact-icon-box .info-icon {
    font-size: 1.25rem !important;
  }

  .contact-info-text h3 {
    font-size: 1.05rem !important;
    margin-bottom: 2px !important;
  }

  .contact-info-text p {
    font-size: 0.82rem !important;
    line-height: 1.4;
    word-break: break-word;        /* Mencegah teks/URL panjang merusak batas kartu */
  }

  /* Kolom Kanan: Form Card */
  .contact-form-card {
    padding: 20px 16px !important; /* Diperkecil dari 40px ke 16px agar seimbang */
    border-radius: 20px !important;
    gap: 14px !important;
  }

  .form-group label {
    font-size: 0.88rem !important;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 14px !important;
    font-size: 0.88rem !important;
    border-radius: 10px !important;
  }

  .btn-send-message {
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
  }
}

.icon-lokasi {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%2010c0%206-8%2012-8%2012s-8-6-8-12a8%208%200%200%201%2016%200Z%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2210%22%20r%3D%223%22%2F%3E%3C%2Fsvg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%2010c0%206-8%2012-8%2012s-8-6-8-12a8%208%200%200%201%2016%200Z%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2210%22%20r%3D%223%22%2F%3E%3C%2Fsvg%3E");
}

.contact-icon-box .info-icon {
  display: block;
  width: 26px;                     /* samakan dengan ukuran ikon WA & IG di sebelahnya */
  height: 26px;
  background-color: #FFFFFF;       /* warna ikon — ubah di sini kalau perlu */
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
}
/* ==========================================================================
   KOTAK PERSETUJUAN KEBIJAKAN & PRIVASI
   Diletakkan di bagian paling bawah file supaya menang terhadap aturan
   .form-group dan media query 425px di atasnya.

   Selektornya sengaja ditulis panjang (.contact-form-card .form-consent ...)
   bukan karena gaya, tapi karena harus mengalahkan tiga aturan yang sudah
   ada di file ini:
     1. .form-group        -> grid 140px 1fr (baris ini tidak boleh jadi grid)
     2. .form-group label  -> font-weight 700 (teks persetujuan jangan tebal)
     3. @media 425px .form-group input { ... !important }
        -> memberi padding & radius 10px ke SEMUA input, termasuk kotak
           centang. Karena pakai !important, lawannya juga harus !important.
   ========================================================================== */
.contact-form-card .form-consent {
  /* block, bukan grid — kalau grid, labelnya terjepit di kolom 140px */
  display: block;
  margin-top: 2px;
  margin-bottom: 4px;
}

/* Seluruh baris dibungkus <label>, jadi teksnya pun bisa diklik untuk
   mencentang. Penting di layar sentuh: kotak 20px terlalu kecil kalau jadi
   satu-satunya sasaran. */
.contact-form-card .form-consent .consent-label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
  font-weight: 400;        /* mengalahkan .form-group label */
  margin: 0;
}

/* Kotak centangnya kotak asli browser, hanya tampilannya diganti. Dengan
   begitu atribut "required" tetap bekerja, termasuk pesan bawaan browser
   "Harap centang kotak ini" saat tombol kirim ditekan. */
.contact-form-card .form-consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;

  width: 20px !important;
  height: 20px !important;
  padding: 0 !important;
  border-radius: 6px !important;
  border: 2px solid #CBD5E1 !important;
  background-color: #FFFFFF !important;

  flex-shrink: 0;
  margin: 2px 0 0;         /* mendudukkan kotak sejajar baris pertama teks */

  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;

  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.18s, border-color 0.18s;
}

.contact-form-card .form-consent input[type="checkbox"]:hover {
  border-color: var(--blue, #3BA7E8) !important;
}

.contact-form-card .form-consent input[type="checkbox"]:checked {
  background-color: var(--blue, #3BA7E8) !important;
  border-color: var(--blue, #3BA7E8) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

/* Penanda fokus untuk pengguna keyboard */
.contact-form-card .form-consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--blue, #3BA7E8);
  outline-offset: 2px;
}

.contact-form-card .form-consent .consent-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: #6B7280;
  text-wrap: pretty;
}

.contact-form-card .form-consent .consent-text a {
  color: var(--blue, #3BA7E8);
  font-weight: 700;
  text-decoration: underline;
}

.contact-form-card .form-consent .consent-text a:hover {
  color: #FF2A85;
}

@media (max-width: 425px) {
  .contact-form-card .form-consent .consent-text {
    font-size: 12.5px !important;
    line-height: 1.5;
  }
}