/* --- Global --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #f9f9f9;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* --- Header --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 0;
  background: #f9f9f9;         /* supaya tidak transparan */
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  z-index: 999;  
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 45px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

/* Navbar dasar */
.nav-links li a {
  color: #000; /* warna hitam normal */
  text-decoration: none;
  display: flex;
  font-weight: 500;
  transition: color 0.2s ease;
  }

/* Hover effect */
.nav-links li a:hover {
  color: #555; /* warna abu-abu lebih redup */
  display: flex;
  }

.nav-buttons {
  display: flex;
  gap: 10px;
}

.btn-outline {
  border: 2px solid #c8102e;
  color: #c8102e;
  padding: 6px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.btn-outline:hover {
  transform: scale(1.05);
  background: #c8102e;
  color: white;
}

.btn-primary {
  border: 2px solid #c8102e;
  background: #c8102e;
  color: white;
  padding: 6px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.btn-primary:hover {
  transform: scale(1.05);
  background: #fff;
  color: #c8102e;
}

/* --- RESPONSIVE --- */
/* NEW: Tambahkan hamburger menu styling */
.hamburger {
  display: none; /* sembunyikan di desktop */
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #000;
  border-radius: 3px;
  transition: 0.3s;
}

/* --- UPDATE: Tambahan helper class --- */
.mobile-only {
  display: none;
}

.desktop-only {
  display: flex;
}

/* NEW: Styling untuk nav di mobile */
@media (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 65px; /* di bawah header */
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 15px;
    background: #f9f9f9;
    padding: 20px;
    transform: translateY(-120%);
    transition: transform 0.3s ease-in-out;
  }
  
  .nav-links .mobile-only a {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 5px;
  }

  nav ul.show { /* ketika menu aktif */
    transform: translateY(0);
  }

  .nav-buttons {
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  .hamburger {
    display: flex; /* tampilkan hamburger */
  }
  
   /* --- UPDATE: sembunyikan tombol desktop, tampilkan mobile --- */
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  /* --- UPDATE: style tombol di hamburger menu --- */
  .nav-links .btn-outline,
  .nav-links .btn-primary {
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
  }
  
  .nav-links .mobile-only .btn-outline {
    color: #c8102e;
  }
  
  .nav-links .mobile-only .btn-outline:hover {
	color: white;
	display: flex;
	align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
  }
  
  .nav-links .mobile-only .btn-primary {
    color: #fff;
	border: 2px solid #c8102e;
  }
  
  .nav-links .mobile-only .btn-primary:hover {
	background: #fff; 
	color: #c8102e;
	display: flex;
	align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
  }
}

body {
  padding-top: 80px; /* sama dengan tinggi header */
}

/* ======= HEADER ======= */
.faq-header {
  text-align: center;
  background: linear-gradient(135deg, #c8102e, #d73349);
  color: white;
  padding: 3rem 1rem;
  border-radius: 0 0 30px 30px;
}

.faq-header h1 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.search-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.search-container input {
  width: 60%;
  max-width: 500px;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: none;
  outline: none;
  font-size: 1rem;
}

.search-container button {
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  border: 2px solid white;
  background: transparent;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.search-container button:hover {
  background-color: white;
  color: #c8102e;
}

/* ======= FAQ CONTAINER ======= */
.faq-container {
  max-width: 800px;
  background-color: white;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.faq-container h2 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

/* ======= ACCORDION ======= */
.accordion-item {
  border-bottom: 1px solid #ddd;
}

.accordion-header {
  background: none;
  border: none;
  outline: none;
  width: 100%;
  text-align: left;
  padding: 1rem 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-header::after {
  content: "▼";
  font-size: 0.8rem;
  transition: transform 0.3s;
}

.accordion-header.active::after {
  transform: rotate(-180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  padding-left: 0.5rem;
}

.accordion-content p {
  padding: 0.8rem 0;
  font-size: 0.95rem;
  color: #555;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 768px) {
  .faq-header h1 {
    font-size: 1.5rem;
  }

  .search-container input {
    width: 80%;
  }

  .faq-container {
    padding: 1.5rem;
    margin: 1.5rem;
  }
}

@media (max-width: 480px) {
  .faq-header {
    padding: 2rem 1rem;
  }

  .faq-header h1 {
    font-size: 1.2rem;
  }

  .search-container {
    flex-direction: column;
  }

  .search-container input {
    width: 90%;
  }

  .search-container button {
    width: 50%;
    margin-top: 0.5rem;
  }

  .faq-container {
    margin: 1rem;
    padding: 1rem;
  }
}

/* Contact Section*/
.contact-section {
  background: #f9f9f9;
  padding: 60px 20px;
}

.contact-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.contact-info {
  flex: 1;
}

.contact-info h2 {
  font-size: 36px;
  font-weight: 700;
  color: #c8102e;
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 16px;
  color: #444;
  margin-bottom: 15px;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 2px solid #c8102e;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  color: #c8102e;
  text-decoration: none;
  transition: 0.3s;
}

.whatsapp-btn i {
  color: #25D366;
  font-size: 20px;
}

.whatsapp-btn:hover {
  background: #c8102e;
  color: #fff;
}

.contact-form {
  flex: 1;
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  border: 1px solid #ccd6e0;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0b2d60;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 13px;
  color: #777;
}

.form-footer a {
  color: #c8102e;
  text-decoration: none;
}

.submit-btn {
  background: #c8102e;
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
  border: 2px solid #c8102e;
}

.submit-btn:hover {
  background: #fff;
  color: #c8102e;
}

/* Popup Container */
.popup {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Show popup */
.popup.show {
  display: flex;
  opacity: 1;
}

/* Popup Content */
.popup-content {
  position: relative;
  background: #fff;
  padding: 30px 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  max-width: 350px;
  animation: fadeIn 0.3s ease;
}

/* Close Button */
#popupClose {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
  color: #555;
  font-weight: bold;
}

/* Animasi */
@keyframes fadeIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Pesan sukses/gagal */
.popup.success .popup-content { border-left: 6px solid #28a745; }
.popup.error .popup-content { border-left: 6px solid #dc3545; }

/* Responsif */
@media (max-width: 992px) {
  .contact-container {
    flex-direction: column;
  }

  .contact-info, 
  .contact-form {
    width: 100%;
  }

  .contact-info h2 {
    font-size: 22px;
  }

  .contact-info p {
    font-size: 14px;
  }

  .form-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Footer Section */
.footer {
  background: #f9f9f9;
  color: #111;
  padding: 40px 20px;
  font-size: 14px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto 30px auto;
}

.footer-logo img {
  max-width: 150px;
  margin-bottom: 20px;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 150px;
}

.footer-column h4 {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 10px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  color: #969393;
  text-decoration: none;
  transition: 0.3s;
}

.footer-column ul li a:hover {
  color: #000;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 20px auto 0 auto;
  font-size: 13px;
}

.social-icons a {
  color: #969393;
  font-size: 18px;
  margin-left: 15px;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #000;
}

/* Responsif */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    text-align: left;
  }

   .footer-columns {
    flex-direction: column; /* ⬅️ bikin vertical di HP */
    align-items: left;
    gap: 25px;
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}