body { background: var(--light); }
nav { position: relative; }
.nav-back { color: rgba(255,255,255,.8); font-size: .9rem; text-decoration: none; display: flex; align-items: center; gap: 6px; transition: color .2s; }
.nav-back:hover { color: var(--accent); }

.page-header { background: linear-gradient(135deg, var(--primary) 0%, #848991 100%); padding: 44px 5%; color: var(--white); text-align: center; }
.page-header h1 { font-size: 1.9rem; font-weight: 800; margin-bottom: 8px; }
.page-header p { color: rgba(255,255,255,.75); font-size: .95rem; }
.badge-min { display: inline-block; background: var(--accent); color: var(--white); font-size: .8rem; font-weight: 700; padding: 5px 14px; border-radius: 20px; margin-top: 12px; }

.form-container { max-width: 820px; margin: -24px auto 0; position: relative; z-index: 1; padding: 0 20px 60px; }
.form-card { background: var(--white); border-radius: 18px; box-shadow: 0 8px 40px rgba(0,0,0,.1); overflow: hidden; }
.form-section { padding: 32px 36px; border-bottom: 1px solid #f0f0f0; }
.form-section:last-of-type { border-bottom: none; }
.form-section-title { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.step-badge { width: 28px; height: 28px; background: var(--primary); color: var(--white); border-radius: 50%; font-size: .8rem; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-row.single { grid-template-columns: 1fr; }
.form-row.triple { grid-template-columns: 1fr 1fr 1fr; }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }

/* ── SIMPAN PROFIL ── */
.save-profile-wrap { padding: 24px 36px; background: linear-gradient(135deg, #f8faff, #f0f4ff); border-bottom: 1px solid #e8eef8; text-align: center; }
.btn-save-profile { background: var(--primary); color: var(--white); border: none; border-radius: 10px; padding: 14px 36px; font-size: 1rem; font-weight: 700; font-family: inherit; cursor: pointer; transition: background .2s, transform .15s; }
.btn-save-profile:hover { background: #4f545a; transform: translateY(-1px); }
.save-profile-hint { font-size: .8rem; color: var(--muted); margin-top: 10px; line-height: 1.5; }

/* ── EMAIL GATE ── */
.gate-card {
  background: var(--white); border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  padding: 36px; margin: 20px 0;
  border-top: 4px solid var(--accent);
  text-align: center;
}
.gate-icon { font-size: 2.4rem; margin-bottom: 14px; }
.gate-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.gate-card p { font-size: .88rem; color: var(--muted); line-height: 1.6; margin-bottom: 22px; max-width: 420px; margin-left: auto; margin-right: auto; }
.gate-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.gate-input {
  flex: 1; border: 1.5px solid #e2e8f0; border-radius: 10px;
  padding: 12px 16px; font-size: .9rem; font-family: inherit;
  outline: none; transition: border .2s;
}
.gate-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(104,109,118,.1); }
.gate-btn {
  background: var(--accent); color: var(--white); border: none;
  border-radius: 10px; padding: 12px 22px; font-size: .9rem;
  font-weight: 700; font-family: inherit; cursor: pointer;
  white-space: nowrap; transition: opacity .2s;
}
.gate-btn:hover { opacity: .85; }
.gate-note { font-size: .75rem; color: var(--muted); margin-top: 10px; }

.file-upload-area { border: 2px dashed #d1d5db; border-radius: 10px; padding: 30px; text-align: center; cursor: pointer; background: #fafafa; transition: border-color .2s, background .2s; }
.file-upload-area:hover, .file-upload-area.drag-over { border-color: var(--primary); background: rgba(104,109,118,.04); }
.file-upload-area input { display: none; }
.upload-icon { font-size: 2.2rem; margin-bottom: 10px; }
.file-upload-area p { font-size: .9rem; color: var(--muted); }
.file-upload-area strong { color: var(--primary); }
.file-upload-area small { font-size: .78rem; color: #9ca3af; margin-top: 6px; display: block; }
.file-list { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.file-item { background: rgba(104,109,118,.06); border-radius: 6px; padding: 8px 12px; font-size: .82rem; display: flex; justify-content: space-between; align-items: center; }
.remove-file { cursor: pointer; color: var(--error); padding: 2px 6px; border-radius: 4px; transition: background .2s; }
.remove-file:hover { background: rgba(229,62,62,.1); }

.terms-box { background: var(--light); border-radius: 10px; padding: 18px 22px; }
.terms-box ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.terms-box li { font-size: .85rem; color: var(--text); display: flex; align-items: flex-start; gap: 8px; }
.terms-box li::before { content: '•'; color: var(--accent); font-weight: 700; margin-top: 1px; }
.checkbox-group { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; }
.checkbox-group input[type=checkbox] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; }
.checkbox-group label { font-size: .85rem; color: var(--text); cursor: pointer; line-height: 1.5; }

.form-submit { padding: 28px 36px; background: var(--light); }
.btn-submit { width: 100%; background: var(--primary); color: var(--white); border: none; font-family: inherit; font-size: 1.05rem; font-weight: 700; padding: 16px; border-radius: 10px; cursor: pointer; transition: background .2s, transform .15s; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-submit:hover:not(:disabled) { background: #4f545a; transform: translateY(-1px); }
.btn-submit:disabled { background: #9ca3af; cursor: not-allowed; transform: none; }
.btn-submit .spinner { width: 20px; height: 20px; border: 3px solid rgba(255,255,255,.4); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.btn-submit.loading .spinner { display: block; }
.btn-submit.loading .btn-text { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-note { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 12px; }

.modal { background: var(--white); border-radius: 20px; padding: 48px 40px; text-align: center; max-width: 420px; width: 90%; transform: translateY(30px); transition: transform .3s; }
.modal-overlay.show .modal { transform: translateY(0); }
.modal-icon { font-size: 3.5rem; margin-bottom: 18px; }
.modal h2 { font-size: 1.5rem; font-weight: 800; color: var(--primary); margin-bottom: 10px; }
.modal p { font-size: .9rem; color: var(--muted); line-height: 1.6; margin-bottom: 24px; }
.order-id { background: var(--light); border-radius: 8px; padding: 12px; font-size: .9rem; font-weight: 700; color: var(--primary); margin-bottom: 24px; }
.modal-btns { display: flex; gap: 12px; }
.btn-modal-wa { flex: 1; background: #25d366; color: white; font-weight: 700; padding: 12px; border-radius: 8px; border: none; font-family: inherit; font-size: .9rem; cursor: pointer; transition: background .2s; }
.btn-modal-wa:hover { background: #20be5c; }
.btn-modal-home { flex: 1; background: var(--light); color: var(--primary); font-weight: 700; padding: 12px; border-radius: 8px; border: 1.5px solid #e2e8f0; font-family: inherit; font-size: .9rem; cursor: pointer; text-decoration: none; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.btn-modal-home:hover { background: #e8eef5; }

@media(max-width: 640px) {
  .form-row, .form-row.triple { grid-template-columns: 1fr; }
  .form-section { padding: 24px 20px; }
  .form-submit { padding: 20px; }
  .modal { padding: 36px 24px; }
  .gate-form { flex-direction: column; }
}
