:root {
  font-family: 'DM Sans', Arial, sans-serif;
  color: #102a22;
  background: #edf3ec;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

button,
input,
select {
  font: inherit;
}


/* =========================
   LAYOUT
========================= */

.wrap {
  width: min(474px, calc(100% - 36px));
  margin-inline: auto;
}


/* =========================
   TOP STRIP
========================= */

.top-strip {
  height: 42px;
  background: #007548;
  color: white;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}


/* =========================
   HERO SECTION
========================= */

.hero {
  padding-top: 31px;
}

.hero h1 {
  font-size: 36px;
  line-height: 1.14;
  letter-spacing: -1.45px;
  margin: 0 0 10px;
  font-weight: 800;
}

.intro {
  font-size: 16px;
  line-height: 1.55;
  color: #697a71;
  margin: 0;
}


/* =========================
   BADGES
========================= */

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 20px;
}

.badges span {
  font-size: 12px;
  font-weight: 700;
  color: #196b4b;
  background: #e5f1e8;
  padding: 8px 11px;
  border-radius: 99px;
}


/* =========================
   CUSTOMER GALLERY
========================= */

.gallery {
  overflow: hidden;
  margin-left: -16px;
  margin-right: -16px;
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 7%,
    #000 93%,
    transparent
  );
}

.gallery-track {
  display: flex;
  gap: 7px;
  width: max-content;
  animation: slide 35s linear infinite;
}

.photo-placeholder {
  width: 115px;
  height: 116px;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    #dce4dc,
    #bdcbc1
  );
  border: 1px dashed #91a79a;
  display: grid;
  place-items: center;
  text-align: center;
  color: #54705f;
  font-size: 12px;
  font-weight: 700;
  padding: 10px;
}

.photo-placeholder-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.gallery-caption {
  font-size: 13px;
  line-height: 1.45;
  color: #78877d;
  margin: 10px 0 4px;
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}


/* =========================
   PROMOTION CARD
========================= */

.promo-card {
  background: #fff;
  border: 1px solid #dce4dc;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 4px #1c3c2608;
}

.poster-placeholder {
  height: 440px;
  background: linear-gradient(
    140deg,
    #dce9de,
    #edf2e9 55%,
    #d4dfd2
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #607966;
  border-bottom: 1px solid #dce4dc;
}

.poster-icon {
  font-size: 44px;
  line-height: 1;
  color: #8aa596;
}

.poster-placeholder strong {
  font-size: 18px;
}

.poster-placeholder small {
  font-size: 13px;
}

.promo-content {
  padding: 18px;
}

.promo-pill {
  background: #f9a400;
  color: white;
  border-radius: 99px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
}

.promo-content h2 {
  font-size: 18px;
  line-height: 1.35;
  margin: 12px 0 5px;
}

.promo-content p {
  font-size: 14px;
  line-height: 1.55;
  color: #78877d;
  margin: 0 0 13px;
}

.text-link {
  font-size: 14px;
  font-weight: 800;
  color: #007548;
  text-decoration: none;
}

.promo-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 51px;
  padding: 12px 18px;
  margin-top: 18px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.promo-button:focus-visible {
  outline: 3px solid #87bd9c;
  outline-offset: 3px;
}


/* =========================
   FORM CARD
========================= */

.form-card {
  margin-top: 22px;
  background: #fff;
  border: 1px solid #dce4dc;
  border-radius: 14px;
  padding: 20px 18px 28px;
  box-shadow: 0 2px 4px #1c3c2608;
  scroll-margin-top: 15px;
}


/* Progress */

.progress {
  display: flex;
  gap: 6px;
  margin: 0 0 22px;
}

.progress span {
  height: 4px;
  border-radius: 99px;
  flex: 1;
  background: #d9e2dd;
}

.progress span.active {
  background: #007548;
}


/* Step */

.step-label {
  font-size: 13px;
  font-weight: 700;
  color: #197750;
  margin: 0 0 9px;
}

.form-card h2 {
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 22px;
  font-weight: 800;
}

.step > label,
fieldset legend {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px;
}

.step > label:not(:first-child) {
  margin-top: 20px;
}

.step label em {
  font-style: normal;
  font-weight: 400;
  color: #849188;
}


/* Inputs */

select,
input[type=text],
input[type=tel] {
  height: 48px;
  width: 100%;
  border: 1px solid #dbe2dd;
  border-radius: 9px;
  background: #fff;
  color: #263c31;
  padding: 0 12px;
  outline: none;
}

select:focus,
input:focus {
  border-color: #007548;
  box-shadow: 0 0 0 3px #0075481f;
}


/* Fieldset */

fieldset {
  border: 0;
  padding: 0;
  margin: 20px 0 0;
}


/* Choices */

.choice-row {
  display: flex;
  gap: 8px;
}

.choice-row label {
  flex: 1;
  cursor: pointer;
}

.choice-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-row span {
  display: flex;
  align-items: center;
  height: 51px;
  border: 1px solid #dbe2dd;
  border-radius: 9px;
  padding: 0 12px;
  font-size: 14px;
}

.choice-row input:checked + span {
  border-color: #007548;
  background: #eef8f1;
  color: #006f44;
  font-weight: 700;
}

.choice-row input:focus-visible + span {
  outline: 3px solid #9ad4b3;
}


/* =========================
   FORM BUTTONS
========================= */

.actions {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}

.actions button,
.success button {
  height: 51px;
  border-radius: 9px;
  font-weight: 800;
  cursor: pointer;
}

.primary {
  background: #007548;
  color: white;
  border: 0;
  flex: 1;
}

.primary:hover,
.sticky button:hover {
  background: #00623d;
}

.back {
  border: 1px solid #dbe2dd;
  color: #617468;
  background: #fff;
  padding: 0 17px;
}


/* =========================
   FORM MESSAGES
========================= */

.error {
  font-size: 13px;
  color: #b3261e;
  margin: 14px 0 0;
}

.consent {
  font-size: 12px;
  line-height: 1.5;
  color: #87948a;
  margin: 19px 0 0;
}

.success p {
  font-size: 14px;
  line-height: 1.55;
  color: #677a6c;
}

.success button {
  width: 100%;
}

/* Loading dan pautan WhatsApp */
[hidden] {
  display: none !important;
}

.submission-loading {
  padding: 28px 0;
  text-align: center;
}

.submission-loading p {
  color: #677a6c;
  font-size: 14px;
  line-height: 1.55;
}

.loading-spinner {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 22px;
  border: 4px solid #e5f1e8;
  border-top-color: #007548;
  border-radius: 50%;
  animation: submission-spin 0.8s linear infinite;
}

.whatsapp-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 51px;
  padding: 12px;
  border-radius: 9px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  margin: 20px 0 12px;
}

@keyframes submission-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .loading-spinner { animation: none; }
}


/* Halaman terima kasih */
.thank-you-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding-block: 24px;
}

.thank-you-card {
  margin-top: 0;
  padding: 36px 24px;
  text-align: center;
}

.thank-you-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  color: #007548;
  background: #e5f1e8;
  font-size: 32px;
}

.thank-you-card h1 {
  font-size: 28px;
  margin: 0 0 14px;
}

.thank-you-card p {
  color: #677a6c;
  line-height: 1.65;
  margin: 0 0 24px;
}

.thank-you-card a:focus-visible {
  outline: 3px solid #007548;
  outline-offset: 4px;
}

/* =========================
   AFTER SUBMISSION
========================= */

.after {
  padding-top: 36px;
}

.after h2,
.faq h2 {
  font-size: 19px;
  letter-spacing: -0.3px;
  margin: 0 0 18px;
}

.after-item {
  display: flex;
  gap: 13px;
  margin: 0 0 17px;
}

.after-icon {
  color: #087e50;
  font-size: 21px;
  min-width: 19px;
  line-height: 1;
}

.after-item strong {
  font-size: 14px;
}

.after-item p {
  font-size: 14px;
  line-height: 1.5;
  color: #78877d;
  margin: 4px 0 0;
}


/* =========================
   FAQ
========================= */

.faq {
  padding-top: 36px;
  padding-bottom: 30px;
}

.faq h2 {
  margin-bottom: 12px;
}

.faq details {
  border-bottom: 1px solid #dce5dc;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  padding: 16px 28px 16px 0;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  color: #007548;
  font-size: 20px;
  font-weight: 700;
  top: 11px;
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  font-size: 14px;
  line-height: 1.55;
  color: #718075;
  margin: 0 0 16px;
}


/* =========================
   FOOTER
========================= */

footer {
  background: #0b291e;
  color: #a8b7ab;
  padding: 25px 0 90px;
}

footer p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 10px;
}

/* Pautan footer dan halaman polisi */
.footer-legal {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #ffffff26;
}

.footer-legal a {
  display: inline-block;
  padding-block: 10px;
  color: #fff;
  font-size: 10px;
  text-underline-offset: 4px;
}

.policy-page {
  padding: 32px 18px;
}

.policy-document {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(20px, 5vw, 48px);
  border: 1px solid #dce4dc;
  border-radius: 14px;
  background: #fff;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.policy-document h1 {
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.2;
  margin: 24px 0 12px;
}

.policy-document h2 {
  font-size: 21px;
  line-height: 1.35;
  margin: 32px 0 12px;
}

.policy-document p,
.policy-document ul {
  margin: 0 0 16px;
}

.policy-document ul {
  padding-left: 24px;
}

.policy-document li {
  margin-bottom: 6px;
}

.policy-document hr {
  border: 0;
  border-top: 1px solid #dce4dc;
  margin: 32px 0;
}

.policy-document a:focus-visible,
.footer-legal a:focus-visible {
  outline: 3px solid #87bd9c;
  outline-offset: 4px;
}


/* =========================
   STICKY BUTTON
========================= */

.sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 10px 17px 11px;
  box-shadow: 0 -3px 15px #223b2814;
  z-index: 4;
}

.sticky button {
  display: block;
  width: min(714px, 100%);
  height: 51px;
  margin: auto;
  border: 0;
  border-radius: 9px;
  background: #007548;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 520px) {

  .hero h1 {
    font-size: 34px;
  }

  .poster-placeholder {
    height: 390px;
  }

  .wrap {
    width: calc(100% - 34px);
  }
}


/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .gallery-track {
    animation: none;
  }
}
