*::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.register-akun-page {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background-color: #f0ede6;
    color: #1a1a1a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---- Navbar ---- */
.ra-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background-color: #f0ede6;
    border-bottom: 1px solid #e0dbd2;
    flex-shrink: 0;
}

.ra-navbar .nav-back {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #4a4a4a;
    text-decoration: none;
    transition: color 0.2s;
}

.ra-navbar .nav-back svg {
    width: 16px;
    height: 16px;
}

.ra-navbar .nav-back:hover {
    color: #1a4731;
}

.ra-navbar .nav-masuk {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a6640;
    text-decoration: none;
    transition: color 0.2s;
}

.ra-navbar .nav-masuk svg {
    width: 14px;
    height: 14px;
}

.ra-navbar .nav-masuk:hover {
    color: #1a4731;
    text-decoration: underline;
}

/* ---- Main Container ---- */
.ra-container {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 24px 40px;
    flex: 1;
}

/* ---- Header ---- */
.ra-header {
    margin-bottom: 28px;
}

.ra-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a3a28;
    line-height: 1.2;
    margin-bottom: 8px;
}

.ra-header p {
    font-size: 0.95rem;
    color: #6b6b6b;
}

/* ---- Step Indicator ---- */
.ra-steps {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
}

.ra-step {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ra-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

/* Active step */
.ra-step.is-active .ra-step-num {
    background-color: #1a4731;
    color: #fff;
    border: none;
}

.ra-step.is-active .ra-step-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a6640;
}

/* Completed step */
.ra-step.is-done .ra-step-num {
    background-color: #1a6640;
    color: #fff;
    border: none;
}

.ra-step.is-done .ra-step-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a6640;
}

/* Inactive step */
.ra-step.is-inactive .ra-step-num {
    background-color: transparent;
    color: #b0a89a;
    border: 1.5px solid #c8c2b8;
}

.ra-step.is-inactive .ra-step-label {
    font-size: 0.88rem;
    font-weight: 500;
    color: #b0a89a;
}

/* Connector line between steps */
.ra-step-line {
    flex: 1;
    height: 1.5px;
    background-color: #c8c2b8;
    margin: 0 10px;
    min-width: 28px;
    transition: background-color 0.3s;
}

.ra-step-line.is-done {
    background-color: #1a6640;
}

/* ---- Form ---- */
.ra-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ---- Step Panel ---- */
.ra-panel {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.ra-panel.is-visible {
    display: flex;
}

/* ---- Form Group ---- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
}

/* ---- Two Column Row ---- */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ---- Input Wrapper ---- */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #9ca3af;
    pointer-events: none;
    flex-shrink: 0;
}

.input-wrapper .input-icon-right {
    position: absolute;
    right: 14px;
    width: 20px;
    height: 20px;
    color: #9ca3af;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.input-wrapper .input-icon-right:hover {
    color: #1a4731;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    font-size: 0.95rem;
    color: #1a1a1a;
    background-color: #f8f6f1;
    border: 1.5px solid #ddd8cf;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.input-wrapper input.has-icon-right {
    padding-right: 44px;
}

.input-wrapper input::placeholder {
    color: #b0a89a;
}

.input-wrapper input:focus {
    border-color: #1a6640;
    box-shadow: 0 0 0 3px rgba(26, 102, 64, 0.12);
    background-color: #fff;
}

/* ---- Error ---- */
.form-error {
    font-size: 0.82rem;
    color: #dc2626;
    margin-top: -4px;
}

/* ---- Password Hint ---- */
.input-hint {
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: -4px;
}

/* ---- Terms Checkbox ---- */
.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: #4a4a4a;
}

.terms-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #1a6640;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.terms-check span {
    line-height: 1.5;
}

.terms-check a {
    color: #1a6640;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.terms-check a:hover {
    text-decoration: underline;
}

/* ---- Lanjutkan / Submit Button ---- */
.btn-lanjutkan {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background-color: #1a4731;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.02em;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 4px;
}

.btn-lanjutkan:hover { background-color: #143824; }
.btn-lanjutkan:active { transform: scale(0.99); }

/* ---- Kembali Button (step 2) ---- */
.btn-kembali {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4a4a4a;
    background-color: transparent;
    border: 1.5px solid #ddd8cf;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: border-color 0.2s, background-color 0.2s;
}

.btn-kembali:hover {
    border-color: #b0a89a;
    background-color: #ece9e2;
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ---- Footer Link (Sudah punya akun?) ---- */
.ra-footer-link {
    text-align: center;
    margin-top: 28px;
    font-size: 0.9rem;
    color: #6b6b6b;
}

.ra-footer-link a {
    font-weight: 700;
    color: #1a6640;
    text-decoration: none;
    transition: color 0.2s;
}

.ra-footer-link a:hover {
    color: #1a4731;
    text-decoration: underline;
}

/* ---- Page Footer (copyright) ---- */
.ra-page-footer {
    text-align: center;
    padding: 20px 24px 28px;
    font-size: 0.8rem;
    color: #b0a89a;
    flex-shrink: 0;
}

.ra-page-footer a {
    color: #b0a89a;
    text-decoration: none;
    transition: color 0.2s;
}

.ra-page-footer a:hover {
    color: #4a4a4a;
}

.ra-page-footer .sep {
    margin: 0 6px;
}

/* ---- Help FAB ---- */
.help-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background-color: #2d2d2d;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: background-color 0.2s;
    z-index: 100;
}

.help-fab:hover {
    background-color: #1a4731;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .ra-container {
        padding: 32px 20px 32px;
    }

    .ra-header h1 {
        font-size: 1.7rem;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }
}
