:root {
  --bg: #0b1220;
  --bg-soft: #0f1a2e;
  --text: #eaf1ff;
  --muted: #b8c3d9;
  --primary: #3b82f6;
  --accent: #f97316;
  --card: #122036;
  --stroke: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, #0c1628 100%);
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}
.section {
  padding: 72px 0;
}
.section-title {
  text-align: center;
  font-size: clamp(22px, 3.4vw, 32px);
  margin: 0 0 22px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  background: transparent;
  color: inherit;
  border: 0;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.01);
}
.hero .btn,
form .btn-lg {
  display: block;
  margin: 16px auto;
}

/* Language toggle */
.lang-toggle {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 100;
}
.lang-toggle button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

/* Sticky CTA (mobile) */
.sticky-cta {
  position: fixed;
  inset: auto 0 0 0;
  background: rgba(12, 22, 40, 0.85);
  padding: 10px 16px;
  display: none;
  backdrop-filter: blur(6px);
  z-index: 50;
}
.sticky-cta .btn {
  width: 100%;
  text-align: center;
}
@media (max-width: 768px) {
  .sticky-cta {
    display: block;
  }
}

/* HERO */
.hero {
  position: relative;
  height: 84vh;
  min-height: 560px;
  isolation: isolate;
}

/* .hero-bg {
  position: absolute;
  inset: 0;
  background: url("images/hero-bg.jpg") center/cover no-repeat fixed;
  background: url("images/hero-bg.jpg") right/cover no-repeat fixed;
  transform: translateZ(0);
} */

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("images/hero-bg.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 75% 50%; /* focus slightly right */
  background-attachment: fixed; /* nice on desktop */
  transform: translateZ(0);
}

/* .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      60% 60% at 50% 50%,
      rgba(59, 130, 246, 0.28),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(11, 18, 32, 0.9));
} */

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.35),
      rgba(11, 18, 32, 0.88)
    ),
    radial-gradient(
      60% 60% at 55% 50%,
      rgba(59, 130, 246, 0.22),
      transparent 65%
    );
}

.hero-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 16px;
}
/* .logo {
  height: 200px;
  margin-bottom: 14px;
  opacity: 0.95;
} */

.logo {
  max-height: 110px;
  height: clamp(72px, 9vw, 110px);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(26px, 4.5vw, 44px);
  margin: 8px 0;
}
.hero .sub {
  color: var(--muted);
  max-width: 760px;
  margin: 0 auto 18px;
}

/* If super small phones */
@media (max-width: 380px) {
  .logo {
    height: 68px;
  }
}

/* Mobile: better performance + re-center a bit */
@media (max-width: 768px) {
  .hero {
    min-height: 520px;
  } /* a touch shorter on phones */
  .hero-bg {
    background-attachment: scroll; /* turn off fixed */
    background-position: 60% 50%; /* bring subject more center */
  }
}

/* --- HERO modern layout overrides --- */
.hero {
  height: 88vh; /* a bit taller for breathing room */
  min-height: 560px;
}

.hero-bg {
  background: url("images/hero-bg.jpg") right center / cover no-repeat fixed;
}
@media (max-width: 768px) {
  .hero-bg {
    /* fixed can be janky on mobile, use scroll + better crop */
    background-attachment: scroll;
    background-position: 28% center; /* show more face/subject on small screens */
  }
}

.hero-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  /* push content slightly below center for better balance */
  padding-top: clamp(20vh, 34vh, 40vh);
  text-align: center;
}

.logo {
  height: clamp(72px, 8vw, 110px); /* scale nicely across breakpoints */
  margin-bottom: 10px;
  opacity: 0.96;
}

.hero h1 {
  font-size: clamp(28px, 4.6vw, 46px);
  line-height: 1.15;
  margin: 8px 0 10px;
}

.hero .sub {
  color: var(--muted);
  max-width: 760px;
  margin: 0 auto 16px;
}

.hero-btn {
  margin-top: 8px;
}

/* Mobile fine-tune */
@media (max-width: 768px) {
  .hero {
    min-height: 640px;
  }
  .hero-overlay {
    padding-top: clamp(18vh, 30vh, 36vh);
  }
  .logo {
    height: clamp(64px, 12vw, 96px);
  }
  .hero h1 {
    font-size: clamp(24px, 7vw, 34px);
  }
  .hero .sub {
    max-width: 520px;
  }
}

/* --- END HERO modern layout overrides --- */

/* WHY */
.why-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.why-card {
  background: var(--card);
  padding: 22px 14px;
  border-radius: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}
.why-card .material-icons-outlined {
  font-size: 42px;
  color: var(--accent);
}
.why-card p {
  margin: 0;
  font-size: 15px;
}

/* ACCORDION (bidang & faq) */
.accordion-item {
  border: 1px solid var(--stroke);
  border-radius: 10px;
  margin-bottom: 12px;
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.accordion-header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-align: left;
}
.accordion-header:hover {
  background: rgba(255, 255, 255, 0.05);
}
.accordion-header .material-icons-outlined {
  color: var(--primary);
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  transition: max-height 0.3s ease;
}
.accordion-item.active .accordion-header {
  background: rgba(255, 255, 255, 0.05);
}
.accordion-body .tahap-title {
  margin: 12px 16px 6px;
  font-size: 15px;
  color: #bcd0ff;
}
.accordion-body ul {
  padding: 0 20px 12px;
  margin: 0;
  list-style: none;
}
.accordion-body li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.accordion-body li:last-child {
  border: none;
}
.accordion-body p {
  margin: 10px 16px;
  color: var(--muted);
} /* FAQ answer */

/* SYARAT */
.elig-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 820px;
  display: grid;
  gap: 10px;
}
.elig-list li {
  background: var(--card);
  border: 1px solid var(--stroke);
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* TESTIMONIALS */
.testi-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.testi {
  background: var(--card);
  border: 1px solid var(--stroke);
  padding: 18px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.testi p {
  margin: 0 0 8px;
  font-style: italic;
}
.testi span {
  color: var(--muted);
  font-size: 14px;
}

/* FORM */
.form-section {
  background: linear-gradient(
    180deg,
    rgba(15, 26, 46, 0.5),
    rgba(12, 22, 40, 0.9)
  );
}
.lead-form {
  background: var(--bg-soft);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 0 auto;
}
.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  text-align: left;
}
label {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
input[type="text"],
input[type="tel"],
input[type="email"],
select {
  display: block;
  width: 100%;
  height: 52px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0b162a;
  color: var(--text);
  outline: none;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 42px;
  background-image: linear-gradient(45deg, transparent 50%, #9aa0a6 50%),
    linear-gradient(135deg, #9aa0a6 50%, transparent 50%);
  background-position: right 12px center, right 6px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px; /* selaraskan dengan teks multi-line */
  accent-color: var(--accent); /* warna jenama */
  border-radius: 4px; /* petak sedikit rounded */
  margin-top: 3px;
}

label.checkbox {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 1rem;
}

/* fix iOS kadang-kadang “tendang” padding vertical */
@supports (-webkit-touch-callout: none) {
  .form-section select {
    padding-top: 0;
    padding-bottom: 0;
  }
}

input:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}
.btn-lg {
  padding: 14px 18px;
  font-size: 16px;
}
.form-msg {
  margin-top: 10px;
  color: #7ee787;
  min-height: 22px;
}

/* teks consent supaya mudah baca */
.consent-text {
  font-size: 14px;
  line-height: 1.35;
  opacity: 0.95;
}

/* mobile: bagi sedikit besar untuk tap target */
@media (max-width: 480px) {
  input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-top: -1px;
  }
}

/* desktop besar: sedikit kecil, nampak kemas */
@media (min-width: 1024px) {
  input[type="checkbox"] {
    width: 16px;
    height: 16px;
  }
}

/* Footer */
.footer {
  padding: 28px 0;
  background: #0a1424;
  border-top: 1px solid var(--stroke);
  /* font-size:13px; */
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Footer: biar wrap elok & tak overflow */
.footer-inner {
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer span,
.footer .to-top {
  line-height: 1.4;
}

.footer .to-top {
  color: var(--muted);
  text-decoration: none;
}
.footer .to-top:hover {
  color: #fff;
}

/* Captcha */
.grecaptcha-badge {
  display: none !important;
}

@media (max-width: 480px) {
  .footer {
    font-size: 13px;
  }
}

/* Reserve space for sticky CTA on mobile so footer/content tak bertembung */
@media (max-width: 768px) {
  body {
    padding-bottom: 80px;
  } /* tinggi sticky bar + breathing room */
  .footer {
    padding-bottom: 24px;
  }
}
