/* =====================================================================
 * Consultant Sign Up — pixel-perfect to Figma node 10791:214580
 * Prefix: .cs-
 * ===================================================================== */

.cs-page {
    height: 100vh;
    display: flex;
    align-items: stretch;
    background: #ffffff;
    font-family: "Inter", sans-serif;
    color: #2b2b2b;
    overflow: hidden;
}

/* ----------------------- Left panel (hero) ----------------------- */
.cs-left {
    position: relative;
    flex: 0 0 673px;
    width: 673px;
    height: 100vh;
    overflow: hidden;
    isolation: isolate;
}
.cs-left::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/consultant-signup-bg.jpg");
    background-size: cover;
    background-position: center;
    z-index: -2;
}
.cs-left::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(220, 20, 60, 0.5);
    z-index: -1;
}
.cs-left__inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 52px 40px;
    color: #ffffff;
}
.cs-left__logo {
    width: 121px;
    height: 30px;
    display: block;
}
.cs-left__copy {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 594px;
}
.cs-left__title {
    font-family: "Inter", sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.64px;
    color: #ffffff;
    margin: 0;
}
.cs-left__subtitle {
    font-family: "Inter", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.54;
    color: #ffffff;
    margin: 0;
}

/* ----------------------- Right panel ----------------------- */
.cs-right {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 96px 40px 64px;
    /* Custom thin scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #d0d5dd transparent;
}
.cs-right::-webkit-scrollbar {
    width: 8px;
}
.cs-right::-webkit-scrollbar-track {
    background: transparent;
}
.cs-right::-webkit-scrollbar-thumb {
    background-color: #d0d5dd;
    border-radius: 8px;
}
.cs-right::-webkit-scrollbar-thumb:hover {
    background-color: #98a2b3;
}
.cs-website {
    position: absolute;
    top: 76px;
    right: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #141414;
    line-height: 1.45;
}
.cs-website i {
    font-size: 20px;
    color: #141414;
}
.cs-website:hover {
    color: #2b2b2b;
}

/* ----------------------- Card ----------------------- */
.cs-card {
    width: 100%;
    max-width: 785px;
    background: #ffffff;
    border-radius: 24px;
    padding: 32px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.06),
        0 5px 22px 0 rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    margin-top: 32px;
}
.cs-card__inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ----------------------- Card header ----------------------- */
.cs-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cs-head__title {
    font-family: "Inter", sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.48px;
    color: #2b2b2b;
    margin: 0;
}
.cs-head__subtitle {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    color: #757575;
    margin: 0;
}

/* ----------------------- Form ----------------------- */
.cs-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin: 0;
}
.cs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.cs-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    min-width: 0;
}
.cs-label {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    color: #101928;
    margin: 0;
}
.cs-required {
    color: #dc143c;
    margin-left: 2px;
    font-weight: 500;
}

/* Input wrapper with icons */
.cs-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 0 16px;
    height: 56px;
    box-sizing: border-box;
    transition:
        border-color 0.12s ease,
        box-shadow 0.12s ease;
}
.cs-input-wrap:focus-within {
    border-color: #2c2c2c;
    box-shadow: 0 0 0 3px rgba(44, 44, 44, 0.08);
}
.cs-input-wrap__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #98a2b3;
    font-size: 20px;
    flex-shrink: 0;
}
.cs-input-wrap__icon--right {
    color: #98a2b3;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
}
.cs-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    color: #101928;
    padding: 0;
    height: 100%;
}
.cs-input::placeholder {
    color: #98a2b3;
    opacity: 1;
}
/* Suffix (e.g. % for Success Rate) */
.cs-input-wrap__suffix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #98a2b3;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
    pointer-events: none;
}
/* Hide native number spinners */
.cs-input[type="number"]::-webkit-outer-spin-button,
.cs-input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.cs-input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ----------------------- Multi-select (Specialization) ----------------------- */
.cs-ms {
    position: relative;
    width: 100%;
}
.cs-ms__control {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 56px;
    padding: 8px 16px;
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    cursor: pointer;
    box-sizing: border-box;
    transition:
        border-color 0.12s ease,
        box-shadow 0.12s ease;
}
.cs-ms.is-open .cs-ms__control,
.cs-ms__control:focus,
.cs-ms__control:focus-visible {
    border-color: #2c2c2c;
    box-shadow: 0 0 0 3px rgba(44, 44, 44, 0.08);
    outline: none;
}
.cs-ms__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 0 1 auto;
    min-width: 0;
}
.cs-ms__placeholder {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    color: #98a2b3;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}
.cs-ms__caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #98a2b3;
    font-size: 20px;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}
.cs-ms.is-open .cs-ms__caret {
    transform: rotate(180deg);
}

/* Chip */
.cs-ms__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f7ff;
    color: #0063ad;
    border-radius: 6px;
    padding: 4px 8px;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    max-width: 100%;
}
.cs-ms__chip-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cs-ms__chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: transparent;
    border: 0;
    border-radius: 4px;
    color: #0063ad;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    line-height: 1;
}
.cs-ms__chip-remove:hover {
    background: rgba(0, 99, 173, 0.12);
}

/* Dropdown menu */
.cs-ms__menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 50;
    max-height: 240px;
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.04),
        0 8px 22px rgba(0, 0, 0, 0.08);
}
.cs-ms__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    color: #101928;
    user-select: none;
}
.cs-ms__option:hover {
    background: #f9fafb;
}
.cs-ms__option.is-selected {
    background: #f0f7ff;
    color: #0063ad;
    font-weight: 500;
}
.cs-ms__option-check {
    font-size: 16px;
    color: #0063ad;
    opacity: 0;
}
.cs-ms__option.is-selected .cs-ms__option-check {
    opacity: 1;
}

/* ----------------------- Continue button ----------------------- */
.cs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #2c2c2c;
    color: #ffffff;
    border: 0;
    border-radius: 6px;
    padding: 16px;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    cursor: pointer;
    transition: background-color 0.12s ease;
    /* Figma: Continue button is a sibling of the fields container under a parent with gap 32px.
       Form gap is 16px, so we add an extra 16px above the button to total 32px. */
    margin-top: 16px;
}
.cs-btn:hover {
    background: #1f1f1f;
    color: #ffffff;
}
.cs-btn i {
    font-size: 24px;
    line-height: 1;
}

/* ----------------------- Footer link ----------------------- */
.cs-footer {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.45;
}
.cs-footer__text {
    color: #645d5d;
    font-weight: 400;
    margin: 0;
}
.cs-footer__link {
    color: #dc143c;
    font-weight: 600;
    text-decoration: none;
}
.cs-footer__link:hover {
    color: #b8112f;
    text-decoration: underline;
}

/* ----------------------- Errors ----------------------- */
.cs-error {
    color: #dc143c;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    margin: 2px 0 0;
}
.cs-alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-family: "Inter", sans-serif;
    margin: 0;
}
.cs-alert--success {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #d1fadf;
}
.cs-alert--danger {
    background: #fef3f2;
    color: #b42318;
    border: 1px solid #fee4e2;
}

/* ----------------------- Responsive ----------------------- */
@media (max-width: 1023px) {
    .cs-page {
        height: auto;
        overflow: visible;
    }
    .cs-left {
        display: none;
    }
    .cs-right {
        height: auto;
        overflow: visible;
        padding: 96px 24px 48px;
    }
    .cs-website {
        top: 24px;
        right: 24px;
    }
}
@media (max-width: 575px) {
    .cs-card {
        padding: 24px;
        border-radius: 16px;
    }
    .cs-row {
        grid-template-columns: 1fr;
    }
    .cs-right {
        padding: 72px 16px 40px;
    }
}
