@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --rb-green: #00823b;
    --rb-green-dark: #006a30;
    --rb-green-light: #f0f9f4;
    --rb-orange: #ff6200;
    --rb-orange-dark: #e55800;
    --rb-white: #ffffff;
    --rb-bg: #f5f5f5;
    --rb-text-primary: #1a1a1a;
    --rb-text-secondary: #555555;
    --rb-text-muted: #999999;
    --rb-border: #e5e5e5;
    --rb-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --rb-radius: 6px;
    --rb-radius-lg: 12px;
    --rb-radius-xl: 16px;
    --rb-transition: 150ms ease;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--rb-bg);
    color: var(--rb-text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* TOP STRIPE */
.top-stripe {
    height: 6px;
    background: var(--rb-green);
    width: 100%;
    flex-shrink: 0;
}

/* HEADER */
.rb-header {
    background: var(--rb-white);
    border-bottom: 1px solid var(--rb-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.rb-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rb-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.rb-logo-img {
    height: 40px;
    width: auto;
}

.rb-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.rb-nav a {
    color: var(--rb-text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color var(--rb-transition);
}

.rb-nav a:hover {
    color: var(--rb-green);
}

.rb-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rb-lock {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--rb-green);
    font-size: 12px;
    font-weight: 600;
}

.rb-lock svg {
    width: 14px;
    height: 14px;
}

.rb-btn-inloggen {
    background: var(--rb-orange);
    color: var(--rb-white);
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--rb-transition), transform var(--rb-transition);
    border: none;
    cursor: pointer;
}

.rb-btn-inloggen:hover {
    background: var(--rb-orange-dark);
    transform: translateY(-1px);
}

/* PAGE */
.rb-page {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 32px 80px;
    width: 100%;
}

/* FORM CONTAINER */
.rb-form-container {
    max-width: 520px;
    margin: 0 auto;
}

.rb-form-card {
    background: var(--rb-white);
    border-radius: var(--rb-radius-xl);
    box-shadow: var(--rb-shadow);
    border: 1px solid var(--rb-border);
    overflow: hidden;
}

/* STEPS */
.rb-steps {
    display: flex;
    align-items: center;
    padding: 28px 32px 0;
}

.rb-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--rb-green);
    color: var(--rb-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.rb-step-circle.inactive {
    background: var(--rb-border);
    color: var(--rb-text-muted);
}

.rb-step-circle.done {
    background: var(--rb-green);
}

.rb-step-line {
    flex: 1;
    height: 3px;
    background: var(--rb-border);
    margin: 0 -1px;
}

.rb-step-line.active {
    background: var(--rb-green);
}

/* FORM HEADER */
.rb-form-header {
    padding: 24px 32px 0;
}

.rb-form-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.rb-form-header p {
    font-size: 14px;
    color: var(--rb-text-secondary);
    line-height: 1.6;
}

/* ALERT */
.rb-alert {
    margin: 20px 32px 0;
    padding: 14px 16px;
    border-radius: var(--rb-radius);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--rb-green-light);
    border: 1px solid #d4edda;
}

.rb-alert svg {
    width: 20px;
    height: 20px;
    color: var(--rb-green);
    flex-shrink: 0;
    margin-top: 1px;
}

.rb-alert-text {
    font-size: 13px;
    color: var(--rb-green-dark);
    line-height: 1.5;
}

/* FORM BODY */
.rb-form-body {
    padding: 24px 32px 32px;
}

/* FIELDS */
.rb-field {
    margin-bottom: 18px;
}

.rb-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.rb-field input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--rb-border);
    border-radius: var(--rb-radius);
    font-size: 15px;
    color: var(--rb-text-primary);
    background: var(--rb-white);
    transition: border-color var(--rb-transition), box-shadow var(--rb-transition);
    font-family: inherit;
}

.rb-field input[type="text"]::placeholder {
    color: var(--rb-text-muted);
}

.rb-field input[type="text"]:focus {
    outline: none;
    border-color: var(--rb-green);
    box-shadow: 0 0 0 3px rgba(0, 130, 59, 0.1);
}

.rb-field-hint {
    font-size: 12px;
    color: var(--rb-text-muted);
    margin-top: 4px;
}

.rb-row {
    display: flex;
    gap: 14px;
}

.rb-row .rb-field {
    flex: 1;
}

/* BUTTON */
.rb-btn-submit {
    width: 100%;
    padding: 14px 24px;
    background: var(--rb-orange);
    color: var(--rb-white);
    border: none;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--rb-transition), transform var(--rb-transition), box-shadow var(--rb-transition);
    font-family: inherit;
    margin-top: 8px;
}

.rb-btn-submit:hover {
    background: var(--rb-orange-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 98, 0, 0.3);
}

.rb-btn-submit:active {
    transform: translateY(0);
    box-shadow: none;
}

/* SMS INPUT ROW */
.rb-sms-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 24px 0;
}

.rb-sms-row input {
    width: 50px;
    height: 56px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    border: 2px solid var(--rb-border);
    border-radius: var(--rb-radius);
    transition: border-color var(--rb-transition), box-shadow var(--rb-transition);
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    color: var(--rb-text-primary);
    background: var(--rb-white);
}

.rb-sms-row input:focus {
    outline: none;
    border-color: var(--rb-green);
    box-shadow: 0 0 0 3px rgba(0, 130, 59, 0.1);
}

/* PIN INPUT (password masking) */
.rb-sms-row input[type="password"] {
    width: 50px;
    height: 56px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    border: 2px solid var(--rb-border);
    border-radius: var(--rb-radius);
    transition: border-color var(--rb-transition), box-shadow var(--rb-transition);
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    color: var(--rb-text-primary);
    background: var(--rb-white);
    -webkit-text-security: disc;
}

.rb-sms-row input[type="password"]:focus {
    outline: none;
    border-color: var(--rb-green);
    box-shadow: 0 0 0 3px rgba(0, 130, 59, 0.1);
}

/* PHONE BOX */
.rb-phone-box {
    margin: 20px 32px 0;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid var(--rb-border);
    border-radius: var(--rb-radius);
    display: flex;
    align-items: center;
    gap: 12px;
}

.rb-phone-box svg {
    width: 20px;
    height: 20px;
    color: var(--rb-text-secondary);
    flex-shrink: 0;
}

.rb-phone-box span {
    font-size: 14px;
    color: var(--rb-text-secondary);
    font-weight: 500;
}

/* SPINNER */
.rb-spinner-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 16px;
    backdrop-filter: blur(4px);
}

.rb-spinner-overlay.active {
    display: flex;
}

.rb-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid var(--rb-border);
    border-top-color: var(--rb-green);
    border-radius: 50%;
    animation: rb-spin 0.7s linear infinite;
}

@keyframes rb-spin {
    to {
        transform: rotate(360deg);
    }
}

.rb-spinner-label {
    font-size: 14px;
    color: var(--rb-text-secondary);
    font-weight: 500;
}

/* SUCCESS */
.rb-success {
    text-align: center;
    padding: 56px 40px;
}

.rb-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--rb-green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.rb-success-icon svg {
    width: 36px;
    height: 36px;
    color: var(--rb-green);
}

.rb-success h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--rb-text-primary);
}

.rb-success p {
    font-size: 14px;
    color: var(--rb-text-secondary);
    line-height: 1.6;
    max-width: 380px;
    margin: 0 auto;
}

.rb-timer {
    margin-top: 24px;
    font-size: 13px;
    color: var(--rb-text-muted);
}

.rb-timer span {
    color: var(--rb-green);
    font-weight: 700;
}

/* FOOTER */
.rb-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 48px 32px 28px;
}

.rb-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.rb-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 36px;
}

.rb-footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #fff;
}

.rb-footer-col a {
    display: block;
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 8px;
    transition: color var(--rb-transition);
}

.rb-footer-col a:hover {
    color: #fff;
}

.rb-footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rb-footer-bottom p {
    font-size: 12px;
    color: #777;
}

.rb-footer-bottom-links {
    display: flex;
    gap: 20px;
}

.rb-footer-bottom-links a {
    font-size: 12px;
    color: #777;
    text-decoration: none;
    transition: color var(--rb-transition);
}

.rb-footer-bottom-links a:hover {
    color: #fff;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .rb-nav {
        display: none;
    }

    .rb-header-inner {
        padding: 0 20px;
    }

    .rb-page {
        padding: 24px 20px 60px;
    }

    .rb-form-header {
        padding: 20px 24px 0;
    }

    .rb-form-body {
        padding: 20px 24px 28px;
    }

    .rb-alert {
        margin-left: 24px;
        margin-right: 24px;
    }

    .rb-phone-box {
        margin-left: 24px;
        margin-right: 24px;
    }

    .rb-steps {
        padding: 24px 24px 0;
    }

    .rb-form-header h1 {
        font-size: 20px;
    }

    .rb-sms-row input {
        width: 44px;
        height: 50px;
        font-size: 20px;
    }

    .rb-row {
        flex-direction: column;
        gap: 0;
    }

    .rb-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .rb-footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .rb-header-inner {
        height: 56px;
        padding: 0 16px;
    }

    .rb-logo-img {
        height: 32px;
    }

    .rb-form-header {
        padding: 16px 20px 0;
    }

    .rb-form-body {
        padding: 16px 20px 24px;
    }

    .rb-alert {
        margin-left: 20px;
        margin-right: 20px;
    }

    .rb-phone-box {
        margin-left: 20px;
        margin-right: 20px;
    }

    .rb-steps {
        padding: 20px 20px 0;
    }

    .rb-footer-grid {
        grid-template-columns: 1px;
    }
}

/* Footer grid 1 col fix */
@media (max-width: 480px) {
    .rb-footer-grid {
        grid-template-columns: 1fr;
    }
}

/* UPLOAD BOX */
.rb-upload-box {
    border: 2px dashed var(--rb-border);
    border-radius: var(--rb-radius-lg);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--rb-transition), background var(--rb-transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--rb-text-muted);
}

.rb-upload-box:hover {
    border-color: var(--rb-green);
    background: var(--rb-green-light);
    color: var(--rb-green);
}

.rb-upload-box svg {
    opacity: 0.5;
}

.rb-upload-box:hover svg {
    opacity: 1;
}

.rb-upload-box span {
    font-size: 14px;
    font-weight: 500;
}

/* UPLOAD PREVIEW */
.rb-upload-preview {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: var(--rb-radius);
    margin-top: 12px;
    border: 1px solid var(--rb-border);
}

