:root {
    --green: #158f63;
    --green-soft: #e6f7ee;
    --green-dark: #0f6a48;
    --bg: #e9f8f0;
    --border: #d0e2dd;
    --ink: #1f2933;
    --muted: #6b7b8c;
    --danger: #d64545;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, sans-serif;
}

body {
    min-height: 100vh;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    color: var(--ink);
}

.page {
    width: 100%;
    max-width: 480px;
}

/* HEADER BAR + SLIDER (ATAS) */
.hero {
    background: var(--green);
    border-radius: 20px 20px 0 0;
    padding: 12px 14px 10px;
    color: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28);
}

.hero-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.hero-logo {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.hero-title {
    font-size: 17px;
    font-weight: 700;
}

.hero-sub {
    font-size: 12px;
    opacity: 0.9;
}

.hero-slider {
    margin-top: 8px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.hero-slider img {
    display: block;
    width: 100%;
    height: auto;
}

/* CARD MULTI STEP */
.card {
    background: #fff;
    border-radius: 0 0 24px 24px;
    padding: 18px 18px 20px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.card-title {
    text-align: center;
    font-size: 20px;
    margin-bottom: 4px;
    color: var(--green-dark);
}

.card-subtitle {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 12px;
}

.card-subtitle strong {
    color: #f97316;
}

.step-label {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 10px;
}

/* STEPPER */
.stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.step-circle {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--muted);
    background: #fff;
    flex-shrink: 0;
}

.step-circle.active {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
    font-weight: 600;
}

.step-circle.done {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

.step-line {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: #e2e8f0;
    margin: 0 2px;
    overflow: hidden;
}

.step-line-inner {
    width: 0;
    height: 100%;
    background: var(--green);
    transition: width 0.25s ease;
}

.progress-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-bar-inner {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--green), var(--green-dark));
    transition: width 0.25s ease;
}

/* FORM */
.step {
    display: none;
}

.step.active {
    display: block;
}

.form-group {
    margin-bottom: 10px;
}

label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

input[type="text"],
input[type="tel"],
input[type="password"],
select,
textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 9px 10px;
    font-size: 14px;
    outline: none;
    transition: border 0.15s ease, box-shadow 0.15s ease;
    background: #f9fafb;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 1px rgba(21, 143, 99, 0.1);
    background: #fff;
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
    border-color: var(--danger);
}

.hint {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}

.error {
    font-size: 12px;
    color: var(--danger);
    margin-bottom: 8px;
    display: none;
}

.btn-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
}

.btn {
    flex: 1;
    border: none;
    border-radius: 999px;
    padding: 11px 12px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(120deg, var(--green), var(--green-dark));
    color: #fff;
}

.btn-secondary {
    background: #e2e8f0;
    color: #334155;
}

.btn:disabled {
    opacity: 0.6;
    cursor: default;
}

/* LOADING EFFECT */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-top-color: transparent;
    margin-left: 8px;
    display: inline-block;
    animation: spin 0.7s linear infinite;
}

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

/* OTP */
.otp-row {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-top: 4px;
    margin-bottom: 4px;
}

.otp-input {
    flex: 1;
    max-width: 52px;
    height: 48px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 22px;
    text-align: center;
    background: #f9fafb;
}

.otp-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 1px rgba(21, 143, 99, 0.1);
    outline: none;
    background: #fff;
}

/* SUMMARY / SUCCESS */
.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 999px;
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px auto 10px;
    color: #fff;
    font-size: 40px;
}

.success-title {
    text-align: center;
    color: var(--green-dark);
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 18px;
}

.success-text {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 10px;
}

.summary-box {
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background: #f9fafb;
    padding: 14px 14px 10px;
    margin-top: 8px;
}

.summary-title {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.summary-row {
    font-size: 13px;
    margin-bottom: 4px;
}

.summary-label {
    font-weight: 600;
}

/* TESTIMONIALS */
.testimonial-wrapper {
    margin-top: 20px;
}

.testimonial-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.testi-card {
    background: #fff;
    border-radius: 18px;
    padding: 14px 16px 16px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testi-avatar {
    width: 60px;
    height: 60px;
    border-radius: 999px;
    border: 3px solid var(--green-soft);
    overflow: hidden;
    margin-bottom: 8px;
}

.testi-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testi-name {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

.testi-text {
    font-size: 13px;
    color: var(--muted);
}

/* FOOTER */
footer {
    margin-top: 20px;
    padding: 14px 16px 10px;
    border-radius: 18px;
    background: var(--green);
    color: #f9fafb;
    font-size: 11px;
    text-align: center;
}

footer p {
    margin-bottom: 4px;
}

footer strong {
    color: #fff;
}

.d-flex {
    display: flex !important;
}

#loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#loading::after {
    content: '';
    width: 50px;
    height: 50px;
    border: 6px solid #0d6efd;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@media (min-width: 640px) {
    body {
        padding-top: 32px;
    }
}