/* ===================================================
   Entasher Register Page - Complete Stylesheet
   Brand Colors: Blue #264EFF | Orange #F7A722
   =================================================== */
/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
:root {
    --blue: #264EFF;
    --blue-light: #4d73ff;
    --blue-dark: #1a3acc;
    --orange: #F7A722;
    --orange-light: #ffc04d;
    --white: #FFFFFF;
    --black: #000000;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --red: #ef4444;
    --green: #22c55e;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow: 0 4px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
    --transition: .25s ease;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
a {
    color: var(--blue);
    text-decoration: none;
}
    a:hover {
        text-decoration: underline;
    }
/* ---------- HEADER ---------- */
.reg-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}
.reg-header__inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.reg-header__logo img {
    height: 36px;
    width: auto;
}
.reg-header__login {
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
    padding: 8px 20px;
    border: 2px solid var(--blue);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
    .reg-header__login:hover {
        background: var(--blue);
        color: var(--white);
        text-decoration: none;
    }
/* ---------- PROVIDER LANDING ---------- */
.provider-landing {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: var(--white);
    padding: 48px 24px;
    text-align: center;
}
.provider-landing__inner {
    max-width: 700px;
    margin: 0 auto;
}
.provider-landing__title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}
.provider-landing__subtitle {
    font-size: 16px;
    opacity: .85;
    margin-bottom: 32px;
}
.benefit-strip {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}
.benefit-strip__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}
    .benefit-strip__item i {
        font-size: 18px;
        color: var(--orange);
    }
/* ---------- MAIN CONTAINER ---------- */
.reg-main {
    padding: 32px 24px 64px;
}
.reg-container {
    max-width: 640px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 40px 32px;
}
/* ---------- PROGRESS BAR ---------- */
.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    gap: 0;
}
.progress-bar__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}
.progress-bar__dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    background: var(--gray-200);
    color: var(--gray-500);
    transition: var(--transition);
}
.progress-bar__step.active .progress-bar__dot {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(38,78,255,.15);
}
.progress-bar__step.completed .progress-bar__dot {
    background: var(--green);
    color: var(--white);
}
.progress-bar__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.progress-bar__step.active .progress-bar__label {
    color: var(--blue);
}
.progress-bar__step.completed .progress-bar__label {
    color: var(--green);
}
.progress-bar__line {
    width: 60px;
    height: 2px;
    background: var(--gray-200);
    margin: 0 8px;
    margin-bottom: 22px;
    border-radius: 1px;
}
.progress-bar__step.completed + .progress-bar__line,
.progress-bar__step.completed ~ .progress-bar__line {
    background: var(--green);
}
/* ---------- FORM STEPS ---------- */
.form-step {
    display: none;
}
    .form-step.active {
        display: block;
        animation: fadeSlideIn .35s ease;
    }
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.form-step__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}
.form-step__subtitle {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 32px;
}
.form-step__actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    justify-content: flex-end;
}
[dir="rtl"] .form-step__actions {
    justify-content: flex-start;
}
/* ---------- INTENT OPTIONS (Step 1) ---------- */
.intent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.intent-option {
    cursor: pointer;
}
.intent-option__radio {
    display: none;
}
.intent-option__card {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 28px 16px;
    text-align: center;
    transition: var(--transition);
    background: var(--white);
}
    .intent-option__card:hover {
        border-color: var(--blue-light);
        box-shadow: var(--shadow);
    }
.intent-option--selected .intent-option__card {
    border-color: var(--blue);
    background: rgba(38,78,255,.04);
    box-shadow: 0 0 0 3px rgba(38,78,255,.1);
}
.intent-option__icon {
    width: 48px;
    height: 48px;
    color: var(--blue);
    margin-bottom: 12px;
}
.intent-option__label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}
.intent-option__desc {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
}
/* ---------- FORM INPUTS ---------- */
.form-group {
    margin-bottom: 20px;
}
    .form-group > label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        color: var(--gray-700);
        margin-bottom: 6px;
    }
.form-input,
.form-select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-size: 15px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--gray-800);
    transition: var(--transition);
    outline: none;
}
    .form-input:focus,
    .form-select:focus {
        border-color: var(--blue);
        box-shadow: 0 0 0 3px rgba(38,78,255,.1);
    }
    .form-input::placeholder {
        color: var(--gray-400);
    }
    .form-input.input-error {
        border-color: var(--red);
        box-shadow: 0 0 0 3px rgba(239,68,68,.1);
    }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
/* ---------- PHONE INPUT ---------- */
.phone-input {
    display: flex;
    gap: 8px;
}
.phone-input__code {
    width: 140px;
    flex-shrink: 0;
}
.phone-input__select {
    height: 48px;
}
.phone-input__number {
    flex: 1;
}
/* ---------- COUNTRY AUTOCOMPLETE ---------- */
.country-autocomplete {
    position: relative;
}
.country-autocomplete__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    max-height: 220px;
    overflow-y: auto;
    z-index: 50;
    display: none;
    box-shadow: var(--shadow);
}
.country-autocomplete__item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: background .15s;
}
    .country-autocomplete__item:hover {
        background: var(--gray-100);
    }
/* ---------- PASSWORD ---------- */
.password-wrapper {
    position: relative;
}
    .password-wrapper .form-input {
        padding-right: 48px;
    }
[dir="rtl"] .password-wrapper .form-input {
    padding-right: 16px;
    padding-left: 48px;
}
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: var(--transition);
}
[dir="rtl"] .password-toggle {
    right: auto;
    left: 12px;
}
.password-toggle:hover {
    color: var(--gray-600);
}
.password-strength {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.password-strength__bar {
    flex: 1;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
}
.password-strength__fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width .3s ease, background-color .3s ease;
}
.password-strength__text {
    font-size: 12px;
    font-weight: 600;
    min-width: 70px;
}
/* ---------- CHIPS ---------- */
.chips-container {
    position: relative;
}
.chips-search {
    position: relative;
}
.chips-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    max-height: 200px;
    overflow-y: auto;
    z-index: 50;
    display: none;
    box-shadow: var(--shadow);
}
.chips-dropdown__item {
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: background .15s;
}
    .chips-dropdown__item:hover {
        background: var(--gray-100);
    }
.chips-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(38,78,255,.08);
    color: var(--blue);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    animation: chipIn .2s ease;
}
@keyframes chipIn {
    from {
        opacity: 0;
        transform: scale(.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.chip__remove {
    background: none;
    border: none;
    color: var(--blue);
    cursor: pointer;
    font-size: 11px;
    padding: 2px;
    line-height: 1;
    transition: var(--transition);
}
    .chip__remove:hover {
        color: var(--red);
    }
/* ---------- DELIVERY MODE ---------- */
.delivery-mode-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.delivery-mode-option {
    cursor: pointer;
}
    .delivery-mode-option input[type="radio"] {
        display: none;
    }
.delivery-mode-option__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
}
    .delivery-mode-option__card i {
        font-size: 20px;
    }
.delivery-mode-option input:checked + .delivery-mode-option__card {
    border-color: var(--blue);
    background: rgba(38,78,255,.04);
    color: var(--blue);
}
.delivery-mode-option__card:hover {
    border-color: var(--blue-light);
}
/* ---------- FILE UPLOAD ---------- */
.file-upload__area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 32px 20px;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}
    .file-upload__area:hover,
    .file-upload__area--dragover {
        border-color: var(--blue);
        background: rgba(38,78,255,.02);
    }
    .file-upload__area i {
        font-size: 32px;
        color: var(--gray-400);
    }
.file-upload__area--dragover i {
    color: var(--blue);
}
.file-upload__text {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
}
.file-upload__hint {
    font-size: 12px;
    color: var(--gray-400);
}
.file-upload__preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
}
    .file-upload__preview i {
        color: var(--blue);
        font-size: 20px;
    }
    .file-upload__preview span {
        flex: 1;
        font-size: 14px;
        color: var(--gray-700);
        word-break: break-all;
    }
.file-upload__remove {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    transition: var(--transition);
}
    .file-upload__remove:hover {
        color: var(--red);
    }
.file-upload__progress {
    margin-top: 8px;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
}
.file-upload__progress-bar {
    height: 100%;
    width: 0;
    background: var(--blue);
    border-radius: 2px;
    transition: width .3s ease;
}
/* ---------- TERMS CHECKBOX ---------- */
.form-group--terms {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--gray-600);
}
    .checkbox-label input[type="checkbox"] {
        display: none;
    }
.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-top: 2px;
}
.checkbox-label input:checked + .checkbox-custom {
    background: var(--blue);
    border-color: var(--blue);
}
    .checkbox-label input:checked + .checkbox-custom::after {
        content: '';
        width: 6px;
        height: 10px;
        border: 2px solid var(--white);
        border-top: none;
        border-left: none;
        transform: rotate(45deg) translateY(-1px);
    }
.checkbox-text a {
    font-weight: 600;
}
/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    outline: none;
}
    .btn:disabled {
        opacity: .5;
        cursor: not-allowed;
    }
.btn--primary {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}
    .btn--primary:hover:not(:disabled) {
        background: var(--blue-dark);
        border-color: var(--blue-dark);
    }
.btn--ghost {
    background: transparent;
    color: var(--gray-600);
    border-color: var(--gray-300);
}
    .btn--ghost:hover:not(:disabled) {
        background: var(--gray-100);
        border-color: var(--gray-400);
    }
.btn--submit {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
    font-size: 16px;
    padding: 14px 36px;
}
    .btn--submit:hover:not(:disabled) {
        background: var(--orange-light);
        border-color: var(--orange-light);
    }
/* ---------- VALIDATION ERRORS ---------- */
.field-validation-error {
    color: var(--red);
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
    display: none;
}
    .field-validation-error:first-child {
        display: block;
    }
.input-validation-error {
    border-color: var(--red) !important;
}
.input-error {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,.1) !important;
}
/* ---------- TOAST (Server Errors) ---------- */
.toast {
    position: fixed;
    top: 80px;
    right: 24px;
    max-width: 400px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    animation: slideInRight .3s ease;
}
[dir="rtl"] .toast {
    right: auto;
    left: 24px;
}
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.toast--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--red);
}
.toast__icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}
.toast__body {
    flex: 1;
}
.toast__list {
    list-style: none;
    padding: 0;
    margin: 0;
}
    .toast__list li {
        font-size: 14px;
        margin-bottom: 4px;
    }
.toast__close {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: var(--transition);
}
    .toast__close:hover {
        color: var(--gray-600);
    }
/* ---------- FOOTER ---------- */
.reg-footer {
    text-align: center;
    padding: 24px;
    font-size: 13px;
    color: var(--gray-400);
    border-top: 1px solid var(--gray-200);
    background: var(--white);
}
/* ---------- ROLE MODULE HIDDEN ---------- */
.role-module {
    animation: fadeSlideIn .35s ease;
}
/* ============================================
   SUCCESS PAGE STYLES
   ============================================ */
.success-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
}
.success-page__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(34,197,94,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
    .success-page__icon i {
        font-size: 36px;
        color: var(--green);
    }
.success-page__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}
.success-page__subtitle {
    font-size: 16px;
    color: var(--gray-500);
    max-width: 500px;
    margin-bottom: 32px;
}
.success-page__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    background: var(--blue);
    color: var(--white);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-decoration: none;
}
    .success-page__cta:hover {
        background: var(--blue-dark);
        text-decoration: none;
    }
.success-page__cta--orange {
    background: var(--orange);
}
    .success-page__cta--orange:hover {
        background: var(--orange-light);
    }
/* ============================================
   PROVIDER VERIFICATION PAGE
   ============================================ */
.verify-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
}
.verify-page__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(38,78,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
    .verify-page__icon i {
        font-size: 36px;
        color: var(--blue);
    }
.verify-page__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}
.verify-page__subtitle {
    font-size: 16px;
    color: var(--gray-500);
    max-width: 500px;
    margin-bottom: 32px;
}
.verify-code {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}
.verify-code__input {
    width: 52px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition);
}
    .verify-code__input:focus {
        border-color: var(--blue);
        box-shadow: 0 0 0 3px rgba(38,78,255,.1);
    }
.verify-page__resend {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 16px;
}
    .verify-page__resend a {
        font-weight: 600;
        cursor: pointer;
    }
/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .reg-container {
        padding: 24px 20px;
        border-radius: var(--radius);
    }
    .intent-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .intent-option__card {
        padding: 20px 16px;
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
    }
    [dir="rtl"] .intent-option__card {
        text-align: right;
    }
    .intent-option__icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .intent-option__desc {
        display: none;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .phone-input {
        flex-direction: column;
    }
    .phone-input__code {
        width: 100%;
    }
    .delivery-mode-grid {
        grid-template-columns: 1fr;
    }
    .progress-bar__label {
        font-size: 10px;
    }
    .progress-bar__line {
        width: 30px;
    }
    .form-step__actions {
        flex-direction: column-reverse;
    }
        .form-step__actions .btn {
            width: 100%;
            justify-content: center;
        }
    .provider-landing__title {
        font-size: 22px;
    }
    .benefit-strip {
        flex-direction: column;
        gap: 16px;
    }
    .reg-header {
        padding: 0 16px;
    }
}
@media (max-width: 480px) {
    .reg-main {
        padding: 16px 12px 40px;
    }
    .reg-container {
        padding: 20px 16px;
        box-shadow: none;
        border-radius: 0;
    }
    .form-step__title {
        font-size: 20px;
    }
    .verify-code__input {
        width: 44px;
        height: 52px;
        font-size: 20px;
    }
}
