
/* Hide site header & footer on the onboarding welcome page */
.crewlix-onboarding-wrapper ~ footer,
.crewlix-onboarding-wrapper ~ footer *,
body:has(.crewlix-onboarding-wrapper) footer {
    display: none !important;
}

/* Modern Premium UI Design Tokens */
:root {
    --primary-color: #F47E5E;
    --primary-hover: #e5623f;
    --bg-light: #F5F8FC; /* Refined to soft blue-gray background matching mockup */ 
    --text-dark: #323232;
    --text-muted: #8B8C93;
    --border-color: #E2E8F0;
    --success-color: #F47E5E;
    --error-color: #EF4444;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.015); /* Premium soft dual-layered shadow */
}

.crewlix-onboarding-wrapper {
    background-color: var(--bg-light);
    display: flex;
    align-items: start;
    justify-content: center;
    padding: 60px 0;
    min-height: calc(100vh - 140px);
    box-sizing: border-box;
}

/* Outer layout container to hold logo, progress indicator and card together */
.onboarding-outer-container {
    width: 100%;
    max-width: 508px; /* Card size aligns precisely to target */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.onboarding-card-wrp {
    width: 100%;
}

.form-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.form-loading-overlay.hidden {
    display: none;
}

.form-loading-gif {
    width: 60px;
    height: 60px;
}

.onboarding-card {
    background: #FFFFFF;
    border-radius: 10px;
    width: 100%;
    padding: 50px 50px;
    box-sizing: border-box;
    position: relative;
}

.crewlix-onboarding-wrapper .brand-header {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.crewlix-onboarding-wrapper  .brand-logo-wrap {
    display: inline-flex;
    align-items: center;
}

.crewlix-onboarding-wrapper .brand-logo-img { 
    width: auto;
    display: block;
}

/* 3-Step Progress Indicators - Centered Column Design with Labels on Top */
.crewlix-onboarding-wrapper .steps-progress-container {
    position: relative;
    width: 100%;
    margin-bottom: 35px;
    display: flex;
    flex-direction: column;
}

.crewlix-onboarding-wrapper .progress-line-bg {
    position: absolute;
    bottom: 14px; /* Centered exactly vertically with the 28px height circles */
    left: 16.67%; /* Starts at circle 1 center */
    right: 16.67%; /* Ends at circle 3 center */
    height: 2px;
    background: #E2E8F0;
    z-index: 1;
}

.crewlix-onboarding-wrapper .progress-line-active {
    height: 100%;
    width: 0%;
    background: #323DA5; /* Figma target Navy/Indigo Blue */
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.crewlix-onboarding-wrapper .progress-steps-row {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    width: 100%;
}

.crewlix-onboarding-wrapper .step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.crewlix-onboarding-wrapper .step-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
    transition: color 0.3s ease; 
    text-align: center;
    white-space: nowrap; 
    line-height: 22px; 
    letter-spacing: 1px;
}

.crewlix-onboarding-wrapper .step-label.active {
    color: #323DA5;
    
}

.crewlix-onboarding-wrapper .step-label.completed {
    color: #323DA5;
    
}

.crewlix-onboarding-wrapper .step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid #E0E2F3;
    color: #A8ABBD;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    
}

.crewlix-onboarding-wrapper .step-circle.active {
    border-color: #323DA5;
    color: #323DA5;
    background: #FFFFFF;
    
}

.crewlix-onboarding-wrapper .step-circle.completed {
    background: #323DA5;
    border-color: #323DA5;
}

.crewlix-onboarding-wrapper .step-label.completed {
    cursor: default;
}

.crewlix-onboarding-wrapper .step-circle .step-number {
    display: inline;
}

.crewlix-onboarding-wrapper .step-circle .step-check-icon {
    display: none;
}

.crewlix-onboarding-wrapper .step-circle.completed .step-number {
    display: none;
}

.crewlix-onboarding-wrapper .step-circle.completed .step-check-icon {
    display: inline-block;
}

/* Alert Boxes */
.crewlix-onboarding-wrapper .alert-message {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 0;
    transition: opacity 0.3s ease;
    margin-top: 15px;
}
.crewlix-onboarding-wrapper .alert-message.success {
    background: #ECFDF5;
    color: var(--success-color);
    border: 1px solid #A7F3D0;
}
.crewlix-onboarding-wrapper .alert-message.error {
    background: #FEF2F2;
    color: var(--error-color);
    border: 1px solid #FCA5A5;
}
.crewlix-onboarding-wrapper .alert-message.hidden {
    display: none;
}

/* Step Content Transitions */
.crewlix-onboarding-wrapper .step-content {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s ease;
}

.crewlix-onboarding-wrapper .step-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.crewlix-onboarding-wrapper .form-title {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: .5px;
}

.crewlix-onboarding-wrapper .form-subtitle {
    
    font-size: 15px; 
    font-weight: 500;
    line-height: 24px;
    color:#767695;
    text-align: center; 
    margin-bottom: 30px;

}

/* Form Styling */

.crewlix-onboarding-wrapper .form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}


.crewlix-onboarding-wrapper .input-group {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.crewlix-onboarding-wrapper .input-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: .5px;
}

.crewlix-onboarding-wrapper .input-group input {
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 8px !important;
    padding: 0 16px;
    font-size: 14px;
    transition: all 0.2s ease;
    outline: none;
    color: var(--text-dark);
}
/* 
.crewlix-onboarding-wrapper .input-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 115, 80, 0.1);
} */

.input-box:focus {
    outline: 1px solid #e0e2f3;
}

.crewlix-onboarding-wrapper .input-group input.input-error,
.crewlix-onboarding-wrapper .input-group select.input-error {
    border-color: var(--error-color) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Inline field validation error message */
.crewlix-onboarding-wrapper .field-error {
    font-size: 12px;
    font-weight: 500;
    color: var(--error-color); 
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.4;
    height: 20px; 
}

.crewlix-onboarding-wrapper .field-error::before {
    content: "⊘";
    font-size: 16px; 
    flex-shrink: 0;
}

.crewlix-onboarding-wrapper .field-error.hidden {
    visibility: hidden;
}

/* Email Chevron Dropdown Custom Style */
.crewlix-onboarding-wrapper .email-wrapper {
    position: relative;
    display: flex;
    width: 100%;
}

.crewlix-onboarding-wrapper .email-wrapper input {
    width: 100%;
    padding-right: 40px;
}

.crewlix-onboarding-wrapper .email-chevron {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    display: flex;
    align-items: center;
    opacity: 0.9;
}

/* Password Toggle Eye Icon */
.crewlix-onboarding-wrapper .password-wrapper {
    position: relative;
    display: flex;
    width: 100%;
}

.crewlix-onboarding-wrapper .password-wrapper input {
    width: 100%;
    padding-right: 45px;
}

.crewlix-onboarding-wrapper .password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    opacity: 0.7;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.crewlix-onboarding-wrapper .password-toggle:hover {
    opacity: 0.9;
}

.crewlix-onboarding-wrapper .password-toggle .eye-closed {
    display: none;
}
.crewlix-onboarding-wrapper .password-toggle.visible .eye-open {
    display: none;
}
.crewlix-onboarding-wrapper .password-toggle.visible .eye-closed {
    display: inline-block;
}

/* Password Requirements Panel */
.password-requirements {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Aligns requirement dots exactly into a 2x2 grid */
    gap: 12px 24px;
    margin: 10px 0 20px;
}

.crewlix-onboarding-wrapper .req-item {
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 3px;
    transition: color 0.2s ease;
    font-weight: 400;
    line-height: 20px;
}

.crewlix-onboarding-wrapper .req-dot {
    width: 12px;
    height: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 2px;
    position: relative;
}

/* Smooth transition for password checker SVG fill */
.crewlix-onboarding-wrapper .req-dot .password-checker-item-svg path {
    transition: fill 0.2s ease;
}
 
/* Terms and Privacy Policy style */
.crewlix-onboarding-wrapper .terms-and-condition {
    text-align: center;
    font-size: 13px;
    color: #767695;
    margin-top: 26px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: 1px;
}

.crewlix-onboarding-wrapper .terms-and-condition-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
}

.crewlix-onboarding-wrapper .terms-and-condition-link:hover {
    text-decoration: none !important;
    color: var(--primary-hover);
}

/* OTP Inputs styles - Grouped 3 - 3 with hyphen spacer */
.crewlix-onboarding-wrapper .otp-inputs-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0 0;
    border-radius: 10px;
    transition: outline 0.2s ease;
}

.crewlix-onboarding-wrapper .otp-inputs-wrapper.otp-error .otp-input{ 
    border-top: 1.5px solid var(--error-color);
    border-right: 1.5px solid var(--error-color);
    border-bottom: 1.5px solid var(--error-color);

}
.crewlix-onboarding-wrapper .otp-inputs-wrapper.otp-error  .otp-input-box-left {
border-left: 1.5px solid var(--error-color);
}
.crewlix-onboarding-wrapper .otp-input {
    width: 70px;
    height: 70px;
    box-sizing: border-box;
    border-top: 1.5px solid #E2E8F0;
    border-right: 1.5px solid #E2E8F0;
    border-bottom: 1.5px solid #E2E8F0;
    border-left: none;
    border-radius: 0;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: #767695 !important;
    outline: none;
    background: #FFFFFF;
    transition: all 0.2s ease;
}

.crewlix-onboarding-wrapper .otp-input-box-left {
    border-left: 1px solid #e0e2f3;
    border-radius: 10px 0 0 10px;
}

.crewlix-onboarding-wrapper .otp-input-box-right {
    border-radius: 0 10px 10px 0;
}

.crewlix-onboarding-wrapper .otp-input:focus {
    background: #F8FAFC;
    color: #323DA5;
}

/* OTP status block — success message + countdown inside the card */
.crewlix-onboarding-wrapper .otp-status-block {
    margin-top: 20px;  
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.crewlix-onboarding-wrapper .otp-status-block .otp-sent-msg {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    color: #3EB75E;
    letter-spacing: 0.02em;
}

.crewlix-onboarding-wrapper .otp-status-block .resend-countdown {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em; 
}

.crewlix-onboarding-wrapper .otp-status-block .resend-countdown strong {
    font-weight: 700;
}

.crewlix-onboarding-wrapper .otp-status-block .resend-text {
    font-size: 15px;
    color: #5D5D7A;
    letter-spacing: 1px;
}

.crewlix-onboarding-wrapper .otp-status-block .resend-link {
    background: none;
    border: none;
    padding: 0;
    color: #323DA5;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.crewlix-onboarding-wrapper .otp-status-block .resend-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Subdomain Custom input Group - select-like outline on left, text on right */
.crewlix-onboarding-wrapper .subdomain-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.crewlix-onboarding-wrapper .subdomain-wrapper input {
    flex: 1;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0 16px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    color: var(--text-dark);
}
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset!important;
}
/* 
.crewlix-onboarding-wrapper .subdomain-wrapper input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 115, 80, 0.1);
} */

.crewlix-onboarding-wrapper .subdomain-suffix {
    font-weight: 700;
    font-size: 18px;
    color: #323DA5;
    white-space: nowrap;
    line-height: 28px;
}

.crewlix-onboarding-wrapper .subdomain-status-msg {
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    height: 20px;
    line-height: 20px
}

.crewlix-onboarding-wrapper .subdomain-status-msg.checking {
    color: var(--text-muted);
}

.crewlix-onboarding-wrapper .subdomain-status-msg.available {
    color: #10B981;
}

.crewlix-onboarding-wrapper .subdomain-status-msg.taken {
    color: var(--error-color);
}

/* Premium Styled Custom Select Dropdown Dropdowns */
.crewlix-onboarding-wrapper .select-wrapper {
    position: relative;
    display: flex;
    width: 100%;
}


.crewlix-onboarding-wrapper .select-wrapper select {
    width: 100%;
    border: 1px solid var(--border-color);
    padding: 11px 30px 11px 20px;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    border-radius: 10px;
    color: var(--headline);
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iNiIgdmlld0JveD0iMCAwIDEyIDYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xMC4wNDMgMC4xNjAxNTZDMTAuMDY2NCAwLjEzNjcxOSAxMC4wODk4IDAuMTIxMDk0IDEwLjExMzMgMC4xMTMyODFDMTAuMTQ0NSAwLjA5NzY1NjIgMTAuMTc5NyAwLjA4OTg0MzggMTAuMjE4OCAwLjA4OTg0MzhDMTAuMjUgMC4wODk4NDM4IDEwLjI4MTIgMC4wOTc2NTYyIDEwLjMxMjUgMC4xMTMyODFDMTAuMzQzOCAwLjEyMTA5NCAxMC4zNzExIDAuMTM2NzE5IDEwLjM5NDUgMC4xNjAxNTZMMTAuOTIxOSAwLjY5OTIxOUMxMC45NDUzIDAuNzE0ODQ0IDEwLjk2NDggMC43MzgyODEgMTAuOTgwNSAwLjc2OTUzMUMxMC45OTYxIDAuODAwNzgxIDExLjAwMzkgMC44MzU5MzggMTEuMDAzOSAwLjg3NUMxMS4wMDM5IDAuOTA2MjUgMTAuOTk2MSAwLjkzNzUgMTAuOTgwNSAwLjk2ODc1QzEwLjk2NDggMSAxMC45NDUzIDEuMDIzNDQgMTAuOTIxOSAxLjAzOTA2VjEuMDUwNzhMNi4zMjgxMiA1LjY0NDUzQzYuMjk2ODggNS42NzU3OCA2LjI1NzgxIDUuNzAzMTIgNi4yMTA5NCA1LjcyNjU2QzYuMTY0MDYgNS43NDIxOSA2LjExNzE5IDUuNzUgNi4wNzAzMSA1Ljc1SDUuOTI5NjlDNS44ODI4MSA1Ljc1IDUuODM1OTQgNS43NDIxOSA1Ljc4OTA2IDUuNzI2NTZDNS43NDIxOSA1LjcwMzEyIDUuNzAzMTIgNS42NzU3OCA1LjY3MTg4IDUuNjQ0NTNMMS4wNzgxMiAxLjA1MDc4QzEuMDU0NjkgMS4wMjczNCAxLjAzNTE2IDEgMS4wMTk1MyAwLjk2ODc1QzEuMDAzOTEgMC45Mzc1IDAuOTk2MDk0IDAuOTA2MjUgMC45OTYwOTQgMC44NzVDMC45OTYwOTQgMC44MzU5MzggMS4wMDM5MSAwLjgwMDc4MSAxLjAxOTUzIDAuNzY5NTMxQzEuMDM1MTYgMC43MzgyODEgMS4wNTQ2OSAwLjcxNDg0NCAxLjA3ODEyIDAuNjk5MjE5TDEuNjA1NDcgMC4xNjAxNTZDMS42Mjg5MSAwLjEzNjcxOSAxLjY1NjI1IDAuMTIxMDk0IDEuNjg3NSAwLjExMzI4MUMxLjcxODc1IDAuMDk3NjU2MiAxLjc1IDAuMDg5ODQzOCAxLjc4MTI1IDAuMDg5ODQzOEMxLjgyMDMxIDAuMDg5ODQzOCAxLjg1MTU2IDAuMDk3NjU2MiAxLjg3NSAwLjExMzI4MUMxLjkwNjI1IDAuMTIxMDk0IDEuOTMzNTkgMC4xMzY3MTkgMS45NTcwMyAwLjE2MDE1Nkw2IDQuMjAzMTJMMTAuMDQzIDAuMTYwMTU2WiIgZmlsbD0iIzhCOEM5MyIvPgo8L3N2Zz4K);
    background-repeat: no-repeat;
    background-position-x: calc(100% - 11px);
    background-position-y: 18px;
}
/* 

.crewlix-onboarding-wrapper .select-wrapper select {
    width: 100%;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0 35px 0 16px;
    font-size: 14px;
    outline: none;
    background: #FFFFFF;
    color: var(--text-dark);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.2s ease;
} */

.crewlix-onboarding-wrapper .select-wrapper select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 115, 80, 0.1);
}
/* 
.crewlix-onboarding-wrapper .select-wrapper::after {
    content: "▼";
    font-size: 10px;
    color: var(--text-muted);
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
} */

/* Step 4 Loading Screen Animation */
.crewlix-onboarding-wrapper .loader-step {
    text-align: center;
}

.crewlix-onboarding-wrapper .loader-illustration {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* Outer wrapper — full width so ResizeObserver can measure it */
.crewlix-onboarding-wrapper .progress-animation-main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* "Loading..." text with animated dots */
.crewlix-onboarding-wrapper .progress-animation-loading {
    font-size: 15px;
    font-weight: 600;
    color: #323DA5;
    letter-spacing: 0.04em;
    margin-bottom: 18px;
}

.crewlix-onboarding-wrapper .progress-animation-loading-dot {
    opacity: 0;
    transition: opacity 0.15s ease;
}

/* Size container — width/height set by JS ResizeObserver to match scaled SVG */
#progressAnimationSizeContainer {
    overflow: hidden;
}

.crewlix-onboarding-wrapper .progress-animation-container {
    position: relative;
    display: inline-block;
    width: 344px;
    height: 288px;
    transform-origin: top left;
}

.crewlix-onboarding-wrapper .progress-animation-button-blue-zero {
    position: absolute;
    top: 133px;
    right: 48px;
    animation: yellow-btn 2s infinite;
}

.crewlix-onboarding-wrapper .progress-animation-button-blue-one {
    position: absolute;
    top: 93px;
    right: 48px;
    animation: yellow-btn 3s infinite;
}

.crewlix-onboarding-wrapper .progress-animation-button-blue-two {
    position: absolute;
    top: 174px;
    right: 48px;
    animation: yellow-btn 2.5s infinite;
}

.crewlix-onboarding-wrapper .progress-animation-button-blue-three {
    position: absolute;
    top: 215px;
    right: 48px;
    animation: yellow-btn 2.7s infinite;
}

.crewlix-onboarding-wrapper .progress-animation-monitor-beep {
    position: absolute;
    top: 237px;
    left: 201px;
    animation: beep 1s infinite;
}

.crewlix-onboarding-wrapper .progress-animation-star-one {
    position: absolute;
    top: 154px;
    left: 116px;
    transform-origin: center;
    animation: star-one 2s infinite;
}

.crewlix-onboarding-wrapper .progress-animation-star-two {
    position: absolute;
    top: 119px;
    left: 28px;
    transform-origin: center;
    animation: star-one 1.5s infinite;
}

.crewlix-onboarding-wrapper .progress-animation-star-three {
    position: absolute;
    top: 58px;
    left: 52px;
    transform-origin: center;
    animation: star-one 2s infinite;
}

@keyframes star-one {
    0% {
        transform: scale(0.3);
    }
    50% {
        transform: scale(1);
    }
    100% {
        transform: scale(0.3);
    }
}

@keyframes beep {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes yellow-btn {
    0% {
        right: 48px;
    }
    45% {
        right: 48px;
    }
    50% {
        right: 37px;
    }
    95% {
        right: 37px;
    }
    100% {
        right: 48px;
    }
}

/* Step 5 Success / Checkmark Animation */
.crewlix-onboarding-wrapper .success-step {
    text-align: center;
}

.crewlix-onboarding-wrapper .success-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.crewlix-onboarding-wrapper .success-checkmark {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid #3EB75E;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleUpCheck 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.crewlix-onboarding-wrapper .check-icon {
    width: 17px !important;
    height: 10px !important;
    border-left: 4px solid #3EB75E;
    border-bottom: 4px solid #3EB75E;
    transform: rotate(-45deg);
    margin-top: -4px;
    animation: drawCheck 0.3s ease-in-out 0.4s both;
}

@keyframes scaleUpCheck {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes drawCheck {
    0% {
        width: 0;
        height: 0;
    }
    100% {
        width: 24px;
        height: 12px;
    }
}

.crewlix-onboarding-wrapper .reference-label {
    font-size: 14px;
    background: var(--bg-light);
    padding: 10px 16px;
    border-radius: 8px;
    color: var(--text-dark);
    display: inline-block;
    margin-bottom: 20px;
    border: 1px dashed var(--border-color);
    font-family: monospace;
}

.crewlix-onboarding-wrapper .success-state {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.4s ease forwards 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Buttons styling */
.crewlix-onboarding-wrapper .submit-btn {
    position: relative;
    width: 100%;
    height: 50px;
    background: var(--primary-color);
    color: #FFFFFF;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 115, 80, 0.2);
}

.crewlix-onboarding-wrapper .submit-btn:hover {
    background: var(--primary-hover);
}

.crewlix-onboarding-wrapper .submit-btn:active {
    transform: scale(0.98);
}

.crewlix-onboarding-wrapper .submit-btn:focus,
.crewlix-onboarding-wrapper .submit-btn:focus-visible,
.crewlix-onboarding-wrapper .submit-btn:hover {
    outline: none;
}

.submit-btn:disabled {
    background: #CBD5E1;
    color: #94A3B8;
    cursor: not-allowed;
    box-shadow: none;
}

/* Button loading spinner */
.crewlix-onboarding-wrapper .submit-btn .btn-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: crewlix-btn-spin 0.7s linear infinite;
}

.crewlix-onboarding-wrapper .submit-btn.loading {
    pointer-events: none;
    background: var(--primary-color);
}

.crewlix-onboarding-wrapper .submit-btn.loading .btn-label {
    visibility: hidden;
}

.crewlix-onboarding-wrapper .submit-btn.loading .btn-spinner {
    display: block;
}

@keyframes crewlix-btn-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* .crewlix-onboarding-wrapper .hidden {
    display: none !important;
} */

#stepFiveWrapper .hidden,
#stepTwoResendWrapper .hidden {
    display: none !important;
}

/* Step Footer Actions (Pill button + link layout) */
.crewlix-onboarding-wrapper .form-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 4px 0 20px 0;
}

.crewlix-onboarding-wrapper .step-footer-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 15px;
    width: 100%;
}

.crewlix-onboarding-wrapper .start-over-link {
    font-size: 13px;
    color: #323DA5;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.crewlix-onboarding-wrapper .start-over-link:hover {
    text-decoration: underline;
    opacity: 0.85;
}

/* Star Pulse/Rotate Micro-Animation */
.crewlix-onboarding-wrapper .loading-star {
    transform-origin: center;
    transform-box: fill-box;
    animation: starBreathing 3s ease-in-out infinite alternate;
}
.crewlix-onboarding-wrapper .star-1 { animation-delay: 0s; }
.crewlix-onboarding-wrapper .star-2 { animation-delay: 0.6s; }
.crewlix-onboarding-wrapper .star-3 { animation-delay: 1.2s; }

@keyframes starBreathing {
    0% {
        transform: scale(0.85) rotate(-15deg);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.15) rotate(15deg);
        opacity: 1;
    }
}

/* Floating Dashboard mockup Animation */
.crewlix-onboarding-wrapper .dashboard-mockup {    
    transform-origin: center;
    transform-box: fill-box;
    animation: dashboardFloat 4.5s ease-in-out infinite alternate;
}

@keyframes dashboardFloat {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-8px);
    }
}


@media (max-width: 480px) {
    .crewlix-onboarding-wrapper .form-row-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .onboarding-card {
        padding: 30px;
    }

    .password-requirements {
        grid-template-columns: 1fr;
        gap: 8px 8px;
        margin: 10px 0 20px;
    }

    .crewlix-onboarding-wrapper .otp-input {
        width: 45px;
        height: 50px;
    }
    .crewlix-onboarding-wrapper { 
        padding: 40px 20px;
    }
}