body,
html,
img {
  margin: 0;
  padding: 0;
}

html,
input {
  font-family: arial;
  font-size: 14px;
  color: #666;
}

img {
  display: block;
  width: 100%;
  max-width: 600px;
}

.section {
  position: relative;
  margin: auto;
  width: 100%;
  max-width: 600px;
}

.section img.img-s {
  margin: 0;
  padding: 0;
  max-width: 600px;
  width: 100%;
}

.section img.img-b {
  max-width: 150px;
}

.buttons {
  position: absolute;
  z-index: 3;
  width: 100%;
  bottom: 10%;
  text-align: center;
  margin: auto;
}

.btn-package {
  text-align: center;
  padding: 20px;
}

.btns {
  padding:10px 20px;
  font-weight:bold;
  background:#fff;
  color:#000;
  border:5px solid #800080;
  border-radius:8px;
  font-size:16px;
  width:auto;
  cursor:pointer; 
}

#csSupport {
  position: absolute;
  z-index: 4;
  width: 100%;
  bottom: 5%;
  text-align: center;
}

.loops-group {
  display: block;
  margin-bottom: 20px;
}

.loops-group label {
  font-weight: bold;
  color: black;
}

.loops-group input {
  display: block;
  width: 100%;
  height: 36px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.loops-group select {
  display: block;
  width: 100%;
  height: 45px;
  border: 1px solid #ccc;
  border-radius: 3px;
  color: #7a7a7a;
  padding: 5px 15px;
  background: white;
}

.loops-group textarea {
  display: block;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.loops-submit {
 background: #0D7C66; 
 color: #fff; 
 font-weight: bold; 
 font-size:20px; 
 margin-top:10px; 
 height:50px; 
 box-shadow: 0px 5px 8px rgba(0, 0, 0, 0.5);
}

.loops-footer {
  font-size: 11px;
  color: #ccc;
  font-style: italic;
}

.red {
  color: #b30000;
}

.wa-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  /* awal: transparan */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease-out, visibility 0.18s ease-out,
    background-color 0.18s ease-out;
  /* animasi gelapnya */
}

.wa-modal-backdrop[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.5);
  /* muncul: gelap transparan */
}

/* (opsional) sedikit lebih pekat di dark mode */
@media (prefers-color-scheme: dark) {
  .wa-modal-backdrop[aria-hidden="false"] {
    background: rgba(0, 0, 0, 0.6);
  }
}

/* Dialog mengikuti kartu form: radius 8px + shadow yang sama */
.wa-modal {
  background: #fff;
  width: 100%;
  max-width: 600px;
  /* form Anda max 600px */
  border-radius: 8px;
  box-shadow: 0px 5px 8px rgba(0, 0, 0, 0.5);
  overflow: hidden;

  transform: translateY(6px);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
}

.wa-modal-backdrop[aria-hidden="false"] .wa-modal {
  transform: translateY(0);
}

/* Header & teks mengikuti tone form (#666) */
.wa-modal header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.wa-modal header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  color: #666;
}

.wa-modal header .wa-close {
  margin-left: auto;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: #666;
}

.wa-modal .content {
  padding: 14px 16px;
  color: #666;
  line-height: 1.5;
  font-size: 14px;
  font-weight: 400; /* reset: normal */
  /* sama dengan form */
}

/* Actions: tombol mengikuti .btns (hijau) & radius 8px */
.wa-modal .actions {
  display: flex;
  gap: 10px;
  padding: 0 16px 16px;
  justify-content: flex-end;
}

.wa-btn {
  padding: 10px 20px;
  font-weight: bold;
  font-size: 16px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
}

.wa-btn.primary {
  background: rgba(48, 148, 60, 1);
  color: #fff;
}

/* sama dengan .btns */
.wa-btn.primary:hover {
  filter: brightness(0.95);
}

.wa-btn.secondary {
  background: #fff;
  color: rgba(48, 148, 60, 1);
  border: 1px solid rgba(48, 148, 60, 0.9);
}

.wa-btn.secondary:hover {
  background: #f7faf7;
}

/* Tombol submit loading state tetap */
.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.wa-btn.primary {
  background-color: #81bd4b;
}

/* Mobile spacing */
@media (max-width: 640px) {
  .wa-modal {
    margin: 0 12px;
  }
}

/* Aksesibilitas: kurangi animasi bila user prefer */
@media (prefers-reduced-motion: reduce) {
  .wa-modal-backdrop,
  .wa-modal {
    transition: none;
  }
}
