:root {
    --ezi-primary: #2f5bff;
    --ezi-primary-dark: #1f3fb6;
    --ezi-side-grad-1: #1f47ff;
    --ezi-side-grad-2: #0a1f8a;
    --ezi-text: #1f2742;
    --ezi-muted: #6b7390;
    --ezi-border: #e3e7f3;
    --ezi-bg-light: #f5f7ff;

    /* Form gutter tokens */
    --ezi-form-gutter-x: 1rem;
    --ezi-form-gutter-y: 0.875rem;
}

body {
    background: #eef1f9;
}

/* ============== SHELL ============== */
.ezi-registration-shell {
    min-height: 100vh;
    width: 100%;
    background: #eef1f9;
    padding: 0;
}

/* ============== GRID ============== */
.ezi-registration-grid {
    display: grid;
    grid-template-columns: minmax(240px, 22%) 1fr;
    min-height: 100vh;
}

/* ============== SIDEBAR ============== */
.ezi-side {
    position: relative;
    background: linear-gradient(160deg, var(--ezi-side-grad-1) 0%, var(--ezi-side-grad-2) 100%);
    color: #fff;
    overflow: hidden;
    padding: 40px 36px;
    min-width: 0;
}
.ezi-side::before,
.ezi-side::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}
.ezi-side::before {
    width: 380px;
    height: 380px;
    top: -120px;
    right: -160px;
}
.ezi-side::after {
    width: 240px;
    height: 240px;
    bottom: -80px;
    left: -100px;
}
.ezi-side-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.ezi-side-logo {
    margin-bottom: 28px;
}
.ezi-side-logo img {
    max-width: 200px;
}
.ezi-step-pill {
    display: inline-block;
    background: rgba(10, 18, 60, 0.55);
    border: 1px solid rgba(255,255,255,0.08);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    padding: 8px 18px;
    border-radius: 999px;
    margin-bottom: 18px;
    width: fit-content;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.ezi-side-title {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.2;
}
.ezi-side-title .wave {
    display: inline-block;
}
.ezi-side-subtitle {
    color: rgba(255,255,255,0.78);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 28px;
}
.ezi-side-illustration {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0 24px;
}
.ezi-side-illustration img {
    max-width: 100%;
    width: 100%;
    max-height: 480px;
    object-fit: contain;
}
.ezi-side-secure {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: auto;
}
.ezi-side-secure-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}
.ezi-side-secure-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12.5px;
    line-height: 1.4;
}
.ezi-side-secure-text strong {
    color: #fff;
    font-weight: 600;
}
.ezi-side-secure-text span {
    color: rgba(255,255,255,0.7);
}

/* Need Help card */
.ezi-side-help {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
}
.ezi-side-help-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    font-size: 16px;
}
.ezi-side-help strong {
    color: #fff;
    font-size: 13.5px;
}
.ezi-side-help > span {
    color: rgba(255,255,255,0.7);
    font-size: 11.5px;
    line-height: 1.45;
}
.ezi-side-help-btn {
    margin-top: 8px;
    background: #ffffff;
    color: var(--ezi-primary) !important;
    border: 1px solid #ffffff;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.18s ease;
}
.ezi-side-help-btn:hover {
    background: #f1f4ff;
}

/* ============== MAIN — FIXED ============== */
.ezi-main {
    background: #ffffff;
    padding: 40px 32px;
    overflow-y: auto;
    overflow-x: hidden;
    min-width: 0;
}

/* KEY FIX — form fills full available width, no centering gap */
.ezi-main-inner {
    max-width: 100%;
    margin: 0;
    min-width: 0;
    width: 100%;
}

/* Form row gutter */
#registerForm .row {
    --bs-gutter-x: var(--ezi-form-gutter-x);
    --bs-gutter-y: var(--ezi-form-gutter-y);
}

/* ============== STEPPER ============== */
.ezi-stepper {
    display: flex;
    align-items: center;
    margin-bottom: 36px;
    gap: 8px;
}
.ezi-stepper-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.ezi-stepper-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #eef1f9;
    color: #9aa3bf;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: all 0.25s ease;
}
.ezi-stepper-item.is-active .ezi-stepper-circle {
    background: var(--ezi-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(47,91,255,0.35);
}
.ezi-stepper-item.is-complete .ezi-stepper-circle {
    background: #d6e0ff;
    color: var(--ezi-primary);
}
.ezi-stepper-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.ezi-stepper-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ezi-text);
}
.ezi-stepper-item:not(.is-active):not(.is-complete) .ezi-stepper-title {
    color: #9aa3bf;
}
.ezi-stepper-sub {
    font-size: 11.5px;
    color: var(--ezi-muted);
    margin-top: 2px;
}
.ezi-stepper-line {
    flex: 1;
    height: 2px;
    background: #e3e7f3;
    margin: 0 6px;
    border-radius: 2px;
    min-width: 40px;
    position: relative;
    overflow: hidden;
}
.ezi-stepper-line::before {
    content: '';
    position: absolute;
    inset: 0;
    width: var(--fill, 0%);
    background: var(--ezi-primary);
    transition: width 0.35s ease;
}

/* ============== SECTION HEADS ============== */
.ezi-section {
    margin-bottom: 32px;
}
.ezi-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.ezi-section-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eef2ff;
    color: var(--ezi-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}
.ezi-section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--ezi-text);
    margin: 0;
    flex-shrink: 0;
}
.ezi-section-divider {
    flex: 1;
    height: 1px;
    background: var(--ezi-border);
}

/* ============== FORM FIELDS ============== */
.ezi-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ezi-text);
    margin-bottom: 6px;
}
.ezi-label-optional {
    color: var(--ezi-muted);
    font-weight: 500;
}
.ezi-input-wrap {
    position: relative;
}
.ezi-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--ezi-border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--ezi-text);
    background-color: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    outline: none;
}
.ezi-input::placeholder {
    color: #b3b9cf;
}
.ezi-input:focus {
    border-color: var(--ezi-primary);
    box-shadow: 0 0 0 3px rgba(47,91,255,0.12);
}
.ezi-input-wrap .ezi-input {
    padding-left: 42px;
}
.ezi-input-wrap .ezi-input.ezi-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7390' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}
.ezi-input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #8089a3;
    font-size: 17px;
    pointer-events: none;
    display: flex;
    align-items: center;
}
.ezi-input-icon-end {
    left: auto;
    right: 14px;
}
.ezi-input-wrap:has(.ezi-input-icon-end:not(.ezi-select)) .ezi-input {
    padding-left: 14px;
    padding-right: 42px;
}

/* ============== intl-tel-input ============== */
.iti {
    width: 100%;
}
.iti input {
    width: 100% !important;
    height: 46px;
    padding: 0 14px 0 86px !important;
    border: 1px solid var(--ezi-border) !important;
    border-radius: 10px !important;
    font-size: 14px;
}
.iti input:focus {
    border-color: var(--ezi-primary) !important;
    box-shadow: 0 0 0 3px rgba(47,91,255,0.12) !important;
}

/* ============== Choices.js ============== */
.choices {
    margin: 0;
}
.choices .choices__inner {
    background-color: #fff;
    color: var(--ezi-text);
    min-height: 46px;
    height: 46px;
    padding: 11px 14px 5px 42px;
    font-size: 14px;
    border: 1px solid var(--ezi-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
}
.choices.is-focused .choices__inner,
.choices.is-open .choices__inner {
    border-color: var(--ezi-primary);
    box-shadow: 0 0 0 3px rgba(47,91,255,0.12);
}
.choices__list--single {
    padding: 0;
}
.choices[data-type*="select-one"]::after {
    border-color: #6b7390 transparent transparent;
    right: 14px;
}
.choices__list--dropdown {
    background-color: #fff;
    border: 1px solid var(--ezi-border);
    border-radius: 10px;
    margin-top: 4px;
}
.choices__list--dropdown .choices__item {
    background-color: #fff;
    color: var(--ezi-text);
    font-size: 14px;
}
.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list--dropdown .choices__item--selectable:hover {
    background-color: var(--ezi-primary) !important;
    color: #fff !important;
}

/* ============== FILE UPLOAD ============== */
.ezi-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1.5px dashed #c8d0e8;
    background: #f8faff;
    border-radius: 10px;
    padding: 12px 14px;
    height: 46px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
}
.ezi-upload:hover {
    border-color: var(--ezi-primary);
    background: #eef2ff;
}
.ezi-upload-icon {
    width: 28px;
    height: 28px;
    color: var(--ezi-primary);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ezi-upload-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    font-size: 12.5px;
}
.ezi-upload-text strong {
    color: var(--ezi-text);
    font-weight: 600;
}
.ezi-upload-text span {
    color: var(--ezi-muted);
    font-size: 11.5px;
}

/* ============== ACTIONS ============== */
.ezi-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--ezi-border);
}
.ezi-btn-cancel {
    background: #fff;
    color: var(--ezi-text);
    border: 1px solid var(--ezi-border);
    border-radius: 10px;
    padding: 10px 28px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.18s ease;
}
.ezi-btn-cancel:hover {
    background: #f5f7ff;
    border-color: #c8d0e8;
    color: var(--ezi-text);
}
.ezi-btn-primary {
    background: var(--ezi-primary);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 6px 18px rgba(47,91,255,0.28);
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ezi-btn-primary:hover {
    background: var(--ezi-primary-dark);
    box-shadow: 0 8px 22px rgba(47,91,255,0.35);
    transform: translateY(-1px);
}

/* ============== TOAST ============== */
.ezi-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1f2742;
    color: #fff;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 99999;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}
.ezi-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

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

/* Large zoom / smaller laptops */
@media (max-width: 1199.98px) {
    .ezi-registration-grid {
        grid-template-columns: minmax(220px, 22%) 1fr;
    }
    .ezi-main {
        padding: 36px 28px;
    }
    :root {
        --ezi-form-gutter-x: 0.875rem;
        --ezi-form-gutter-y: 0.875rem;
    }
}

/* Medium zoom — prevents content going into sidebar */
@media (max-width: 1024px) {
    .ezi-registration-grid {
        grid-template-columns: minmax(200px, 22%) 1fr;
    }
    .ezi-side {
        padding: 32px 24px;
    }
    .ezi-side-logo img {
        max-width: 160px;
    }
    .ezi-side-title {
        font-size: 24px;
    }
    .ezi-side-subtitle {
        font-size: 13px;
    }
    .ezi-main {
        padding: 32px 24px;
    }
}

/* Tablet — stack sidebar above form */
@media (max-width: 991.98px) {
    .ezi-registration-grid {
        grid-template-columns: 1fr;
    }
    .ezi-side {
        padding: 28px 24px;
    }
    .ezi-side-logo img {
        max-width: 180px;
    }
    .ezi-side-title {
        font-size: 26px;
    }
    .ezi-side-illustration {
        max-height: 220px;
    }
    .ezi-side-illustration img {
        max-height: 200px;
    }
    .ezi-main {
        padding: 28px 20px;
    }
}

/* Mobile landscape */
@media (max-width: 767.98px) {
    .ezi-main {
        padding: 24px 16px;
    }
    .ezi-side {
        padding: 24px 20px;
    }
    :root {
        --ezi-form-gutter-x: 0.75rem;
        --ezi-form-gutter-y: 0.75rem;
    }
}

/* Mobile portrait */
@media (max-width: 575.98px) {
    .ezi-stepper-meta {
        display: none;
    }
    .ezi-stepper-line {
        min-width: 24px;
    }
    .ezi-actions {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }
    .ezi-btn-cancel,
    .ezi-btn-primary {
        width: 100%;
        justify-content: center;
    }
    .ezi-side-title {
        font-size: 22px;
    }
    .ezi-side-illustration {
        display: none;
    }
    :root {
        --ezi-form-gutter-x: 0;
        --ezi-form-gutter-y: 0.75rem;
    }
}


/* ============================================================
   - CHOICES.JS ICONS (JS Class Toggle)
   ============================================================ */

.ezi-input-wrap {
    position: relative;
}

/* Normal state - icon visible */
.ezi-input-wrap .ezi-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    pointer-events: none;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* When dropdown is OPEN - hide the icon */
.ezi-input-wrap.dropdown-open .ezi-input-icon {
    opacity: 0 !important;
    visibility: hidden !important;
}

.ezi-input-wrap .ezi-input-icon i {
    font-size: 18px;
    color: #8089a3;
}

/* Choices.js inner styling */
.ezi-input-wrap .choices {
    margin-bottom: 0;
    width: 100%;
}

.ezi-input-wrap .choices__inner {
    padding-left: 42px !important;
    padding-right: 40px !important;
    min-height: 46px;
    border-radius: 10px;
    background-color: #fff;
    border: 1px solid var(--ezi-border);
}

/* Dropdown arrow */
.ezi-input-wrap .choices[data-type*="select-one"]::after {
    right: 18px !important;
    top: 50% !important;
    transform: translateY(-50%);
}

/* Dropdown menu styling */
.choices__list--dropdown {
    border-radius: 10px;
    border: 1px solid var(--ezi-border);
    margin-top: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background-color: #fff !important;
    z-index: 1000 !important;
}

/* Focus state */
.ezi-input-wrap .choices.is-focused .choices__inner,
.ezi-input-wrap .choices.is-open .choices__inner {
    border-color: var(--ezi-primary);
    box-shadow: 0 0 0 3px rgba(47, 91, 255, 0.12);
}

/* Remove background image conflict */
.ezi-input-wrap .ezi-select {
    background-image: none !important;
}

/* Regular inputs */
.ezi-input-wrap .ezi-input:not(.ezi-select) {
    padding-left: 42px;
}

/* Email field with right icon */
.ezi-input-wrap .ezi-input-icon-end {
    left: auto;
    right: 14px;
}

.ezi-input-wrap:has(.ezi-input-icon-end) .ezi-input {
    padding-left: 14px;
    padding-right: 42px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .ezi-input-wrap .choices__inner {
        padding-left: 38px !important;
    }
    
    .ezi-input-wrap .ezi-input-icon i {
        font-size: 16px;
    }
}