/* Global Styles */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background: url('default_image_home.webp') no-repeat center center fixed;
  background-size: cover;
  color: white;
}

.header {
    position: fixed; /* Keep the header fixed at the top */
    top: 0; /* Position it at the top */
    width: 100%; /* Make it span the full width */
    padding: 1rem 2rem; /* Add padding for spacing */
    background-color: #0e4213; /* Example background color */
    z-index: 1000; /* Ensure it stays above other content */
    height: 60px; /* Ensure logo height is consistent */
}
.header-container {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo-container{
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo {
  height: 60px;
  width: auto;
}
.header-text {
  display: flex;
  flex-direction: column;
  height: 60px;
  justify-content: center;
  line-height: 0.5;
}
.header-title {
  font-size: 2rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 0;
}

.header-subtitle {
  font-size: 1rem;
  color: #ffffff;
}

.header-subtitle-mobile {
  display: none;
  font-size: 1rem;
  color: #ffffff;
}

.logo-link {
  text-decoration: none;
  color: inherit;
}

.login-button {
    background: linear-gradient(135deg, #09490e 0%, #356140 100%);
    color: white;
    padding: 0.2rem 0.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(21, 131, 12, 0.3);
}
.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(10, 161, 22, 0.4);
}

/* modal login */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 420px;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, #09490e 0%, #356140 100%);
    padding: 1.5rem;
    border-radius: 1rem 1rem 0 0;
    color: white;
    position: relative;
}

.modal-header h2 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-header p {
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.25rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.form-control {
    width: 100%;
    max-width: 300px;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}


.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
}

.remember-me {
    display: flex;
    color: #6b7280;
    align-items: center;
    gap: 0.5rem;
}

.remember-me input {
    margin: 0;
}

.forgot-password {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.875rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #09490e 0%, #356140 100%);
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4);
}

.signup-link {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.signup-link a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Popup styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
    z-index: 1001;
}

.popup-overlay.active {
    visibility: visible;
    opacity: 1;
}

.popup {
    background: white;
    padding: 30px;
    border-radius: 10px;
    width: 400px;
    max-width: 90%;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    color: #666;
}

.popup h2 {
    margin-bottom: 20px;
    color: #333;
}

.popup form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.popup button {
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.popup button:hover {
    background: #0056b3;
}

.register-link {
    color: #007bff;
    cursor: pointer;
    text-align: center;
    margin-top: 15px;
}



.menu-item {
  text-align: center;
  background: rgba(3, 38, 4, 0.7);
  padding: 20px;
  border-radius: 15px;
  width: 150px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.menu-item i {
  font-size: 40px;
  color: #ffffff;
  transition: transform 0.3s ease, color 0.3s ease;

}

.menu-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px #25a159;
  color: #25a159;
}

.menu-item:hover i {
  color: #25a159;
  transform: scale(1.2);
}

.menu-item p {
  font-size: 1rem;
  margin: 0;
}

.footer {
  position: fixed;
  width: 100%;
  background-color: #0e4213;
  color: white;
  text-align: center;
  padding: 5px 0; /* Mengurangi padding vertikal */
  bottom: 0;
}

.home-and-call {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin-bottom: 5px; /* Mengurangi jarak ke ikon sosial */
}

.icon-wrapper {
  text-align: center;
}

.icon-wrapper i {
  font-size: 20px; /* Ukuran ikon sedikit lebih kecil */
  color: white;
  transition: color 0.3s ease;
}

.icon-wrapper p {
  margin: 2px 0 0;
  font-size: 12px; /* Ukuran teks lebih kecil */
  color: white;
}

.icon-wrapper a:hover i {
  color: #25a159;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px; /* Mengurangi jarak antar ikon sosial */
  margin-top: 5px; /* Mengurangi jarak atas secara signifikan */
}

.social-icons a {
  font-size: 18px; /* Ukuran ikon sosial lebih kecil */
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #25a159;
}

.footer-text {
  font-size: 12px; /* Ukuran teks copyright lebih kecil */
  color: #ccc;
  margin: 5px 0 0; /* Menambahkan margin atas untuk memisahkan dari ikon sosial */
}

.banner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  position:fixed;
  display: flex;
  flex-direction: column;
  justify-content:flex-start; /* Pastikan konten dimulai dari atas */
  align-items: center;
  text-align: justify;
  background: rgba(6,44,4,0.7);
  color: white;
  border-radius: 10px;
  padding: 20px;
  margin: auto;
  top: 75px; /* Mulai dari atas */
  left: 0px;
  right: 0px;
  bottom: 120px;
  overflow: auto; /* Tambahkan scroll jika konten melebihi layar */
}

/* Agar kontainer tetap di tengah layar penuh */
html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


/* Heading */
.heading {
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
  text-transform: uppercase;
  padding-bottom: 5px; /* Tambahkan padding bawah */
}

.subheading {
  font-size: 1.2rem;
  font-weight: 300;
  margin: 10px 0 30px;
  padding-bottom: 5px; /* Tambahkan padding bawah */
}

/* General Styles for Menu Items */
.menu-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100px;  /* Adjust width for mobile */
  transition: transform 0.3s ease;
}

.menu-item i {
  font-size: 30px;  /* Adjust icon size */
  margin-bottom: 10px;
}

.menu-item p {
  font-size: 14px;
  margin: 0;
  color:white;
}

/* Hover Effect */
.menu-item:hover {
  transform: scale(1.1);  /* Slightly enlarge the icon on hover */
  cursor: pointer;
}

/* Responsive Design for Mobile: Two Columns */
@media (max-width: 767px) {
  .container {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 15px;
    margin: 0;
    left: 0px;
    right: 0px;
    top: 70px;
    bottom: 145px;
    height: auto;
    border: none;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .tabelpeg {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    overflow: auto;
  }
  .gbr {
    width: 100%;
    height: auto;
    margin-top: 20px;
    overflow: auto;
  }
  .menu-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .menu-item {
    width: 100%;
    margin: 0;
    padding: 15px 10px;
    box-sizing: border-box;
  }

  .menu-item i {
    font-size: 35px;
  }

  .menu-item p {
    font-size: 14px;
    word-wrap: break-word;
  }

  /* Perbaikan header untuk mobile */
  .header {
    padding: 8px 0px 8px 15px;
    height: 60px;
    display: flex;
    align-items: center; /* Center logo vertically */
    font-size: 14px;
  }
  .header-container {
    flex: 1;
  }
  .header-title {
    font-size: 1.2em; /* Mengurangi ukuran font judul */
  }

  .header-subtitle {
    font-size: 0.8em; /* Mengurangi ukuran font subjudul */
    display: none;
  }

  .header-subtitle-mobile {
    font-size: 0.8em; /* Mengurangi ukuran font subjudul */
    display: block;
  }
  .logo {
    top:0px;
    align-items: Center;
    height: 50px;
  }
  .banner {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* Perbaikan footer untuk mobile */
  .footer {
    padding: 8px 0;
    font-size: 14px;
  }

  /* Popup size for mobile */
  .popup {
    width: 75vw;
    height: 75vh;
  }
}

/* Optional: Larger screen (tablet, desktop) styling */
@media screen and (min-width: 767px) and (max-width:1023px) {
  .menu-icons {
      display: flex;
      justify-content: space-evenly;
  }

  .menu-item {
      width: 120px; /* Adjust width for larger screens */
  }
}




.button-container {
  text-align: center; /* Menempatkan tombol di tengah */
  margin-top: 20px; /* Memberikan jarak dari elemen sebelumnya */
}

.btn {
  display: inline-block; /* Membuat tombol sejajar */
  background-color: #0e4213; /* Warna biru sebagai background */
  color: #fff; /* Warna teks putih */
  text-decoration: none; /* Menghilangkan garis bawah */
  padding: 10px 20px; /* Spasi dalam tombol */
  border-radius: 5px; /* Membuat sudut tombol melengkung */
  font-size: 16px; /* Ukuran teks */
  margin: 5px; /* Jarak antar tombol */
  transition: background-color 0.3s ease; /* Efek transisi saat hover */
}

.btn:hover {
  background-color: #0d151d; /* Warna saat hover */
}

.justify-list {
  text-align: justify;
  list-style-position: inside; /* Menempatkan penomoran di dalam */
}




.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
  display: flex;
  justify-content: center; /* Center the popup */
  align-items: center; /* Center the popup vertically */
  visibility: hidden; /* Hidden by default */
  opacity: 0; /* Fully transparent */
  transition: visibility 0.3s, opacity 0.3s; /* Smooth transition */
}

.popup-overlay.active {
  visibility: visible; /* Show the popup */
  opacity: 1; /* Fully opaque */
}

.popup {
  background: white; /* Popup background */
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  width: 90vw; /* 80% of viewport width */
  height: 90vh; /* 80% of viewport height */
  position: relative;
}

.open-popup-btn {
  padding: 10px 20px; /* Add padding for spacing */
  background-color: #007bff; /* Button background color */
  color: white; /* Text color */
  border: none; /* Remove border */
  border-radius: 5px; /* Rounded corners */
  cursor: pointer; /* Change cursor on hover */
  font-size: 16px; /* Font size */
  transition: background-color 0.3s; /* Smooth transition for hover effect */
}

.open-popup-btn:hover {
  background-color: #0056b3; /* Darker background on hover */
}


    
    
.responsive-iframe {
  position: relative;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

  /* survey kepuasan masyarakat */

.rating-container { display: flex; justify-content: space-around; margin: 10px 0 20px 0; }
.rating-container label { cursor: pointer; text-align: center; display: block; padding: 10px; border: 1px solid #ddd; border-radius: 5px; transition: background-color 0.2s, color 0.2s; }
.rating-container input[type="radio"] { display: none; }

/* Gaya warna saat tombol radio dipilih */
input[value="1"]:checked + label { background-color: #e74c3c; color: white; border-color: #c0392b; } /* Merah */
input[value="2"]:checked + label { background-color: #f1c40f; color: #333; border-color: #f39c12; } /* Kuning */
input[value="3"]:checked + label { background-color: #3498db; color: white; border-color: #2980b9; } /* Biru */
input[value="4"]:checked + label { background-color: #2ecc71; color: white; border-color: #27ae60; } /* Hijau */

.rating-container label:hover { background-color: #e2e6ea; }
label { display: block; margin-bottom: 8px; font-weight: bold; }
input[type="text"], input[type="number"], select, textarea { width: 100%; padding: 10px; margin-bottom: 20px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; }
button { background-color: #007bff; color: white; padding: 12px 20px; border: none; border-radius: 4px; cursor: pointer; width: 100%; font-size: 16px; }
button:hover { background-color: #0056b3; }
.message { text-align: center; margin-top: 20px; padding: 10px; background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; border-radius: 5px; }

/* buku tamu */
.tamu-container {
  position: relative;
  width: 90%;
  padding: 2rem;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}
.form-group-tamu {
    display: flex;
    margin-bottom: 1rem;
}

textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

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



button:hover {
    background-color: #3a5a80;
}

.pesan {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.sukses {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.daftar-tamu {
    background-color: white;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tamu-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;

}

.tamu-item:last-child {
    border-bottom: none;
}

.tamu-nama {
    font-weight: bold;
    color: #021736;
}

.tamu-email {
    color: #021736;
    font-size: 0.9rem;
}

.tamu-tanggal {
    color: #021736;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.tamu-pesan {
    margin-top: 0.5rem;
}
    
    
@media (max-width: 768px) {

    .daftar-tamu {
        padding: 1rem;
    }
}