:root {
    --bg:           #0d1a12;
    --bg-2:         #111f17;
    --bg-card:      #162212;
    --bg-card-2:    #1c2e1c;
    --hijau:        #2e9958;
    --hijau-terang: #3ab86a;
    --hijau-gelap:  #1a6b3c;
    --hijau-muda:   rgba(46,153,88,0.12);
    --emas:         #c8a020;
    --emas-terang:  #f0c83a;
    --emas-muda:    rgba(200,160,32,0.12);
    --merah:        #e05252;
    --merah-muda:   rgba(224,82,82,0.12);
    --border:       rgba(200,160,32,0.15);
    --border-hijau: rgba(46,153,88,0.2);
    --text:         #dde8d8;
    --text-muted:   #7a9e80;
    --white:        #ffffff;
    --font-serif:   'Playfair Display', Georgia, serif;
    --font-body:    'Tajawal', sans-serif;
    --font-arabic:  'Amiri', serif;
    --radius:       14px;
    --radius-sm:    8px;
    --transition:   0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow:       0 12px 40px rgba(0,0,0,0.45);
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after {
    margin: 0; padding: 0; box-sizing: border-box;
}
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background:  var(--bg);
    color:       var(--text);
    overflow-x:  hidden;
    line-height: 1.6;
    min-height:  100vh;
}
a { text-decoration: none; color: inherit; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--emas); border-radius: 2px; }

/* ═══════════════════════════════════════════
   BACKGROUND DECOR
═══════════════════════════════════════════ */
.bg-orn {
    position: fixed; pointer-events: none;
    z-index: 0; opacity: 0.03; border-radius: 50%;
}
.bg-orn-1 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, var(--emas) 0%, transparent 70%);
    top: -200px; right: -200px;
}
.bg-orn-2 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--hijau) 0%, transparent 70%);
    bottom: 0; left: -200px;
}
.bg-dot {
    position: fixed; inset: 0;
    pointer-events: none; z-index: 0;
    background-image: radial-gradient(rgba(200,160,32,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 0 24px;
    background: rgba(13,26,18,0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: 1180px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 70px;
}

/* Logo */
.logo {
    display: flex; align-items: center; gap: 10px;
}
.logo-img {
    height: 40px; width: auto;
}
.logo-text {
    display: flex; flex-direction: column; line-height: 1.2;
}
.logo-name {
    font-family: var(--font-serif);
    font-size: 14px; font-weight: 600;
    color: var(--white); letter-spacing: 1px;
}

/* Nav back */
.nav-back {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--text-muted);
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 8px 16px; border-radius: 50px;
    transition: var(--transition);
}
.nav-back:hover { color: var(--emas); border-color: var(--emas); }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
    padding: 110px 0 56px;
    background:
        radial-gradient(ellipse 70% 60% at 0% 100%, rgba(26,107,60,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 100% 0%, rgba(200,160,32,0.05) 0%, transparent 50%),
        var(--bg);
    border-bottom: 1px solid var(--border);
    position: relative; z-index: 1;
}
.hero-inner {
    max-width: 1180px; margin: 0 auto; padding: 0 24px;
}
.section-label {
    display: inline-block;
    font-size: 11px; font-weight: 500;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--emas); background: var(--emas-muda);
    border: 1px solid rgba(200,160,32,0.3);
    padding: 5px 16px; border-radius: 50px; margin-bottom: 14px;
}
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 50px);
    font-weight: 700; line-height: 1.15;
    color: var(--white); margin-bottom: 12px;
}
.hero-title em { color: var(--emas); font-style: italic; }
.hero-sub {
    font-size: 15px; color: var(--text-muted); max-width: 520px;
}

/* ═══════════════════════════════════════════
   MAIN WRAPPER
═══════════════════════════════════════════ */
.main {
    padding: 52px 0 80px;
    position: relative; z-index: 1;
}
.main-inner {
    max-width: 820px; margin: 0 auto; padding: 0 20px;
}

/* ═══════════════════════════════════════════
   STEP WIZARD
═══════════════════════════════════════════ */
.wizard-header { margin-bottom: 40px; }

.wizard-progress {
    display: flex; align-items: center; margin-bottom: 12px;
}
.wp-step {
    display: flex; flex-direction: column; align-items: center;
    flex: 1; position: relative;
}
.wp-circle {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700;
    border: 2px solid var(--border-hijau);
    background: var(--bg-card); color: var(--text-muted);
    transition: var(--transition);
    position: relative; z-index: 2;
}
.wp-circle .check { display: none; }
.wp-step.done   .wp-circle {
    background: var(--hijau-gelap); border-color: var(--hijau); color: #fff;
}
.wp-step.done   .wp-circle .num   { display: none; }
.wp-step.done   .wp-circle .check { display: block; }
.wp-step.active .wp-circle {
    background: linear-gradient(135deg, var(--hijau-gelap), var(--hijau));
    border-color: var(--hijau); color: #fff;
    box-shadow: 0 0 18px rgba(46,153,88,0.4);
}
.wp-label {
    font-size: 11px; color: var(--text-muted);
    margin-top: 7px; font-weight: 500;
    text-align: center; letter-spacing: 0.3px;
    transition: var(--transition);
}
.wp-step.active .wp-label { color: var(--hijau-terang); }
.wp-step.done   .wp-label { color: var(--text-muted); }

/* connector line */
.wp-line {
    flex: 1; height: 2px; margin-top: -22px;
    background: var(--border-hijau);
    position: relative; overflow: hidden;
}
.wp-line-fill {
    position: absolute; left: 0; top: 0; bottom: 0;
    background: var(--hijau); width: 0;
    transition: width 0.5s ease;
}

/* progress bar */
.progress-bar-wrap {
    height: 4px; background: var(--bg-card-2);
    border-radius: 2px; overflow: hidden; margin-top: 6px;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--hijau-gelap), var(--hijau-terang));
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 0%;
}
.progress-text {
    font-size: 11px; color: var(--text-muted);
    text-align: right; margin-top: 5px;
}

/* ═══════════════════════════════════════════
   FORM CARD
═══════════════════════════════════════════ */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-hijau);
    border-radius: var(--radius);
    padding: 40px;
    position: relative; overflow: hidden;
}
.form-card::before {
    content: ''; position: absolute;
    top: -80px; right: -80px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(200,160,32,0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* step panels */
.step-panel { display: none; animation: fadeIn 0.35s ease; }
.step-panel.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* panel title */
.panel-title {
    font-family: var(--font-serif);
    font-size: 20px; font-weight: 700;
    color: var(--white); margin-bottom: 6px;
}
.panel-title i { color: var(--emas); margin-right: 8px; font-size: 17px; }
.panel-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }

/* ═══════════════════════════════════════════
   GRID
═══════════════════════════════════════════ */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.form-row.single { grid-template-columns: 1fr; }

/* ═══════════════════════════════════════════
   INPUT GROUP
═══════════════════════════════════════════ */
.field { display: flex; flex-direction: column; }
.field-label {
    font-size: 13px; font-weight: 600;
    color: var(--text); margin-bottom: 8px;
    display: flex; align-items: center; gap: 6px;
}
.field-label .req { color: var(--emas); font-size: 15px; line-height: 1; }
.field-label .tip {
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--bg-card-2); border: 1px solid var(--border);
    color: var(--text-muted); font-size: 10px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: default; position: relative;
}
.field-label .tip::after {
    content: attr(data-tip);
    position: absolute; bottom: calc(100% + 8px); left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card-2); border: 1px solid var(--border);
    color: var(--text); font-size: 11px; font-weight: 400;
    padding: 6px 10px; border-radius: 6px;
    white-space: nowrap; pointer-events: none;
    opacity: 0; transition: opacity 0.2s; z-index: 10;
}
.field-label .tip:hover::after { opacity: 1; }

/* input wrapper */
.input-wrap { position: relative; }
.input-wrap .icon {
    position: absolute; top: 50%; left: 14px;
    transform: translateY(-50%);
    color: var(--text-muted); font-size: 14px;
    pointer-events: none; transition: var(--transition);
}
.input-wrap input,
.input-wrap textarea,
.input-wrap select {
    width: 100%;
    padding: 0 40px 0 42px;
    height: 50px;
    background: var(--bg-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    -webkit-appearance: none;
    appearance: none;
}
.input-wrap textarea {
    height: auto; min-height: 110px;
    padding: 14px 14px 14px 42px;
    resize: none; line-height: 1.6;
}
.input-wrap select { cursor: pointer; }
.input-wrap select option { background: var(--bg-2); }
.input-wrap.no-icon input,
.input-wrap.no-icon textarea { padding-left: 14px; }

/* focus */
.input-wrap input:focus,
.input-wrap textarea:focus,
.input-wrap select:focus {
    border-color: var(--emas);
    background: var(--bg-card-2);
    box-shadow: 0 0 0 3px rgba(200,160,32,0.08);
}
.input-wrap:focus-within .icon { color: var(--emas); }

/* valid / invalid */
.field.valid   .input-wrap input,
.field.valid   .input-wrap textarea,
.field.valid   .input-wrap select  { border-color: var(--hijau); }
.field.invalid .input-wrap input,
.field.invalid .input-wrap textarea,
.field.invalid .input-wrap select  {
    border-color: var(--merah);
    box-shadow: 0 0 0 3px var(--merah-muda);
}

/* status icon kanan */
.input-wrap .status-icon {
    position: absolute; top: 50%; right: 12px;
    transform: translateY(-50%);
    font-size: 13px; pointer-events: none;
    opacity: 0; transition: var(--transition);
}
.field.valid   .status-icon { opacity: 1; color: var(--hijau-terang); }
.field.invalid .status-icon { opacity: 1; color: var(--merah); }

/* field message */
.field-msg {
    font-size: 12px; margin-top: 6px; min-height: 16px;
    display: flex; align-items: center; gap: 5px;
    transition: var(--transition);
}
.field.invalid .field-msg { color: var(--merah); }
.field.valid   .field-msg { color: var(--hijau-terang); }
.field-msg i { font-size: 11px; }

/* char counter */
.field-footer {
    display: flex; justify-content: space-between;
    align-items: flex-start; margin-top: 5px;
}
.char-count { font-size: 11px; color: var(--text-muted); margin-left: auto; }

/* placeholder */
input::placeholder, textarea::placeholder {
    color: var(--text-muted); font-size: 13px;
}

/* number input — sembunyikan spinner */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }
input[type="number"] { -moz-appearance: textfield; }

/* ═══════════════════════════════════════════
   PHONE FORMAT HINT
═══════════════════════════════════════════ */
.format-chips {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px;
}
.format-chip {
    font-size: 11px; color: var(--text-muted);
    background: var(--bg-2); border: 1px solid var(--border);
    padding: 3px 10px; border-radius: 50px;
}

/* ═══════════════════════════════════════════
   UPLOAD ZONE
═══════════════════════════════════════════ */
.upload-zone {
    position: relative;
    border: 1.5px dashed rgba(200,160,32,0.35);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    background: var(--bg-2);
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
}
.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--emas);
    background: var(--emas-muda);
}
.upload-zone input[type="file"] {
    position: absolute; inset: 0;
    opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.uz-icon {
    width: 60px; height: 60px;
    background: var(--emas-muda); border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: var(--emas);
    margin: 0 auto 14px;
    transition: var(--transition);
    pointer-events: none;
}
.upload-zone:hover .uz-icon { transform: translateY(-3px); background: rgba(200,160,32,0.2); }
.uz-title {
    font-size: 15px; font-weight: 600; color: var(--white);
    margin-bottom: 5px; pointer-events: none;
}
.uz-sub { font-size: 12px; color: var(--text-muted); pointer-events: none; }

/* preview */
.photo-preview-wrap {
    display: none; flex-direction: column; align-items: center;
    gap: 12px; margin-top: 20px;
}
.photo-preview-wrap.show { display: flex; }
.photo-preview {
    width: 120px; height: 120px; border-radius: 12px;
    object-fit: cover; border: 2px solid var(--border);
    transition: var(--transition);
}
.photo-preview:hover { border-color: var(--emas); transform: scale(1.04); }
.photo-preview-name {
    font-size: 12px; color: var(--text-muted);
    display: flex; align-items: center; gap: 6px;
}
.photo-preview-remove {
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--merah-muda); border: none;
    color: var(--merah); font-size: 10px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.photo-preview-remove:hover { background: var(--merah); color: #fff; }

/* ═══════════════════════════════════════════
   SUMMARY STEP 3
═══════════════════════════════════════════ */
.summary-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 14px; margin-bottom: 20px;
}
.summary-item {
    background: var(--bg-2); border: 1px solid var(--border-hijau);
    border-radius: var(--radius-sm); padding: 14px 16px;
}
.summary-item .s-label {
    font-size: 11px; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px;
}
.summary-item .s-value {
    font-size: 14px; color: var(--white);
    font-weight: 600; word-break: break-word;
}
.summary-foto {
    display: flex; align-items: center; gap: 14px;
    background: var(--bg-2); border: 1px solid var(--border-hijau);
    border-radius: var(--radius-sm); padding: 14px 16px;
    grid-column: 1 / -1;
}
.summary-foto img {
    width: 60px; height: 60px; border-radius: 10px;
    object-fit: cover; border: 2px solid var(--border);
    flex-shrink: 0;
}
.summary-foto .s-label {
    font-size: 11px; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px;
}
.summary-foto .s-value { font-size: 13px; color: var(--white); font-weight: 600; }

/* terms */
.terms-wrap {
    display: flex; align-items: flex-start; gap: 12px;
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 16px;
    margin-bottom: 24px; cursor: pointer;
    transition: var(--transition);
}
.terms-wrap:hover { border-color: var(--emas); }
.terms-wrap input[type="checkbox"] { display: none; }
.terms-check {
    width: 20px; height: 20px; border-radius: 5px;
    border: 2px solid var(--border); flex-shrink: 0;
    background: var(--bg-card);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition); margin-top: 1px;
}
.terms-wrap.checked .terms-check {
    background: var(--hijau); border-color: var(--hijau);
}
.terms-wrap.checked .terms-check::after {
    content: '✓'; color: #fff; font-size: 12px; font-weight: 700;
}
.terms-text { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.terms-text strong { color: var(--emas); }

/* ═══════════════════════════════════════════
   FORM DIVIDER
═══════════════════════════════════════════ */
.form-divider {
    height: 1px; background: var(--border-hijau);
    margin: 28px 0; position: relative;
}
.form-divider::after {
    content: '✦';
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card); padding: 0 12px;
    color: var(--emas); font-size: 11px;
}

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn-row {
    display: flex; gap: 12px; margin-top: 28px;
}
.btn-next,
.btn-submit {
    flex: 1; height: 52px; border: none;
    border-radius: var(--radius-sm); cursor: pointer;
    font-size: 15px; font-weight: 600;
    color: #fff; font-family: var(--font-body);
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: linear-gradient(135deg, var(--hijau-gelap), var(--hijau));
    position: relative; overflow: hidden;
    transition: var(--transition);
}
.btn-next::before,
.btn-submit::before {
    content: '';
    position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: 0.5s;
}
.btn-next:hover::before,
.btn-submit:hover::before { left: 100%; }
.btn-next:hover,
.btn-submit:hover {
    background: var(--hijau-terang);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(46,153,88,0.35);
}
.btn-submit:disabled {
    opacity: 0.4; pointer-events: none; cursor: not-allowed;
}
.btn-submit.loading { opacity: 0.7; pointer-events: none; }
.btn-back {
    height: 52px; padding: 0 22px;
    background: var(--bg-2); border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted); font-family: var(--font-body);
    font-size: 15px; cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    transition: var(--transition);
}
.btn-back:hover { border-color: var(--emas); color: var(--emas); }

/* ═══════════════════════════════════════════
   SUCCESS STATE
═══════════════════════════════════════════ */
.success-panel {
    display: none; text-align: center;
    padding: 20px 0 10px;
    animation: fadeIn 0.5s ease;
}
.success-panel.show { display: block; }
.success-icon {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--hijau-muda); border: 2px solid var(--hijau);
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; color: var(--hijau-terang);
    margin: 0 auto 20px;
    animation: popIn 0.5s ease;
}
@keyframes popIn {
    0%   { transform: scale(0.5); opacity: 0; }
    70%  { transform: scale(1.1); }
    100% { transform: scale(1);   opacity: 1; }
}
.success-title {
    font-family: var(--font-serif);
    font-size: 26px; color: var(--white); margin-bottom: 10px;
}
.success-sub {
    color: var(--text-muted); font-size: 14px;
    margin-bottom: 28px; line-height: 1.7;
}
.success-actions {
    display: flex; gap: 12px;
    justify-content: center; flex-wrap: wrap;
}
.btn-home {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--hijau-gelap), var(--hijau));
    color: #fff; padding: 12px 24px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600; font-family: var(--font-body);
    transition: var(--transition);
}
.btn-home:hover { background: var(--hijau-terang); transform: translateY(-2px); }
.btn-wa {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--bg-2); border: 1px solid var(--border);
    color: var(--text-muted); padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px; font-family: var(--font-body);
    transition: var(--transition);
}
.btn-wa:hover { border-color: var(--hijau-terang); color: var(--hijau-terang); }

/* ═══════════════════════════════════════════
   TOAST
═══════════════════════════════════════════ */
.toast {
    position: fixed; bottom: 28px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-card); border: 1px solid var(--border);
    border-left: 4px solid var(--hijau-terang);
    color: var(--text); padding: 14px 20px;
    border-radius: var(--radius-sm); box-shadow: var(--shadow);
    z-index: 9999; opacity: 0;
    transition: 0.35s ease; pointer-events: none;
    display: flex; align-items: center; gap: 10px;
    white-space: nowrap; font-size: 14px;
    min-width: 220px;
}
.toast.error { border-left-color: var(--merah); }
.toast.show  { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast i { font-size: 16px; }
.toast.success i { color: var(--hijau-terang); }
.toast.error   i { color: var(--merah); }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer-mini {
    background: var(--bg-2); border-top: 1px solid var(--border);
    padding: 22px; text-align: center;
    font-size: 12px; color: var(--text-muted);
    position: relative; z-index: 1;
}
.footer-mini a { color: var(--emas); }
.footer-mini a:hover { color: var(--emas-terang); }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 640px) {
    .form-row       { grid-template-columns: 1fr; }
    .form-card      { padding: 24px 18px; }
    .summary-grid   { grid-template-columns: 1fr; }
    .summary-foto   { grid-column: 1; }
    .wp-label       { font-size: 10px; }
    .btn-row        { flex-direction: column-reverse; }
    .btn-back       { justify-content: center; }
    .toast          { white-space: normal; max-width: 90vw; }
}
@media (max-width: 420px) {
    .hero-title     { font-size: 26px; }
    .success-actions { flex-direction: column; }
    .wp-label       { display: none; }
}