/* registration.css - styles for the New User Registration flow.
   Kept separate from auth.css because registration pages are used rarely,
   whereas login/MFA/password pages are day-to-day. Loaded only on
   registration views via @section Styles. */

/* ===== Shared page shell (single source of truth) =====
   Common layout resets for every auth/registration page.
   Change these ONCE here instead of per-section. */
html {
	min-height: 100%;
}

body {
	min-height: 100vh;
	/* fixed so the gradient always fills the viewport, even when the content scrolls */
	background: linear-gradient(180deg, #f4f7fb 0%, #e9eef6 100%) fixed;
}

.main-content {
	background-color: transparent !important;
	box-shadow: none !important;
	border: none !important;
}

#toggleWidthBtn {
	display: none !important;
}

/* ===== RegistrationStart.cshtml ===== */

    .reg-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 56px 24px 72px;
    }

    .reg-card {
        width: 100%;
        max-width: 460px;
        background: #ffffff;
        border: 1px solid #e5e9f0;
        border-radius: 18px;
        box-shadow: 0 12px 34px rgba(15, 30, 70, 0.10);
        padding: 44px 42px;
    }

    .reg-title {
        text-align: center;
        font-size: 1.35rem;
        font-weight: 700;
        color: #16244a;
        margin: 0 0 6px;
    }

    .reg-subtitle {
        text-align: center;
        color: #6b7280;
        font-size: 0.92rem;
        margin-bottom: 28px;
        line-height: 1.5;
    }

    .reg-card .form-label {
        display: block;
        font-weight: 600;
        color: #374151;
        font-size: 0.85rem;
        margin-bottom: 6px;
        text-align: left;
    }

    .reg-card .form-label.required::after {
        content: " *";
        color: #dc3545;
        font-weight: 700;
    }

    .reg-card .password-hint {
        display: block;
        color: #6b7280;
        font-size: 0.78rem;
        margin-bottom: 6px;
        line-height: 1.4;
    }

    .reg-card .form-control {
        padding: 11px 14px;
        border: 1px solid #d1d7e0;
        border-radius: 10px;
        font-size: 0.95rem;
    }

    .reg-card .form-control:focus {
        border-color: #2f6fed;
        box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
    }

    .reg-card .show-pass {
        display: flex;
        align-items: center;
        gap: 6px;
        margin: 8px 0 0;
        font-weight: 400;
        font-size: 0.82rem;
        color: #4b5563;
        cursor: pointer;
        white-space: nowrap;
    }

    /* Ensure the checkbox is visible (global/theme CSS can hide native checkboxes) */
    .reg-card .show-pass input[type="checkbox"] {
        appearance: auto;
        -webkit-appearance: auto;
        opacity: 1;
        position: static;
        width: 1rem;
        height: 1rem;
        margin: 0;
        pointer-events: auto;
        cursor: pointer;
    }

    .reg-card .field-block {
        margin-bottom: 18px;
    }

    .reg-card .btn-reg {
        width: 100%;
        margin-top: 8px;
        padding: 12px;
        border-radius: 10px;
        font-weight: 600;
        font-size: 0.98rem;
        background: #2f6fed;
        border: none;
        color: #fff;
        transition: background 0.15s ease-in-out, transform 0.05s ease;
    }

    .reg-card .btn-reg:hover {
        background: #2159c7;
    }

    .reg-card .btn-reg:active {
        transform: translateY(1px);
    }

    .reg-card .reg-sent {
        text-align: center;
    }

    .reg-card .reg-sent .reg-sent-icon {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        background: rgba(34, 197, 94, 0.12);
        color: #16a34a;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.7rem;
        margin: 0 auto 18px;
    }

    .reg-card .reg-sent h2 {
        font-size: 1.2rem;
        font-weight: 700;
        color: #16244a;
        margin: 0 0 8px;
    }

    .reg-card .reg-sent p {
        color: #4b5563;
        font-size: 0.92rem;
        margin: 0 0 6px;
    }

    .reg-card .reg-sent .reg-email {
        color: #2f6fed;
        font-weight: 600;
        word-break: break-all;
    }

    .reg-links {
        text-align: center;
        margin-top: 20px;
        margin-bottom: 0;
    }

    .reg-links a {
        color: #2f6fed;
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 600;
    }

    .reg-links a:hover {
        text-decoration: underline;
    }

/* ===== SpecialistProviders.cshtml ===== */

    .sp-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 56px 24px 72px;
    }

    .sp-card {
        width: 100%;
        max-width: 760px;
        background: #ffffff;
        border: 1px solid #e5e9f0;
        border-radius: 18px;
        box-shadow: 0 12px 34px rgba(15, 30, 70, 0.10);
        padding: 44px 42px;
    }

    .sp-title {
        text-align: center;
        font-size: 1.5rem;
        font-weight: 700;
        color: #16244a;
        margin-bottom: 6px;
    }

    .sp-subtitle {
        text-align: center;
        color: #6b7280;
        font-size: 0.95rem;
        margin-bottom: 32px;
        line-height: 1.5;
    }

    .sp-options {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }

    .sp-option {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        border: 1px solid #e5e9f0;
        border-radius: 14px;
        padding: 30px 26px;
        background: #fbfcfe;
        transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
    }

    .sp-option:hover {
        border-color: #2f6fed;
        box-shadow: 0 10px 24px rgba(47, 111, 237, 0.12);
    }

    .sp-option .sp-icon {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: rgba(47, 111, 237, 0.1);
        color: #2f6fed;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        margin-bottom: 18px;
    }

    .sp-option h3 {
        font-size: 1.1rem;
        font-weight: 700;
        color: #16244a;
        margin: 0 0 8px;
    }

    .sp-option p {
        color: #6b7280;
        font-size: 0.88rem;
        line-height: 1.5;
        margin: 0 0 22px;
        flex: 1 1 auto;
    }

    .sp-option .btn-sp {
        display: inline-block;
        width: 100%;
        text-align: center;
        padding: 11px 20px;
        border-radius: 10px;
        font-weight: 600;
        font-size: 0.95rem;
        background: #2f6fed;
        color: #fff;
        text-decoration: none;
        transition: background 0.15s ease, transform 0.05s ease;
    }

    .sp-option .btn-sp:hover {
        background: #2159c7;
        color: #fff;
    }

    .sp-option .btn-sp:active {
        transform: translateY(1px);
    }

    .sp-links {
        text-align: center;
        margin-top: 28px;
        margin-bottom: 0;
    }

    .sp-links a {
        color: #2f6fed;
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 600;
    }

    .sp-links a:hover {
        text-decoration: underline;
    }

    @@media (max-width: 620px) {
        .sp-options {
            grid-template-columns: 1fr;
        }
    }

/* ===== Registration.cshtml multi-step wizard (stages 3-8) ===== */
.reg-wizard-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 20px 72px;
}

.reg-wizard-card {
    width: 100%;
    max-width: 900px;
    background: #ffffff;
    border: 1px solid #e5e9f0;
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(15, 30, 70, 0.10);
    padding: 40px 44px;
}

.reg-wizard-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.3rem);
    font-weight: 800;
    letter-spacing: 0.2px;
    line-height: 1.25;
    padding-bottom: 4px;
    margin-bottom: 10px;
    color: #2f6fed;
    background: linear-gradient(135deg, #2f6fed 0%, #6a5cff 60%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.reg-wizard-step-label {
    text-align: center;
    color: #16244a;
    font-size: 1.28rem;
    font-weight: 700;
    margin-bottom: 26px;
}

    .reg-wizard-step-label span {
        font-weight: 500;
        color: #4b5563;
    }

/* Step bar */
.reg-steps {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0 0 10px;
}

.reg-step {
    flex: 1 1 0;
    min-width: 118px;
    text-align: center;
    border: 1px solid #e5e9f0;
    border-radius: 12px;
    background: #ffffff;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

    .reg-step a,
    .reg-step > span {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 11px 10px;
        font-weight: 600;
        font-size: 0.86rem;
        color: #8a93a5;
        text-decoration: none;
    }

.reg-step-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #eef0f4;
    color: #8a93a5;
    font-size: 0.78rem;
    font-weight: 700;
}

/* Active step = blue→purple gradient, completed = solid blue (clickable), todo = muted */
.reg-step-active {
    background: linear-gradient(135deg, #2f6fed 0%, #6a5cff 100%);
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(47, 111, 237, 0.28);
}

    .reg-step-active > span {
        color: #ffffff;
    }

    .reg-step-active .reg-step-index {
        background: rgba(255, 255, 255, 0.25);
        color: #ffffff;
    }

.reg-step-done {
    background: #eef3ff;
    border-color: #c7d7fb;
}

    .reg-step-done a {
        color: #2159c7;
    }

        .reg-step-done a .reg-step-index {
            background: #2f6fed;
            color: #ffffff;
        }

    .reg-step-done:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(47, 111, 237, 0.18);
    }

.reg-step-todo > span {
    cursor: default;
}

.reg-required-note {
    color: #dc3545;
    font-size: 0.88rem;
    font-weight: 700;
    margin: 8px 0 22px;
}

.reg-wizard-form {
    max-width: 600px;
    margin: 0 auto;
}

.reg-wizard-form .mb-3 {
    margin-bottom: 16px;
}

.reg-wizard-form label {
    display: block;
    font-weight: 600;
    color: #374151;
    font-size: 0.85rem;
    margin-bottom: 4px;
    text-align: left;
}

.reg-wizard-form .form-control {
    padding: 9px 12px;
    border: 1px solid #d1d7e0;
    border-radius: 8px;
    font-size: 0.92rem;
    width: 100%;
    max-width: none;
}

    .reg-wizard-form .form-control:focus {
        border-color: #2f6fed;
        box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
        outline: none;
    }

.reg-wizard-form .required-indicator,
.reg-wizard-form .error {
    color: #dc3545;
    font-weight: 700;
}

/* Inline field-level validation (red border + message under the field). */
.reg-wizard-form .input-validation-error,
.reg-wizard-form .form-control.input-validation-error {
    border-color: #dc3545;
    background-color: #fff6f6;
}

    .reg-wizard-form .input-validation-error:focus {
        border-color: #dc3545;
        box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
    }

.reg-wizard-form .field-validation-error {
    display: block;
    color: #dc3545;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 4px;
}

.reg-wizard-form .field-validation-valid {
    display: none;
}

.reg-wizard-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.btn-reg-primary,
.btn-reg-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

    .btn-reg-primary svg,
    .btn-reg-secondary svg {
        width: 18px;
        height: 18px;
        flex: 0 0 auto;
    }

    .btn-reg-primary i,
    .btn-reg-secondary i {
        font-size: 1rem;
        line-height: 1;
    }

.btn-reg-primary {
    background: linear-gradient(135deg, #2f6fed 0%, #6a5cff 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(47, 111, 237, 0.30);
}

    .btn-reg-primary,
    .btn-reg-primary:link,
    .btn-reg-primary:visited,
    .btn-reg-primary:hover,
    .btn-reg-primary:focus,
    .btn-reg-primary:active {
        color: #fff;
    }

        .btn-reg-primary i {
            color: #fff;
        }

    .btn-reg-primary:hover {
        background: linear-gradient(135deg, #2159c7 0%, #5a4ce0 100%);
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(47, 111, 237, 0.38);
    }

    .btn-reg-primary:active {
        transform: translateY(0);
    }

/* Final-stage submit button — green to signal completion. */
.btn-reg-submit {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.30);
}

    .btn-reg-submit:hover {
        background: linear-gradient(135deg, #128a3f 0%, #1eb04f 100%);
        box-shadow: 0 8px 20px rgba(22, 163, 74, 0.38);
    }

.btn-reg-secondary {
    background: #fff;
    color: #2f6fed;
    border: 1.5px solid #2f6fed;
}

    .btn-reg-secondary:hover {
        background: #eef3ff;
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(47, 111, 237, 0.15);
    }

    .btn-reg-secondary:active {
        transform: translateY(0);
    }

@@media (max-width: 620px) {
    .reg-step {
        flex: 1 1 100%;
    }
}

/* ===== Stage 3: Personal & Professional Details ===== */
.reg-name-row {
    display: grid;
    grid-template-columns: 120px 1fr 1fr;
    gap: 10px;
    align-items: stretch;
}

    .reg-name-row .form-control {
        max-width: none;
        height: 42px;
        min-height: 42px;
    }

.reg-title-select {
    width: 100%;
}

.reg-name-row select.reg-title-select {
    height: 42px;
    min-height: 42px;
    margin-top: 5px;
}

@@media (max-width: 460px) {
    .reg-name-row {
        grid-template-columns: 100px 1fr;
    }

        .reg-name-row .reg-title-select {
            grid-column: 1 / -1;
        }
}

.reg-uppercase {
    text-transform: uppercase;
}

.reg-current-file {
    font-size: 0.82rem;
    color: #16a34a;
    margin-bottom: 4px;
}

.reg-fieldset {
    border: 1px solid #e5e9f0;
    border-radius: 10px;
    padding: 14px 16px;
}

    .reg-fieldset legend {
        font-size: 0.9rem;
        font-weight: 700;
        color: #16244a;
        width: auto;
        padding: 0 6px;
    }

.reg-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}

.reg-checkbox,
.reg-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #374151;
    margin: 0;
    cursor: pointer;
}

.reg-checkbox input[type="checkbox"],
.reg-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin: 0;
    cursor: pointer;
    accent-color: #2f6fed;
}

.reg-radio-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.reg-subheading {
    font-size: 1.05rem;
    font-weight: 700;
    color: #16244a;
    margin: 26px 0 14px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e5e9f0;
}

/*.reg-registrar-block {
    background: #f8fafd;
    border: 1px solid #e5e9f0;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 4px;
}*/

.reg-hint {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 4px;
}

.reg-hint-success {
    color: #42C964;
    font-weight: 700;
}

.reg-sortcode-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reg-sortcode-input {
    width: 70px;
    text-align: center;
}

.reg-sortcode-sep {
    font-weight: 700;
    color: #6b7280;
}

.reg-policy-intro {
    margin-bottom: 14px;
    color: #16244a;
}

.reg-policy-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reg-policy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #e5e9f0;
    border-radius: 10px;
    padding: 12px 16px;
    background: #f8fafd;
}

.reg-policy-name {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.reg-policy-open {
    font-size: 0.78rem;
    color: #0d5794;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

    .reg-policy-open:hover {
        text-decoration: underline;
    }

.reg-policy-accept {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #16244a;
    margin: 0;
    cursor: pointer;
    white-space: nowrap;
}

    .reg-policy-accept input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin: 0;
        flex: 0 0 auto;
        cursor: pointer;
        accent-color: #2f6fed;
    }

        .reg-policy-accept input[type="checkbox"]:disabled {
            cursor: not-allowed;
            opacity: 0.6;
        }

    .reg-policy-accept span {
        line-height: 1;
    }

/* Hint shown until the policy is opened; hidden once its checkbox is enabled. */
.reg-open-hint {
    color: #9aa3b2;
    font-weight: 400;
    font-size: 0.72rem;
    white-space: nowrap;
}

.reg-policy-accept input:not(:disabled) ~ .reg-open-hint {
    display: none;
}

/* Policy modal — 90% of the viewport; iframe fills the body. */
.reg-policy-modal .modal-dialog {
    max-width: 90vw;
    width: 90vw;
    height: 90vh;
    margin: 5vh auto;
}

.reg-policy-modal .modal-content {
    height: 90vh;
    display: flex;
    flex-direction: column;
}

.reg-policy-modal .modal-body {
    flex: 1 1 auto;
    overflow: auto;
    padding: 20px 24px;
}

.reg-slot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.reg-slot-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e5e9f0;
    border-radius: 999px;
    padding: 8px 16px;
    background: #f8fafd;
    font-weight: 600;
    color: #16244a;
    margin: 0;
    cursor: pointer;
}

    .reg-slot-option:hover {
        border-color: #0d5794;
    }

.reg-done {
    text-align: center;
    padding: 28px 16px;
    max-width: 560px;
    margin: 0 auto;
}

.reg-done-icon {
    font-size: 4rem;
    line-height: 1;
    color: #22c55e;
    margin-bottom: 14px;
}

    .reg-done-icon.reg-status-warn {
        color: #f59e0b;
    }

.reg-status-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #16244a;
    margin-bottom: 10px;
}

.reg-done-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #16a34a;
    margin-bottom: 10px;
}

.reg-done-lead {
    font-size: 1.05rem;
    font-weight: 600;
    color: #16244a;
    margin-bottom: 6px;
}

.reg-done-slot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eaf4ff;
    color: #0d5794;
    border-radius: 999px;
    padding: 10px 20px;
    font-weight: 600;
    margin: 14px 0;
}

.reg-done-welcome {
    color: #0d5794;
    font-weight: 700;
    margin-top: 10px;
}

.reg-done-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f6f8fc;
    border: 1px solid #e5e9f0;
    border-radius: 10px;
    padding: 10px 16px;
    color: #16244a;
    margin: 10px 0 24px;
}

.reg-done-btn {
    text-decoration: none;
}

/* Specialties multi-select (bootstrap-multiselect) */
.reg-specialties-select + .btn-group,
.btn-group.multiselect-native-select {
    width: 100%;
}

.reg-multiselect-btn.reg-multiselect-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-align: left;
    padding: 11px 14px;
    border: 1px solid #d1d7e0;
    border-radius: 10px;
    background: #fff;
    color: #374151;
    font-size: 0.95rem;
    white-space: normal;
}

    .reg-multiselect-btn.reg-multiselect-btn:hover {
        background: #fff;
        border-color: #b9c2d0;
    }

    .reg-multiselect-btn.reg-multiselect-btn:focus,
    .btn-group.show .reg-multiselect-btn.reg-multiselect-btn {
        border-color: #2f6fed;
        box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
    }

.multiselect-container.dropdown-menu {
    width: 100%;
    border: 1px solid #e5e9f0;
    border-radius: 10px;
    box-shadow: 0 12px 34px rgba(15, 30, 70, 0.12);
    padding: 6px;
}

    .multiselect-container.dropdown-menu .multiselect-option label,
    .multiselect-container.dropdown-menu .multiselect-all label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.9rem;
        font-weight: 500;
        color: #374151;
        padding: 7px 10px;
        margin: 0;
        cursor: pointer;
    }

    .multiselect-container.dropdown-menu .multiselect-option:hover,
    .multiselect-container.dropdown-menu .multiselect-all:hover {
        background: #f4f7fb;
        border-radius: 8px;
    }

    .multiselect-container.dropdown-menu .form-check {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: auto;
        padding-left: 0;
        margin: 0;
    }

        .multiselect-container.dropdown-menu .form-check .form-check-label {
            margin: 0;
        }

    .multiselect-container.dropdown-menu .form-check-input {
        margin: 0;
        flex: 0 0 auto;
        float: none;
        width: 1rem;
        height: 1rem;
        appearance: auto;
        -webkit-appearance: auto;
        opacity: 1;
        position: static;
        border: 1px solid #b9c2d0;
        cursor: pointer;
    }

.multiselect-container .multiselect-filter {
    padding: 6px 8px 8px;
}
