/* =========================================
   CONTACT SECTION STYLE (GRADIENT BG & COLOR MAP)
   ========================================= */

.contact-section {
  margin-top: -64px;
  padding-top: 96px;
  padding-bottom: 100px;

  /* Background Gradasi Sky Blue */
  background: linear-gradient(180deg, #dbeafe 0%, #f0f9ff 25%, #e0f2fe 100%);

  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: #0f172a;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: flex-start;
  margin-bottom: 80px;
}

/* --- Kiri: Info Kontak --- */
.contact-info-side h2 {
  font-size: 3rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.contact-info-side p {
  color: #64748b;
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 48px;
  max-width: 90%;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.method-item {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px;
  /* Background putih dengan sedikit transparansi agar menyatu dengan gradasi */
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.method-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.method-icon {
  width: 60px;
  height: 60px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: 0.3s ease;
}

.method-item:hover .method-icon {
  background: #2563eb;
  color: #ffffff;
  transform: rotate(-10deg);
}

.method-text h4 {
  font-size: 1.1rem;
  color: #0f172a;
  font-weight: 700;
  margin: 0 0 4px 0;
}

.method-text span {
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 500;
}

/* --- Kanan: Form Card --- */
.contact-form-card {
  background: #ffffff;
  padding: 50px;
  border-radius: 30px;
  border: 1px solid #e2e8f0;
  /* Shadow yang lebih menonjol di atas gradasi */
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.1);
  position: relative;
  z-index: 10;
}

.form-group {
  margin-bottom: 28px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  color: #0f172a;
  transition: all 0.2s ease-in-out;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.btn-submit {
  width: 100%;
  background: #0f172a;
  color: #fff;
  padding: 18px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  letter-spacing: 0.02em;
}

.btn-submit:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
}

.btn-submit:active {
  transform: translateY(0);
}

/* --- Map Section --- */
.map-container {
  margin-top: 80px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 30px;
  overflow: hidden;
  /* Shadow agar peta terlihat "mengambang" di atas gradasi */
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.08);
  position: relative;
  z-index: 2;
}

.map-header {
  padding: 24px 40px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.map-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.map-header h3 i {
  color: #3b82f6;
  font-size: 1.4rem;
}

.map-iframe-wrapper {
  width: 100%;
  line-height: 0;
  position: relative;
}

.map-iframe-wrapper iframe {
  width: 100%;
  height: 450px;
  border: 0;
  /* PERBAIKAN: Hapus filter grayscale agar peta berwarna */
  filter: none;
  transition: filter 0.3s ease;
}

/* Opsional: Sedikit efek kontras saat di-hover agar lebih interaktif */
.map-container:hover iframe {
  filter: contrast(1.05);
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .contact-info-side {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
  }
}

@media (max-width: 768px) {
  html body .contact-section {
    margin-top: 0 !important;
    padding-top: 14px !important;
    padding-bottom: 25px !important;
    min-height: auto !important;
  }

  .container {
    padding: 0 16px !important;
  }

  .contact-wrapper {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    margin-bottom: 20px !important;
  }

  .contact-info-side h2 {
    font-size: 1.65rem !important;
    margin-bottom: 6px !important;
  }

  .contact-info-side p {
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
    margin-bottom: 14px !important;
    max-width: 100% !important;
  }

  .contact-methods {
    gap: 10px !important;
  }

  .method-item {
    padding: 10px 12px !important;
    gap: 12px !important;
    border-radius: 14px !important;
  }

  .method-icon {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.1rem !important;
    border-radius: 10px !important;
  }

  .method-text h4 {
    font-size: 0.92rem !important;
    margin: 0 0 2px 0 !important;
  }

  .method-text span {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
  }

  .contact-form-card {
    padding: 16px 14px !important;
    border-radius: 18px !important;
    margin-top: 6px !important;
  }

  .form-group {
    margin-bottom: 12px !important;
  }

  .form-group label {
    font-size: 0.74rem !important;
    margin-bottom: 4px !important;
  }

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

  .form-group textarea {
    padding: 10px 14px !important;
    font-size: 0.88rem !important;
    border-radius: 10px !important;
    min-height: 85px !important;
  }

  .btn-submit {
    padding: 12px !important;
    font-size: 0.88rem !important;
    border-radius: 10px !important;
  }

  .map-container {
    margin-top: 20px !important;
    border-radius: 18px !important;
  }

  .map-header {
    padding: 10px 14px !important;
  }

  .map-header h3 {
    font-size: 0.95rem !important;
  }

  .map-iframe-wrapper iframe {
    height: 220px !important;
  }
}

/* =========================================
   CONTACT NIGHT MODE STYLES
   ========================================= */

/* 1. Global Section & Headers */
body.night-mode .contact-section {
  background: linear-gradient(180deg, #0b0f19 0%, #0f172a 100%) !important;
  color: #f8fafc !important;
}

body.night-mode .contact-info-side h2,
body.night-mode .method-text h4,
body.night-mode .map-header h3 {
  color: #ffffff !important;
}

body.night-mode .contact-info-side p,
body.night-mode .method-text span,
body.night-mode .form-group label {
  color: #cbd5e1 !important;
}

/* 2. Contact Method Items */
body.night-mode .method-item {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
}

body.night-mode .method-item:hover {
  background: #1e293b !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4) !important;
}

body.night-mode .method-icon {
  background: rgba(37, 99, 235, 0.2) !important;
  color: #60a5fa !important;
}

body.night-mode .method-item:hover .method-icon {
  background: #2563eb !important;
  color: #ffffff !important;
}

/* 3. Contact Form Card */
body.night-mode .contact-form-card {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5) !important;
}

body.night-mode .form-group input,
body.night-mode .form-group textarea {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
}

body.night-mode .form-group input::placeholder,
body.night-mode .form-group textarea::placeholder {
  color: #94a3b8 !important;
}

body.night-mode .form-group input:focus,
body.night-mode .form-group textarea:focus {
  background: #0f172a !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2) !important;
}

body.night-mode .btn-submit {
  background: #2563eb !important;
  color: #ffffff !important;
}

body.night-mode .btn-submit:hover {
  background: #1d4ed8 !important;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.5) !important;
}

/* 4. Map Container */
body.night-mode .map-container {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}

body.night-mode .map-header {
  background: #0f172a !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body.night-mode .map-header h3 i {
  color: #60a5fa !important;
}

body.night-mode .map-iframe-wrapper iframe {
  filter: invert(90%) hue-rotate(180deg) contrast(1.2) !important;
}

body.night-mode .map-container:hover iframe {
  filter: invert(90%) hue-rotate(180deg) contrast(1.3) !important;
}