/* =========================================================
   CIANJUR PUNYA PROYEK — PROFESSIONAL UI (REFINED + FIX)
   ========================================================= */

:root {
  --yellow: #f6bd00;
  --yellow-soft: #fff7d6;
  --black: #111111;
  --dark: #171717;
  --text: #252525;
  --muted: #6f6f6f;
  --line: #e8e8e8;
  --bg: #f7f7f5;
  --white: #ffffff;
  --green: #3f9b55;
  --red: #c84b4b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: #fff; line-height: 1.5; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
.container { width: min(1160px, calc(100% - 48px)); margin: auto; }

/* ---------- HEADER ---------- */
.site-header {
  height: 76px;
  border-bottom: 1px solid rgba(0,0,0,.07);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav nav { display: flex; align-items: center; gap: 30px; font-size: 13px; font-weight: 750; }
.nav nav a:not(.nav-mobile-cta) { color: #555; transition: .2s; }
.nav nav a:not(.nav-mobile-cta):hover { color: #111; }
.nav-cta, .nav-mobile-cta {
  background: var(--yellow);
  color: #111 !important;
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  font-weight: 850 !important;
  transition: .2s;
}
.nav-cta:hover { filter: brightness(0.95); }
.nav-mobile-cta { display: none; }
.menu-btn {
  display: none;
  width: 42px; height: 42px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; font-size: 20px;
}

/* Brand / Logo — single source of truth */
.brand {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 180px;
}
.brand img {
  height: 38px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* ---------- BUTTONS ---------- */
.btn {
  border: 0;
  border-radius: var(--radius-sm);
  padding: 14px 22px;
  font-weight: 850;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .2px;
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--yellow); color: #111; box-shadow: 0 8px 20px rgba(246,189,0,.2); }
.btn-primary:hover { filter: brightness(.96); box-shadow: 0 10px 25px rgba(246,189,0,.3); }
.btn-light { background: #fff; color: #222; border: 1px solid #ddd; }
.btn-light:hover { border-color: #aaa; background: #fdfdfd; }

/* ---------- TYPOGRAPHY & HEADINGS ---------- */
.eyebrow {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.8px;
  color: #777;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.section-head { max-width: 720px; }
.section-head.center { text-align: center; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -1.5px; margin: 0 0 12px; }
.section-head h2 span { color: #d39f00; }
.section-head p { color: #777; font-size: 14px; margin: 0; line-height: 1.7; }

/* ---------- HERO ---------- */
.hero {
  background: radial-gradient(circle at 82% 25%, rgba(246,189,0,.12), transparent 28%), #fff;
  padding: 60px 0 70px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 50px;
  align-items: center;
}
.hero-headline {
  margin: 0 0 18px;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.9;
  letter-spacing: -3.5px;
  font-weight: 950;
}
.hero-headline span { display: block; }
.hero-headline span:first-child { color: var(--yellow); }
.hero-subtitle { font-size: 24px; letter-spacing: -.5px; margin: 0 0 12px; font-weight: 800; }
.hero p { color: #666; line-height: 1.7; max-width: 480px; font-size: 14px; margin: 0 0 24px; }
.hero-points { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-points span {
  display: flex; align-items: center; gap: 6px;
  color: #555; font-size: 11px; font-weight: 800;
}
.hero-points em {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--yellow-soft);
  color: #9a7300; font-style: normal; font-size: 11px; font-weight: 900;
}
.hero-art {
  height: 440px;
  border-radius: 22px;
  overflow: hidden;
  background: #eee;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.hero-landing-image { width: 100%; height: 100%; object-fit: cover; }

/* ---------- PROCESS ---------- */
.process-section { padding: 80px 0; background: #fafaf8; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.process-grid article {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 5px 20px rgba(0,0,0,.02);
  transition: transform .2s, box-shadow .2s;
}
.process-grid article:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.process-no { font-size: 11px; font-weight: 900; color: #bbb; margin-bottom: 20px; }
.process-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--yellow-soft);
  display: grid; place-items: center;
  margin-bottom: 16px; font-size: 20px;
}
.process-grid h3 { margin: 0 0 8px; font-size: 16px; font-weight: 800; }
.process-grid p { margin: 0; color: #777; font-size: 12px; line-height: 1.6; }

/* ---------- BENEFIT ---------- */
.benefit-section { padding: 80px 0; background: #fff; }
.benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.benefit-copy h2 { font-size: 42px; line-height: 1.05; letter-spacing: -2px; margin: 0 0 16px; }
.benefit-copy > p { color: #777; max-width: 480px; font-size: 14px; line-height: 1.7; }
.benefits { margin: 28px 0; }
.benefits > div {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 2px 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.benefits > div:last-child { border-bottom: 1px solid var(--line); }
.benefits b { color: #c79800; font-size: 12px; font-weight: 900; }
.benefits strong { font-size: 14px; color: #222; }
.benefits p { margin: 2px 0 0; color: #777; font-size: 12px; line-height: 1.5; grid-column: 2; }
.benefit-visual {
  height: 440px; border-radius: 22px;
  background: linear-gradient(145deg, #f5f3ec, #ddd9cc);
  overflow: hidden; position: relative;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.benefit-visual-inner { height: 100%; position: relative; }
.room-sketch-left {
  position: absolute; left: 0; bottom: 0; width: 58%; height: 78%;
  background: linear-gradient(135deg, #ede9de, #cbc6b9);
  clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%);
}
.room-sketch-right {
  position: absolute; right: 0; bottom: 0; width: 58%; height: 68%;
  background: #bcb7aa; opacity: .55;
  clip-path: polygon(0 0, 100% 18%, 100% 100%, 0 100%);
}
.panel-card {
  position: absolute; right: 13%; bottom: 12%; width: 56%; height: 56%;
  border-radius: 18px; background: #e7e2d5;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 18px 45px rgba(0,0,0,.12);
}

/* ---------- FORM ---------- */
.form-section { background: var(--bg); padding: 80px 0 100px; }
.form-shell { max-width: 900px; }
.project-split {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 16px 0 20px; margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.project-split-copy h3 { font-size: 18px; margin: 0; font-weight: 800; }
.project-split-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.project-split-meta span { font-size: 11px; color: #666; font-weight: 750; }

/* STEPPER — FIXED TYPO: #dcdcdm → #dcdcdc */
.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 32px;
  gap: 8px;
}
.stepper .step { display: flex; align-items: center; gap: 10px; }
.stepper .step span {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid #dcdcdc;   /* ← FIXED */
  background: #fff; color: #888;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; flex-shrink: 0;
  transition: .2s;
}
.stepper .step small { font-size: 11px; font-weight: 800; color: #888; white-space: nowrap; transition: .2s; }
.stepper .step.active span { background: var(--yellow); border-color: var(--yellow); color: #111; }
.stepper .step.active small { color: #111; }
.stepper .step.done span { background: #111; border-color: #111; color: #fff; }
.stepper > i { flex: 1; height: 2px; background: #e0e0e0; min-width: 12px; }

#projectForm {
  background: #fff; border: 1px solid var(--line);
  border-radius: 20px; padding: 36px;
  box-shadow: var(--shadow);
}
.form-step { display: none; }
.form-step.active { display: block; }
.step-title {
  display: flex; align-items: flex-start; gap: 14px;
  padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid #eee;
}
.step-title > span {
  font-size: 11px; font-weight: 900; color: #9b7600;
  background: var(--yellow-soft); border-radius: 8px; padding: 6px 10px;
}
.step-title h3 { font-size: 20px; margin: 0 0 4px; letter-spacing: -.4px; font-weight: 800; }
.step-title p { font-size: 12px; color: #777; margin: 0; }

/* FIELDS & INPUTS */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { font-size: 12px; font-weight: 800; display: block; color: #333; margin-bottom: 6px; }
label em { font-style: normal; color: #d79e00; margin-left: 2px; }
label .optional { font-weight: 500; color: #999; font-size: 11px; }

input:not([type=radio]):not([type=checkbox]), select, textarea {
  display: block; width: 100%;
  border: 1px solid #dcdcdc; background: #fff; border-radius: var(--radius-sm);
  padding: 12px 14px; margin-top: 6px;
  font-size: 13px; color: #222;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
input:not([type=radio]):not([type=checkbox])::placeholder, textarea::placeholder { color: #aaa; }
input:focus, select:focus, textarea:focus {
  border-color: #c99b00;
  box-shadow: 0 0 0 3px rgba(246,189,0,.15);
}
textarea { min-height: 120px; resize: vertical; }
.full { grid-column: 1 / -1; }

/* CHOICE GRID */
.choice-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin: 8px 0 20px;
}
.choice { margin: 0; position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  min-height: 52px; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 12px 14px;
  border: 1px solid #ddd; border-radius: var(--radius-sm);
  background: #fff; font-size: 12px; font-weight: 750;
  cursor: pointer; transition: all .2s; user-select: none;
}
.choice span:hover { border-color: #bbb; background: #fafafa; }
.choice input:checked + span {
  border: 2px solid var(--yellow);
  background: #fff9df; color: #7c5e00; font-weight: 850;
}
.budget-grid { grid-template-columns: repeat(4, 1fr); }

.actions {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-top: 20px; margin-top: 20px; border-top: 1px solid #eee;
}
.counter { display: block; text-align: right; margin-top: 4px; color: #999; font-size: 11px; }

/* DROPZONE */
.dropzone {
  border: 1.5px dashed #ccc; border-radius: 14px;
  padding: 24px; text-align: center; background: #fafafa;
  transition: .2s; margin-top: 6px;
}
.dropzone:hover { border-color: #c99b00; background: #fffdf3; }
.upload-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--yellow-soft); display: grid; place-items: center;
  margin: 0 auto 10px; font-size: 20px; color: #9b7600; font-weight: 900;
}
.dropzone strong { display: block; font-size: 13px; color: #222; }
.dropzone p { font-size: 11px; color: #888; margin: 4px 0 14px; }
.preview-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 10px; margin-top: 14px;
}

/* SWITCH ROW */
.consent-box { margin-top: 20px; padding-top: 10px; border-top: 1px solid #eee; }
.switch-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; }
.switch-row > span {
  flex: 0 0 42px; height: 24px; border-radius: 30px; background: #ddd; position: relative; transition: .2s;
}
.switch-row > span:after {
  content: ""; position: absolute; left: 3px; top: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s;
}
.switch-row input:checked + span { background: var(--yellow); }
.switch-row input:checked + span:after { transform: translateX(18px); }
.switch-row strong { display: block; font-size: 12px; color: #222; }
.switch-row small { display: block; color: #777; font-size: 10px; margin-top: 2px; }

.form-error {
  margin-top: 15px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity .25s, max-height .25s, margin .25s;
}

.form-error.show,
.form-error.active {
  opacity: 1;
  max-height: 80px;
  margin-top: 15px;
}

/* Dropzone — state drag */
.dropzone.drag {
  border-color: var(--yellow);
  background: #fffdf3;
  transform: scale(1.01);
}

/* Preview item */
.preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f5f5f5;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: .2s;
}

.preview-item button:hover {
  background: var(--red);
  transform: scale(1.1);
}

/* ---------- SUCCESS PAGE ---------- */
.success-body {
  background: linear-gradient(180deg, #fffdf4 0%, #f6f6f2 100%);
}

.success-page {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: 40px 0;
}

.success-card {
  width: min(860px, calc(100% - 32px));
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 36px 28px;
  text-align: center;
}

.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f9d94a, #eab700);
  color: #111;
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(246,189,0,.22);
}

.success-card .eyebrow {
  margin-bottom: 10px;
  font-size: 11px;
}

.success-card h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -1.3px;
}

.success-card h1 span {
  color: #d39f00;
}

.success-card p {
  max-width: 620px;
  margin: 16px auto 0;
  color: #666;
  font-size: 14px;
  line-height: 1.7;
}

.project-id-card {
  max-width: 520px;
  margin: 28px auto 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffdf7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}

.project-id-card small {
  display: block;
  color: #818181;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
  margin-bottom: 4px;
}

.project-id-card strong {
  display: block;
  font-size: clamp(18px, 2vw, 28px);
  letter-spacing: .5px;
  color: #111;
}

.copy-btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.status-wrap {
  margin-top: 32px;
  text-align: left;
}

.status-wrap h3 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 800;
}

.status-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 10px;
}

.status-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #888;
}

.status-item span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f0f0f0;
  border: 1px solid #dcdcdc;
  font-size: 11px;
  font-weight: 900;
}

.status-item small {
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  line-height: 1.3;
}

.status-item.done span {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #111;
}

.status-item.done small {
  color: #111;
}

.status-track i {
  display: block;
  height: 2px;
  background: #e2e2e2;
  border-radius: 999px;
}

.status-track i.done {
  background: var(--yellow);
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.success-actions .btn {
  min-width: 220px;
}

.share-btn {
  margin-top: 22px;
  border: 0;
  background: transparent;
  color: #666;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.share-btn:hover {
  color: #111;
}

/* ---------- FOOTER ---------- */
footer { padding: 28px 0; border-top: 1px solid #eee; background: #fff; font-size: 12px; color: #777; }
.footer-inner { display: flex; align-items: center; gap: 15px; justify-content: space-between; }
.footer-inner strong { color: #111; }

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet & Mobile Landscape */
@media (max-width: 900px) {
  .site-header { height: 60px; }
  .brand img { height: 28px; }

  .menu-btn {
    display: block;
    width: 36px;
    height: 36px;
    font-size: 16px;
    border-radius: 8px;
  }

  /* Dropdown Mobile */
  .nav nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 60px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    pointer-events: none;
  }

  .nav nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav nav a:not(.nav-mobile-cta) {
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 6px;
  }

  .nav-mobile-cta {
    display: block;
    text-align: center;
    padding: 10px 14px;
    font-size: 12px;
    margin-top: 6px;
    border-radius: 8px;
  }

  /* CTA Desktop disembunyikan di mobile */
  .nav-cta { display: none; }

  /* Layout */
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { height: 320px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .benefit-grid { grid-template-columns: 1fr; gap: 36px; }
  .benefit-visual { height: 320px; }
  .budget-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile Kecil (iPhone XR / Android standar) */
@media (max-width: 650px) {
  .container { width: calc(100% - 32px); }
  .site-header { height: 64px; }
  .brand img { height: 34px; }
  .menu-btn { display: block; }

  .hero { padding: 36px 0 44px; }
  .hero-headline { font-size: 48px; letter-spacing: -2px; }
  .hero-subtitle { font-size: 20px; }
  .hero-art { height: 260px; }

  .process-grid { grid-template-columns: 1fr; }
  .stepper .step small { display: none; }
  .fields { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
  #projectForm { padding: 20px; }

  .actions { flex-direction: column-reverse; gap: 10px; }
  .actions .btn { width: 100%; }
}

/* iPhone XR / Smartphone Standar (<= 430px) */
@media (max-width: 430px) {
  .container { width: calc(100% - 28px); }

  .hero .btn-primary {
    width: 100%;
    padding: 12px 16px;
    font-size: 11px;
  }

  .hero-points {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    gap: 8px;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .hero-points::-webkit-scrollbar {
    display: none;
  }

  .hero-points span {
    flex: 0 0 auto;
    font-size: 10px;
    padding-right: 2px;
  }

  .success-card {
    padding: 26px 18px;
  }

  .project-id-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .copy-btn {
    width: 100%;
  }

  .status-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 10px;
  }

  .status-track i {
    display: none;
  }

  .success-actions {
    flex-direction: column;
  }

  .success-actions .btn {
    width: 100%;
    min-width: unset;
  }

  .hero-headline { font-size: 40px; letter-spacing: -1.8px; }
  .hero-subtitle { font-size: 18px; }
  .hero-art { height: 240px; }
}