/* ############################################################
   SECTION 2 - REGISTRATION FLOW STYLES
   ############################################################ */

@supports (-webkit-touch-callout: none) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    input[type="url"],
    input[type="search"],
    input[type="date"],
    input[type="datetime-local"],
    input[type="month"],
    input[type="week"],
    input[type="time"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* ---------- Design Tokens ---------- */
body {
    --primary-blue: #0155E9;
    --accent-blue: #0155E9;
    --dark-purple: #130A44;
    --purple-btn: #734BF9;
    --light-bg-blue: #EEF4FF;
    --border-color: #d1d5db;
}

/* Step 1 (Contact Person) uses a slightly deeper light-blue tint */
.page-step1 {
    --light-bg-blue: #E4EBFE;
}

/* ---------- Base / Background ---------- */
body {
    font-family:
        "Poppins",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
    background: url('../images/registration-background.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Dark Overlay + Backdrop Blur Filter */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 0;
}

/* Container Layout Setup */
.page-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 12px;
}

/* Main Registration Card Wrapper */
.registration-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    max-width: 960px;
    width: 100%;
    margin: auto;
}

/* Keep the card height identical across all registration steps
   (including the Welcome page).
   Values equal the natural height of the tallest step
   (Step 4 - Packages): 753px on desktop, 705px on small tablets. */
@media (min-width: 768px) {

    .registration-card,
    .welcome-card {
        min-height: 705px;
    }
}

@media (min-width: 992px) {

    .registration-card,
    .welcome-card {
        min-height: 753px;
    }

}

/* Stretch the inner row so the blue sidebar always spans
   the full height of the registration card */
.registration-card {
    display: flex;
    flex-direction: column;
}

.registration-card>.row {
    flex: 1 1 auto;
}

/* ---------- Right Form Column Layout ----------
   Flex column so the Back/Continue buttons are always
   pinned to the very bottom of the card on every step */
.form-container-col {
    display: flex;
    flex-direction: column;
}

.form-container-col form {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.action-buttons-group {
    margin-top: auto;
    padding-top: 2rem;
}

/* Welcome Card Wrapper (Without Left Panel)
   Same dimensions as .registration-card so the whole flow stays uniform */
.welcome-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    max-width: 960px;
    width: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
}

/* ---------- Left Gradient Panel with Centered Skyline ---------- */
.sidebar-panel {
    background: linear-gradient(359.9deg, #ABCAFC 0.08%, #2F71F9 99.92%);
    color: #ffffff;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Centered Skyline Image Background */
.sidebar-panel::after {
    content: '';
    position: absolute;
    top: 52%;
    left: 0;
    width: 100%;
    height: 220px;
    transform: translateY(-50%);
    background: url('../images/skylines.png') no-repeat center bottom;
    background-size: contain;
    opacity: 0.85;
    z-index: 1;
    pointer-events: none;
}

.sidebar-content-top {
    position: relative;
    z-index: 2;
}

/* Building Icon Glowing Base */
.building-circle-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #266DF8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0px 0px 16.5px 0px #F5F5F540;
    backdrop-filter: blur(4px);
}

.brand-icon-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

/* Testimonial Box with #005AF8 Glow */
.testimonial-card {
    background: #ffffff;
    color: #333333;
    border-radius: 16px;
    box-shadow: 0px 0px 19.6px 0px #005AF8;
    position: relative;
    z-index: 2;
}

/* ---------- Stepper Progress Bar ---------- */
.stepper-wrapper {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    width: 100%;
}

/* Background Gray Line (Base Track) */
.stepper-wrapper::before {
    content: '';
    position: absolute;
    top: 18px;
    left: calc(100% / 7);
    width: calc(100% - (100% / 3));
    height: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

/* Active Blue Line overlaying the base track
   (default = full length, as on step 4; steps 2 & 3 override
   the width via inline style) */
.stepper-progress-line {
    position: absolute;
    top: 18px;
    left: calc(100% / 7);
    width: calc(100% - (100% / 3));
    height: 2px;
    background-color: var(--primary-blue);
    z-index: 1;
    transition: width 0.3s ease-in-out;
}

.step-item {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--border-color);
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 8px;
    box-shadow: 0 0 0 4px #ffffff;
    transition: all 0.2s ease-in-out;
}

.step-item.completed .step-number {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #ffffff;
    box-shadow: 0 0 0 4px #ffffff;
}

.step-item.active .step-number {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #ffffff;
    box-shadow:
        0 0 0 4px #ffffff,
        0 4px 10px rgba(1, 85, 233, 0.3);
}

.step-label {
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    line-height: 1.3;
}

.step-item.active .step-label,
.step-item.completed .step-label {
    color: #000000;
}

/* ---------- Form Controls & Input Styling ---------- */
.form-control,
.form-select,
.input-group-text,
button {
    font-family: 'Poppins', sans-serif;
    border-radius: 8px;
    border-color: #d1d5db;
    padding: 0.6rem 0.75rem;
    font-size: 0.875rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 0.2rem rgba(1, 85, 233, 0.15);
}

.input-group-text {
    background-color: #ffffff;
    color: #6c757d;
}

.input-icon-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Service cards (step 3) use slightly larger icons */
.service-card .input-icon-img {
    width: 20px;
    height: 20px;
}

/* ---------- Phone Country Dropdown (Step 1) ---------- */
.phone-dropdown-btn {
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-right: none;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    padding: 0.6rem 0.75rem;
    font-size: 0.875rem;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 6px;
}

.phone-dropdown-btn:hover,
.phone-dropdown-btn:focus,
.phone-dropdown-btn.show {
    background-color: #f8f9fa;
    border-color: #d1d5db;
    color: #212529;
    box-shadow: none;
}

.phone-input-field {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.country-flag-icon {
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
}

.country-menu {
    max-height: 220px;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 220px;
}

.country-menu .dropdown-item {
    font-size: 0.825rem;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.country-menu .dropdown-item:active {
    background-color: var(--light-bg-blue);
    color: var(--accent-blue);
}

/* ---------- File Upload Box (Step 2) ---------- */
.file-upload-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
}

.file-upload-btn {
    background: #f8fafc;
    border: none;
    border-right: 1px solid #d1d5db;
    color: #475569;
    padding: 0.6rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.file-upload-btn:hover {
    background: #f1f5f9;
}

.file-upload-info {
    padding: 0.6rem 0.75rem;
    font-size: 0.75rem;
    color: #94a3b8;
    flex-grow: 1;
    text-align: right;
    user-select: none;
}

/* ---------- Services Option Selection Cards (Step 3) ---------- */
.service-card {
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    user-select: none;
    height: 100%;
}

.service-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(1, 85, 233, 0.08);
    transform: translateY(-1px);
}

.service-card-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.service-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1.5px solid #cbd5e1;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

/* ---------- Pricing Cards (Step 4) ---------- */
.package-card {
    border: 1.5px solid #d0e1fd;
    border-radius: 16px;
    padding: 20px 16px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: all 0.2s ease-in-out;
    position: relative;
    box-shadow: 0px 0px 5.4px 3px #0155E96E;
}

.package-card.highlighted {
    background: var(--dark-purple);
    color: #ffffff;
    border-color: var(--dark-purple);
    box-shadow: 0 10px 25px rgba(19, 10, 68, 0.25);
}

.package-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.badge-save {
    background-color: #ffffff;
    color: var(--dark-purple);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    font-size: 11.5px;
}

.feature-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.3;
}

.feature-list li i {
    font-size: 12px;
    margin-top: 1px;
}

.package-card:not(.highlighted) .feature-list li.disabled {
    color: #9ca3af;
}

.package-card.highlighted .feature-list li.disabled {
    color: #6b7280;
}

.price-tag {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.price-tag span {
    font-size: 0.75rem;
    font-weight: 400;
}

/* ---------- Welcome Page Elements ---------- */
/* Success Icon Badge */
.success-icon-badge {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #eef4ff;
    border: 2px solid #bdcff5;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(1, 85, 233, 0.15);
}

/* Quick Next Steps Cards */
.next-step-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    background: #f8fafc;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
    transition: all 0.2s ease-in-out;
    height: 100%;
}

.next-step-card:hover {
    border-color: var(--primary-blue);
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(1, 85, 233, 0.08);
}

.next-step-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--light-bg-blue);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ---------- Security Banner ---------- */
.security-banner {
    background-color: #E4EBFE;
    border-radius: 12px;
}

.security-banner-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.security-large-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.text-primary-custom {
    color: var(--primary-blue) !important;
}

/* ---------- Buttons with #0155E9 Styling & Box Shadow ---------- */
.btn-primary {
    background-color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    box-shadow: -3px 4px 11.7px 0px #0155E966 !important;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #0046c7 !important;
    border-color: #0046c7 !important;
    color: #ffffff !important;
}

.btn-outline-primary {
    color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue) !important;
    color: #ffffff !important;
}

/* Package card buttons (Step 4) */
.btn-choose {
    background-color: #f7f5ff;
    color: #734bf9;
    font-weight: 600;
    font-size: 12px;
    border-radius: 8px;
    padding: 8px;
    border: none;
    width: 100%;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-choose:hover {
    background-color: #ede8ff;
    color: #734bf9;
}

.btn-purple {
    background-color: var(--purple-btn);
    color: #ffffff;
    font-weight: 600;
    font-size: 12px;
    border-radius: 8px;
    padding: 8px;
    border: none;
    width: 100%;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-purple:hover {
    background-color: #5f3adb;
    color: #ffffff;
}

/* ---------- Pagination Dots ---------- */
.dot {
    height: 8px;
    width: 8px;
    background-color: #cbd5e1;
    border-radius: 50%;
    display: inline-block;
}

.dot.active {
    background-color: var(--accent-blue);
    width: 16px;
    border-radius: 4px;
}

/* ---------- OTP Verification Modal (Step 1) ---------- */
.otp-modal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
}

.otp-input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 24px 0 16px;
}

.otp-box {
    width: 48px;
    height: 54px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    color: #111827;
    transition: all 0.2s ease;
}

.otp-box:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(1, 85, 233, 0.15);
    outline: none;
}

.otp-link-blue {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.otp-link-blue:hover {
    text-decoration: underline;
}

/* ---------- Module Selection (Step 1) ---------- */
.module-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.module-card {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px;
    background: #f8faff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
}

.module-card:hover {
    border-color: var(--primary-blue);
    background: #eef4ff;
}

.module-card input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-blue);
    margin-left: auto;
    cursor: pointer;
    flex-shrink: 0;
}

.module-icon {
    width: 25px;
    height: 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
    color: var(--primary-blue);
    background: #dbeafe;
}

.module-name {
    font-size: 12px;
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
}

.module-info-banner {
    background: #eef4ff;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---------- Dedicated Phone Verification Page ----------
   Reuses step1-contact.html as a blurred background layer and
   presents the same OTP card (modal styling) centered on top. */

/* Blur + lock the registration form / background content.
   The slight scale-up overflows the viewport by design, so page
   scrolling is disabled; the fixed backdrop scrolls internally. */
body.page-phone-verification {
    overflow: hidden;
}

body.page-phone-verification .page-wrapper {
    filter: blur(5px);
    -webkit-filter: blur(5px);
    transform: scale(1.02);
    /* hides blurred edge fringing */
    pointer-events: none;
    user-select: none;
}

/* Full-screen overlay that hosts the centered verification card
   (z-index matches Bootstrap's modal backdrop tier) */
.verification-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 12px;
    background: rgba(15, 23, 42, 0.25);
    overflow-y: auto;
}

/* Verification card — mirrors .otp-modal .modal-content look */
.verification-card {
    background: #ffffff;
    max-width: 440px;
    width: 100%;
    border-radius: 20px;
    border: none;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: verificationCardIn 0.25s ease-out;
}

@keyframes verificationCardIn {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ---------- Media Queries for Responsive Design ---------- */
@media (max-width: 991.98px) {
    .sidebar-panel {
        display: none !important;
    }

    .registration-card {
        border-radius: 16px;
    }

    .form-container-col {
        padding: 1.5rem !important;
    }

    .welcome-card {
        padding: 1.5rem !important;
    }
}

@media (max-width: 575.98px) {
    .step-label {
        font-size: 9px;
    }

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .stepper-wrapper::before {
        top: 15px;
    }

    .stepper-progress-line {
        top: 15px !important;
    }

    /* Steps 3 & 4 shift the blue progress line as well */
    .page-step3 .stepper-progress-line,
    .page-step4 .stepper-progress-line {
        top: 15px;
    }

    .action-buttons-group {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .action-buttons-group button {
        width: 100%;
    }

    .page-step3 .action-buttons-group a,
    .page-step4 .action-buttons-group a {
        width: 100%;
        text-align: center;
    }

    /* Welcome stacks its buttons in normal order */
    .page-welcome .action-buttons-group {
        flex-direction: column;
        gap: 10px;
    }

    .page-welcome .action-buttons-group a {
        width: 100%;
        text-align: center;
    }

    .otp-box {
        width: 40px;
        height: 48px;
        font-size: 1.1rem;
    }

    .otp-input-group {
        gap: 6px;
    }

    .welcome-card {
        border-radius: 16px;
    }

    .module-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .module-card {
        padding: 8px 6px;
    }

    .module-name {
        font-size: 11px;
    }
}

/* ---------- Required Field Validation ---------- */
.field-error {
    color: #dc3545;
    font-size: 11px;
    margin-top: 4px;
}

.file-upload-wrapper.has-error {
    border-color: #dc3545;
}

.service-card.has-error {
    border-color: #dc3545;
}

body.setup-active,
body.setup-active * {
    filter: none !important;
    backdrop-filter: none !important;
    opacity: 1 !important;
}

/* Hide the top stepper navigation while the welcome setup is running */
body.setup-active .stepper-wrapper {
    display: none !important;
}

/* ----------------------------------------------------
           2. Redesigned Workspace Setup Layout
        ---------------------------------------------------- */
#welcome-setup {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    text-align: left !important;
    box-shadow: none !important;
    animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

/* Hide conflicting default structural assets */
#welcome-setup .ws-confetti-icon,
#welcome-setup h4 img {
    display: none !important;
}

/* ----------------------------------------------------
           3. Modern SaaS Top Global Progress Bar
        ---------------------------------------------------- */
.ws-progress-track {
    width: 100%;
    height: 6px;
    background-color: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0;
}

.ws-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6 0%, #0d6efd 100%);
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Header + live progress metadata */
.ws-header-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ffffff;
    background: linear-gradient(135deg, #0155E9 0%, #3c7afe 100%);
    box-shadow: 0 6px 16px rgba(1, 85, 233, 0.25);
    animation: ws-rotate-spin 2.4s linear infinite;
}

.ws-header-text {
    min-width: 0;
}

.ws-header-title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.01em;
}

.ws-header-sub {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.4;
}

.ws-progress-meta {
    font-size: 12px;
}

.ws-progress-status {
    color: #475569;
    font-weight: 500;
}

.ws-progress-percent {
    color: #0155e9;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------
           4. Premium Setup Timeline Cards
        ---------------------------------------------------- */
.ws-timeline-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: var(--ws-card-pad, 24px 28px) !important;
    width: 100% !important;
    margin-bottom: 24px !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02) !important;
}

.ws-col-text {
    min-width: 0;
}

.ws-step-row {
    display: flex;
    align-items: center;
    position: relative;
    padding-bottom: 24px;
    transition: all 0.3s ease;
}

.ws-step-row:last-child {
    padding-bottom: 0;
}

.ws-col-indicator {
    display: flex;
    align-items: center;
    margin-right: 20px;
    position: relative;
    flex-shrink: 0;
}

/* Refined Step Indicators */
.ws-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    color: #94a3b8;
    transition: all 0.3s ease;
}

/* Connector removed: steps are linked purely by the indicator rhythm */

/* State Styles */
.ws-step-row.pending {
    opacity: 0.45;
}

.ws-step-row.pending .ws-step-title {
    color: #94a3b8;
}

.ws-step-row.active {
    opacity: 1;
}

.ws-step-row.active .ws-step-title {
    color: #1e293b;
    font-weight: 600;
}

.ws-step-row.active .ws-indicator {
    border-color: #0d6efd;
    background: #eff6ff;
    color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
}

.ws-step-row.completed {
    opacity: 1;
}

.ws-step-row.completed .ws-step-title {
    color: #334155;
    font-weight: 500;
}

.ws-step-row.completed .ws-indicator {
    border-color: #0d6efd;
    background: #0d6efd;
    color: #ffffff;
}

/* Step Descriptions */
.ws-step-desc {
    font-size: 12.5px;
    color: #64748b;
    margin-top: 2px;
}

.ws-step-row.active .ws-step-desc {
    color: #475569;
}

/* Pulsing Status Dot Indicators */
.ws-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e2e8f0;
    margin-left: auto;
    align-self: center;
    transition: all 0.3s ease;
}

.ws-step-row.active .ws-status-dot {
    background: #0d6efd;
    animation: ws-pulse-dot 1.5s infinite ease-in-out;
}

.ws-step-row.completed .ws-status-dot {
    background: #0d6efd;
}

@keyframes ws-pulse-dot {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.5);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(13, 110, 253, 0);
    }

    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

/* Custom SVG Spinners */
.ws-custom-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #0d6efd;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: ws-rotate-spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes ws-rotate-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ----------------------------------------------------
           5. Clean Alert Notice Banner
        ---------------------------------------------------- */
.ws-notice-banner {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    box-shadow: none !important;
}

.ws-notice-icon {
    color: #64748b !important;
    font-size: 20px !important;
    margin-right: 14px !important;
    display: flex !important;
    align-items: center !important;
}

.ws-notice-text {
    text-align: left !important;
    line-height: 1.4;
}

.ws-notice-line1 {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
}

.ws-notice-line2 {
    font-size: 12px !important;
    color: #64748b !important;
}

/* ----------------------------------------------------
           6. Workspace Setup — Responsive & Motion
        ---------------------------------------------------- */
@media (max-width: 767.98px) {
    :root {
        --ws-card-pad: 20px 18px;
    }

    .ws-header-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
        border-radius: 12px;
    }

    .ws-header-title {
        font-size: 15px;
    }
}

@media (max-width: 575.98px) {
    #welcome-setup {
        padding: 4px 0;
    }

    .ws-header {
        gap: 12px;
    }

    .ws-header-icon {
        width: 40px;
        height: 40px;
        font-size: 17px;
        border-radius: 11px;
    }

    .ws-header-title {
        font-size: 14px;
    }

    .ws-header-sub {
        font-size: 11.5px;
    }

    .ws-timeline-card {
        padding: var(--ws-card-pad, 18px 12px) !important;
    }

    .ws-step-row {
        padding-bottom: 18px;
    }

    .ws-step-row:last-child {
        padding-bottom: 0;
    }

    .ws-col-indicator {
        margin-right: 12px;
    }

    .ws-indicator {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .ws-step-title {
        font-size: 13px;
    }

    .ws-step-desc {
        font-size: 11.5px;
    }

    .ws-progress-status,
    .ws-progress-percent {
        font-size: 11.5px;
    }

    .ws-notice-banner {
        padding: 12px 14px !important;
    }

    .ws-notice-icon {
        font-size: 17px !important;
        margin-right: 10px !important;
    }

    .ws-notice-line1 {
        font-size: 12px !important;
    }

    .ws-notice-line2 {
        font-size: 11px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ws-header-icon {
        animation: none;
    }

    .ws-custom-spinner {
        animation: none;
        border-top-color: #0d6efd;
    }

    .ws-step-row.active .ws-status-dot {
        animation: none;
    }

    .ws-progress-bar {
        transition: none;
    }

    #welcome-setup {
        animation: none;
    }
}

/* Checklist adjustments */
.service-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease-in-out;
}

.service-card:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

.login-card {
    background: #FFF;
    border-radius: 20px;
    /* Reduced from 28px */
    box-shadow: 0 20px 50px rgba(8, 15, 40, 0.2);
    overflow: hidden;
    max-width: 420px;
    /* Reduced from 540px to make it sleeker */
    width: 100%;
    border: 1px solid rgba(1, 85, 233, 0.08);
    position: relative;
    margin: 1.5rem auto;
}

.login-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #64748b;
    /* background: var(--light-bg-blue); */
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.login-close-btn:hover,
.login-close-btn:focus-visible {
    background: #eef5ff;
    color: var(--primary-blue);
    outline: none;
}

.login-close-btn i {
    font-size: 1rem;
    line-height: 1;
}

.login-card-inner {
    position: relative;
    z-index: 1;
    padding: 1.5rem 1.75rem 1.25rem;
    /* Reduced padding to minimize vertical height */
}

.login-header {
    margin-bottom: 1.1rem;
    /* Reduced from 1.75rem */
}

.login-card .login-logo {
    width: 72px;
    /* Reduced from 104px */
    height: 72px;
    /* Reduced from 104px */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 0.75rem;
    /* Reduced bottom margin */
    background: linear-gradient(135deg, #edf4ff, #dfeaff);
    border-radius: 50%;
}

.login-card .login-logo img {
    width: 50px;
    /* Reduced from 90px */
    height: auto;
    display: block;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    /* Reduced padding */
    background: rgba(1, 85, 233, 0.08);
    color: var(--primary-blue, #0155E9);
    font-size: 0.68rem;
    /* Reduced font size */
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 0.65rem;
    /* Reduced from 0.9rem */
}

.login-header h4 {
    font-size: 1.5rem;
    /* Reduced from clamp(1.9rem, ...) */
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.25rem;
    letter-spacing: -0.03em;
}

.login-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.88rem;
    /* Reduced from 0.96rem */
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    /* Reduced from 1.1rem */
}

.form-floating-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    /* Reduced from 0.55rem */
}

.form-floating-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #1f2937;
    margin-left: 0.1rem;
}

.login-form .input-group {
    border-radius: 10px;
    /* Reduced from 14px */
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 4px 10px rgba(148, 163, 184, 0.05);
}

.login-form .input-group:focus-within {
    border-color: rgba(1, 85, 233, 0.65);
    box-shadow: 0 0 0 3px rgba(1, 85, 233, 0.1);
}

.login-form .input-group-text {
    background: #f8fbff;
    border: none;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    color: #64748b;
}

.login-form .form-control {
    border: none;
    background: #ffffff;
    padding: 0.65rem 0.85rem;
    /* Reduced from 0.9rem 1rem to flatten inputs */
    font-size: 0.9rem;
    /* Reduced from 0.95rem */
    color: #111827;
}

.login-form .form-control::placeholder {
    color: #94a3b8;
}

.password-input-group {
    display: flex;
    align-items: stretch;
}

.password-toggle-btn {
    min-width: 44px;
    /* Reduced from 50px */
    border: none;
    border-left: 1px solid rgba(148, 163, 184, 0.2);
    background: #f8fbff;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.8rem;
    transition: all 0.2s ease;
}

.password-toggle-btn:hover,
.password-toggle-btn:focus {
    background: #eef5ff;
    color: var(--primary-blue, #0155E9);
    box-shadow: none;
}

.password-toggle-btn i {
    font-size: 0.95rem;
    line-height: 1;
}

.form-help-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.05rem;
    font-size: 0.82rem;
    /* Slighly smaller */
}

.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #475569;
    cursor: pointer;
}

.remember-me input {
    accent-color: var(--primary-blue, #0155E9);
    width: 14px;
    /* Adjusted size for accessibility */
    height: 14px;
    margin: 0;
}

.text-link,
.signup-text a {
    color: var(--primary-blue, #0155E9);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.text-link:hover,
.signup-text a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.login-btn {
    border: none;
    background: linear-gradient(135deg, #0155E9 0%, #3c7afe 100%);
    color: #ffffff;
    border-radius: 10px;
    /* Reduced from 14px */
    padding: 0.7rem 1rem;
    /* Reduced from 0.9rem to reduce height */
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 20px rgba(1, 85, 233, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(1, 85, 233, 0.22);
    color: #ffffff;
}

.signup-text {
    text-align: center;
    margin: 0.15rem 0 0;
    color: #475569;
    font-size: 0.85rem;
    /* Reduced from 0.9rem */
}

@media (max-width: 575.98px) {
    .login-card {
        margin: 1rem auto;
    }

    .login-card-inner {
        padding: 1.25rem 1.25rem 1rem;
    }

    .login-header h4 {
        font-size: 1.35rem;
    }
}