

/* ================================================================
   CONTACT PAGE STYLES
   ================================================================ */
.contact-page { background: var(--paper); min-height: 100vh; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* --- HERO SECTION --- */
.contact-hero {
  position: relative; 
  /* KUNCI 1: Area gambar diperbesar agar lebih lega */
  height: 75vh; 
  min-height: 650px; 
  
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #FFF; 
  padding-bottom: 120px; /* Mendorong teks sedikit ke atas menjauhi kartu */
}
.contact-hero__bg {
  position: absolute; inset: 0; z-index: 1;
}
.contact-hero__bg img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  
  /* KUNCI 2: Menggeser fokus gambar agak ke atas agar kepala tidak terpotong */
  object-position: center 20%; 
}
.contact-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(21,19,15,0.9) 0%, rgba(33,29,23,0.7) 100%);
}
.contact-hero__text { position: relative; z-index: 2; max-width: 600px; padding: 0 24px; }
.contact-hero__title { font-family: var(--f-display); font-size: clamp(36px, 5vw, 52px); font-weight: 800; margin: 12px 0 16px; line-height: 1.1; }
.contact-hero__sub { font-size: 18px; color: rgba(255,255,255,0.8); line-height: 1.6; }

/* --- CONTACT CARD (LAYERED / OFFSET LAYOUT) --- */
.contact-main { 
  position: relative; 
  z-index: 10; 
  
  /* KUNCI 3: Ditarik lebih jauh ke atas (sebelumnya -120px) agar gigitannya pas */
  margin-top: -180px; 
}
/* 1. Wrapper diubah ke "stretch" agar tingginya sinkron */
.contact-card {
  display: flex; 
  align-items: stretch; /* KUNCI FIX 1: Memaksa kedua belah pihak selalu sama tinggi */
  justify-content: center;
  background: transparent; 
  box-shadow: none;
}

/* 2. KIRI: INFO KONTAK (Tampil paling depan) */
.contact-info {
  flex: 1; 
  min-width: 320px; 
  background: var(--stage); color: #FFF;
  padding: 64px 48px; /* Padding diseimbangkan */
  display: flex; flex-direction: column;
  border-radius: 24px; 
  box-shadow: 0 24px 48px rgba(0,0,0,0.25); 
  z-index: 2; 
  position: relative;
}
.contact-info h2 { font-family: var(--f-display); font-size: 32px; margin-bottom: 12px; }
.contact-info__desc { color: rgba(255,255,255,0.7); font-size: 15px; line-height: 1.6; margin-bottom: 40px; }

.info-list { display: flex; flex-direction: column; gap: 32px; } /* flex-grow dibuang */
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(255,77,0,0.1); color: var(--orange);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
.info-icon svg { width: 20px; height: 20px; }
.info-text { display: flex; flex-direction: column; gap: 4px; }
.info-text strong { font-size: 16px; font-weight: 600; }
.info-text span { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.5; }

.contact-social { 
  margin-top: auto; /* KUNCI FIX 2: Otomatis mendorong ikon sosmed ke posisi paling bawah */
  border-top: 1px solid rgba(255,255,255,0.1); 
  padding-top: 24px; 
}
.contact-social span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.social-icons { display: flex; gap: 16px; }
.social-icons a {
  width: 36px; height: 36px; background: rgba(255,255,255,0.05); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; color: #FFF;
  transition: all 0.3s ease;
}
.social-icons a:hover { background: var(--orange); transform: translateY(-3px); }
.social-icons svg { width: 18px; height: 18px; }

/* 3. KANAN: FORMULIR (Tampil di belakang, menjorok ke kiri) */
.contact-form-wrapper {
  flex: 1.5; 
  min-width: 320px; 
  background: #FFFFFF;
  border-radius: 24px; 
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
  z-index: 1; 
  margin-left: -40px; 
  padding: 64px 64px 64px 80px; 
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center; /* KUNCI FIX 3: Memastikan form di dalamnya selalu rapi di tengah */
}

/* Jarak antar kolom dirapatkan menjadi 20px */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.input-group { display: flex; flex-direction: column; gap: 8px; }

/* Menghapus margin raksasa agar jarak diurus penuh oleh Grid Gap */
.full-width { grid-column: 1 / -1; margin-bottom: 0; }

/* Memberikan jarak khusus HANYA untuk kolom Pesan (karena dia di luar Grid) menuju tombol Submit */
.contact-form > .full-width { margin-bottom: 28px; }

.input-group label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.input-group input, .input-group select, .input-group textarea {
  width: 100%; padding: 14px 16px; font-family: var(--f-body); font-size: 15px;
  background: var(--paper); border: 1px solid rgba(21,19,15,0.1);
  border-radius: 12px; color: var(--stage); outline: none;
  transition: all 0.3s ease;
}
.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
  background: #FFFFFF; border-color: var(--orange); box-shadow: 0 4px 12px rgba(255,77,0,0.1);
}
.input-group textarea { resize: vertical; min-height: 120px; }

.submit-btn {
  background: var(--orange); color: #FFF; font-family: var(--f-body);
  font-size: 15px; font-weight: 600; padding: 16px 32px; border: none; border-radius: 50px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.3s ease;
}
.submit-btn:hover { background: var(--orange-deep); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,77,0,0.2); }
.submit-btn svg { width: 18px; height: 18px; }

/* ================================================================
   KLIK INTERAKTIF (UX) UNTUK INFO KONTAK
   ================================================================ */
.info-link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-bottom: 1px solid transparent; /* Garis bawah transparan */
  padding-bottom: 2px;
}

.info-link:hover {
  color: var(--orange);
  transform: translateX(4px); /* Bergeser halus ke kanan saat dihover */
  border-bottom-color: rgba(255,77,0,0.3); /* Muncul garis bawah estetik */
}

/* ================================================================
   PREMIUM MAP SECTION (TIDAK POLOS)
   ================================================================ */
.contact-map-section {
  margin: 60px 0 40px 0; 
}

.map-premium-wrapper {
  position: relative;
  width: 100%;
  height: 480px;
  /* REVISI: Lengkungan dikurangi jadi 12px agar lebih tegas dan elegan */
  border-radius: 12px; 
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08); 
  background: var(--line); 
  border: 1px solid rgba(21, 19, 15, 0.05); 

  /* ==================================================
     KUNCI FIX MAPS BLANK DI HP (KHUSUSNYA iPHONE/SAFARI) 
     ================================================== */
  transform: translateZ(0); 
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.map-premium-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: contrast(1.05) grayscale(15%) hue-rotate(-5deg);
  transition: filter 0.5s ease;
}

.map-premium-wrapper iframe:hover {
  filter: contrast(1) grayscale(0%) hue-rotate(0deg);
}

/* Floating Badge UI (Elemen melayang di atas peta) */
.map-floating-badge {
  position: absolute;
  top: 24px;
  /* REVISI: Dipindah ke KANAN agar tidak menutupi kotak putih info asli Google Maps */
  right: 24px; 
  left: auto; 
  
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 20px;
  /* REVISI: Kurva badge disamakan dengan kurva luar (12px) agar harmonis */
  border-radius: 12px; 
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  z-index: 10;
  pointer-events: auto; 
  border: 1px solid rgba(255,255,255,0.5);
}

.badge-icon { font-size: 24px; }
.badge-text { display: flex; flex-direction: column; gap: 2px; }
.badge-text strong { font-family: var(--f-display); font-size: 15px; color: var(--stage); line-height: 1.2; }
.badge-text span { font-family: var(--f-body); font-size: 12px; color: var(--ink-soft); }

.badge-btn {
  background: rgba(255,77,0,0.1);
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 50px;
  text-decoration: none;
  margin-left: 8px;
  transition: all 0.3s ease;
}

.badge-btn:hover {
  background: var(--orange);
  color: #FFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255,77,0,0.2);
}


/* --- RESPONSIVE MOBILE --- */
@media (max-width: 900px) {

  @media (max-width: 900px) {
  /* ... (aturan CSS HP Anda yang sudah ada di sini) ... */
  
  /* Fix 5: Bug Render Google Maps di HP */
  .map-premium-wrapper iframe {
    filter: none !important; /* Wajib dihapus filternya agar maps bisa dirender engine HP */
  }
}
  .contact-main { margin-top: -60px; }
  .contact-card { flex-direction: column; align-items: stretch; }
  
  .contact-info { margin-bottom: -30px; padding: 40px 24px; z-index: 2; }
  .contact-form-wrapper { margin-left: 0; padding: 60px 24px 40px; z-index: 1; }
  
  .form-grid { grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
  .full-width { grid-column: auto; margin-bottom: 0; }
  .contact-form > .full-width { margin-bottom: 24px; }
  
  .contact-map-section { margin-top: 60px; } 
  
  /* REVISI: Kurva versi HP juga dibuat 12px */
  .map-premium-wrapper { height: 400px; border-radius: 12px; }
  
  .map-floating-badge {
    top: auto; 
    bottom: 24px; 
    left: 50%; 
    right: auto;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    justify-content: space-between;
  }
}

/* ================================================================
   BRANCH NETWORK (OUR ECOSYSTEM)
   ================================================================ */
.branch-network {
  padding: 10px 0 100px;
}

.branch-header {
  text-align: center;
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Aksesoris baru: Lencana Oranye di atas judul */
.kicker-badge {
  background: rgba(255, 77, 0, 0.1);
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 50px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-block;
}

.branch-header h2 {
  font-family: var(--f-display);
  font-size: clamp(32px, 4vw, 42px); 
  font-weight: 800;
  color: var(--stage);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.branch-header p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  max-width: 500px;
}

/* INI YANG TADI HILANG: Sistem pembagi 4 kolom */
.branch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* INI KOTAK PUTIHNYA */
.branch-card {
  background: #FFFFFF;
  padding: 32px 24px;
  border-radius: 16px;
  border: 1px solid rgba(21, 19, 15, 0.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.02);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.branch-icon {
  width: 48px;
  height: 48px;
  background: var(--paper);
  color: var(--ink-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.branch-icon svg { width: 24px; height: 24px; }

.branch-card h3 {
  font-family: var(--f-display);
  font-size: 18px;
  color: var(--stage);
  margin-bottom: 8px;
}

.branch-card p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1; 
}

.branch-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
  align-self: flex-start;
  transition: color 0.3s ease;
}

/* Hover Effect pada Branch Card */
.branch-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  border-color: rgba(255, 77, 0, 0.2);
}

.branch-card:hover .branch-icon {
  background: rgba(255, 77, 0, 0.1);
  color: var(--orange);
}

.branch-card:hover .branch-link {
  color: var(--orange-deep);
}

/* ================================================================
   RESPONSIVE KETAMBAHAN UNTUK BRANCH & FOOTER
   ================================================================ */
@media (max-width: 1024px) {
  .branch-grid { grid-template-columns: repeat(2, 1fr); }
}

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