/* Onboarding Common Styles - Shared across all onboarding pages */
/* This file contains all common styles for the onboarding flow (1440x900 fixed container) */
/* Note: Form typography and controls are now in base.css for reusability across all forms */

/* ==================== ONBOARDING FIXED CONTAINER LAYOUT ==================== */
/* Core structural styles for all onboarding pages (1440x900) */
.onboarding-app-wrapper {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
    padding: 20px;
    box-sizing: border-box;
}

.onboarding-container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 1440px;
    height: 900px;
    max-width: 100%;
    max-height: calc(100vh - 40px);
    aspect-ratio: 1440/900;
    background: white;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* ==================== TOP NAVIGATION ==================== */
.onboarding-nav {
    height: 78px;
    flex-shrink: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 120px;
}

.nav-content {
    display: flex;
    align-items: center;
}

.nav-logo-link {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 36px;
    width: auto;
    max-width: 106px;
}

.nav-signout-link {
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-signout-link:hover {
    color: var(--primary);
}

/* ==================== CONTENT ROW ==================== */
.content-row {
    flex: 1;
    display: flex;
    flex-direction: row;
    min-height: 0;
}

/* ==================== LEFT SIDE: FORM ==================== */
.form-main {
    width: 50%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* Custom scrollbar for form */
.form-main::-webkit-scrollbar {
    width: 8px;
}

.form-main::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.form-main::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.form-main::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.form-content {
    flex: 1;
    padding: 80px 100px;
}

/* Progress Bar */
.progress-bar-container {
    margin-bottom: 40px;
}

.progress-bar {
    display: flex;
    gap: 7px;
    align-items: center;
}

.progress-step {
    flex: 1;
    height: 8px;
    position: relative;
    display: block;
}

.progress-step img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Clickable step */
.progress-step.clickable {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.progress-step.clickable:hover {
    opacity: 0.7;
}

.progress-step.clickable:active {
    opacity: 0.9;
}

/* Current step - underline highlight */
.progress-step.current::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Disabled step */
.progress-step.disabled {
    cursor: not-allowed;
    opacity: 1;
}

/* Custom tooltip - uses ::before to avoid conflict with current::after underline */
.progress-step[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    transition-delay: 100ms;
    z-index: 100;
}

.progress-step[data-tooltip]:hover::before {
    opacity: 1;
}

/* Page Title */
.page-title {
    font-family: 'Roboto', sans-serif;
    font-size: 26px;
    font-weight: bold;
    line-height: 36px;
    color: #161616;
    margin-bottom: 12px;
}

/* Form Fields Container */
.form-fields-container {
    margin-bottom: 32px;
}

/* Form Footer (Bottom Button Area) */
.form-footer {
    flex-shrink: 0;
    background: #f8f8f8;
    padding: 20px 100px;
}

/* Submit Button */
.submit-button {
    width: 100%;
    height: 55px;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 2.16px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid;
    cursor: pointer;
}

.submit-button.disabled {
    background: #9e9e9e;
    color: #757575;
    cursor: not-allowed;
    border-color: #9e9e9e;
}

.submit-button:not(.disabled) {
    background: #00bbff;
    color: #000;
    border-color: #00bbff;
}

.submit-button:not(.disabled):hover {
    background: #00a0dd;
    border-color: #00a0dd;
}

.loading-spinner {
    margin-left: 12px;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

/* ==================== RIGHT SIDE: SIDEBAR ==================== */
.sidebar-aside {
    width: 50%;
    background-color: #000000;
    position: relative;
    overflow-y: hidden;
}

/* Background image overlay */
.sidebar-aside::before {
    content: '';
    position: absolute;
    top: -148%;
    left: -108.09%;
    width: 208.09%;
    height: 287.9%;
    background-image: url('/static/basic3pl/images/frame1339.jpg');
    background-size: 100% 100%;
    background-position: 0 0;
    background-repeat: no-repeat;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.sidebar-content {
    position: relative;    
    z-index: 1;
    padding: 120px 70px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.sidebar-nav {
    font-size: 16px;
}

/* Navigation Items */
.nav-item {
    display: flex;
    align-items: center;
    padding: 0 8px;
    height: 24px;
}

.nav-item.level-1 {
    padding-left: 8px;
}

.nav-item.level-2 {
    padding-left: 26px;
    padding-right: 8px;
}

.nav-spacer {
    width: 16px;
    flex-shrink: 0;
}

.nav-icon-wrapper {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 4px;
}

.nav-icon {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.nav-text-wrapper {
    padding-left: 4px;
}

.nav-text {
    color: white;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.15px;
}

.nav-text.opacity-38 {
    opacity: 0.38;
}

/* ==================== RESPONSIVE ==================== */

/* Large Screens */
@media (min-width: 1920px) {
    .onboarding-app-wrapper {
        background: #e0e0e0;
    }
    
    .onboarding-container {
        border-radius: 8px;
    }
}

/* Medium Screens */
@media (max-width: 1200px) {
    .onboarding-nav {
        padding: 0 60px;
    }
    
    .form-content {
        padding: 60px 80px;
    }
    
    .form-footer {
        padding: 20px 80px;
    }
    
    .sidebar-content {
        padding: 100px 50px;
        height: 100%;
        overflow-y: auto;
    }
}

/* Small Screens */
@media (max-width: 1024px) {
    .form-content {
        padding: 40px 60px;
    }
    
    .form-footer {
        padding: 15px 60px;
    }
    
    .sidebar-content {
        padding: 80px 40px;
        height: 100%;
        overflow-y: auto;
    }
}

/* Mobile / Tablet */
@media (max-width: 768px) {
    .onboarding-container {
        flex-direction: column;
    }
    
    .onboarding-nav {
        height: 60px;
        padding: 0 20px;
    }
    
    .nav-logo {
        height: 32px;
    }
    
    .content-row {
        flex-direction: column;
    }
    
    .form-main {
        width: 100%;
    }
    
    .sidebar-aside {
        display: none;
    }
    
    .form-content {
        padding: 30px 20px;
    }
    
    .form-footer {
        padding: 15px 20px;
    }
    
    .page-title {
        font-size: 20px;
        line-height: 28px;
    }
    
    .progress-bar-container {
        margin-bottom: 30px;
    }
}

/* ── Floating label (shared across onboarding + KYB pages) ─────────── */
.floating-label-wrapper {
    position: relative;
}

.floating-label {
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.6);
    background: #ffffff;
    padding: 0 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.floating-label-wrapper input:not(:placeholder-shown) ~ .floating-label {
    opacity: 1;
}

.required-mark {
    color: #d32f2f;
}

/* ==================== REGISTRATION PENDING PAGE ==================== */
.message-container {
    max-width: 600px;
}

.message-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 26px;
    color: rgba(22, 22, 22, 0.7);
    margin-bottom: 12px;
}

.message-text {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0.15px;
    color: #161616;
}

/* ==================== GLOBAL CONFIRM MODAL ==================== */
.confirm-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-modal-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    padding: 32px 28px 24px;
    width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.confirm-modal-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #FEE2E2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.confirm-modal-title {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #161616;
    margin: 0;
    text-align: center;
}

.confirm-modal-message {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.6);
    margin: 0;
    text-align: center;
}

.confirm-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    width: 100%;
}

.confirm-modal-btn {
    flex: 1;
    height: 40px;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s ease;
}

.confirm-modal-btn:hover {
    opacity: 0.85;
}

.confirm-modal-btn-cancel {
    background: #f5f5f5;
    color: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.confirm-modal-btn-danger {
    background: #DC2626;
    color: #ffffff;
}

