* {
    box-sizing: border-box;
}

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    background: #f6f9fc;
    font-family: 'Cairo', sans-serif;
}

/* ================================
   Page Layout
================================ */

.signup-auth-page {
    width: 100%;
    min-height: 100vh;
    background: #f6f9fc;
}

.signup-auth-card {
    width: 100%;
    min-height: 100vh;
    display: grid !important;
    grid-template-columns: 58% 42%;
    background: #fff;
    margin: 0 !important;
    padding: 0 !important;
}

.signup-form-side {
    position: relative;
    min-height: 100vh;
    background: #ffffff;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 44px 56px;
    overflow: visible !important;
}

.signup-form-side::before {
    content: "";
    position: absolute;
    top: -160px;
    left: -160px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(244, 216, 83, 0.38);
    box-shadow: 0 0 0 28px rgba(244, 216, 83, 0.08);
    pointer-events: none;
}

html[dir="rtl"] .signup-form-side::before {
    left: auto;
    right: -160px;
}

.signup-form-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 720px;
}

.signup-header {
    text-align: center;
    margin-bottom: 24px;
}

.signup-kicker {
    color: #2196d6;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.signup-header h1 {
    color: #146b98;
    font-size: 30px;
    line-height: 1.35;
    font-weight: 800;
    margin: 0 0 10px;
}

.signup-header p {
    color: #6f7d89;
    font-size: 15px;
    font-weight: 500;
    margin: 0;
}

/* ================================
   Steps
================================ */

.signup-steps {
    width: 100%;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    justify-content: center;
    margin: 26px 0 28px;
}

.signup-step {
    min-width: 80px;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: default;
}

.signup-step span {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #edf4fa;
    border: 2px solid #d8e5ee;
    color: #8a9aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
}

.signup-step p {
    margin: 0;
    color: #8a9aaa;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.signup-step-line {
    flex: 1;
    max-width: 100px;
    height: 3px;
    background: #dce8f1;
    border-radius: 999px;
    margin-top: 20px;
}

.signup-step.active span {
    background: #2196d6;
    border-color: #2196d6;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(33, 150, 214, 0.26);
}

.signup-step.active p {
    color: #146b98;
}

.signup-step.completed span {
    position: relative;
    background: #23b26d;
    border-color: #23b26d;
    color: transparent;
}

.signup-step.completed span::after {
    content: "✓";
    position: absolute;
    color: #fff;
    font-size: 19px;
    font-weight: 900;
}

.signup-step.completed p {
    color: #23b26d;
}

.signup-step-line.completed {
    background: #23b26d;
}

/* ================================
   Card / Form
================================ */

.signup-step-card {
    position: relative;
    z-index: 5;
    background: #ffffff;
    border: 1px solid #e6eef5;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 18px 45px rgba(13, 84, 124, 0.08);
    overflow: visible !important;
}

.tab,
.register-right,
.register-right-wrapper {
    width: 100%;
    overflow: visible !important;
}

.form-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.input,
.input-group {
    position: relative;
    width: 100%;
}

.input-group {
    display: block !important;
}

.input-control,
.iti input {
    width: 100%;
    height: 56px;
    border: 1px solid #dce7f0;
    border-radius: 18px;
    background: #f4f8fc;
    color: #263746;
    font-size: 15px;
    font-weight: 600;
    padding: 0 18px;
    outline: none;
    transition: 0.2s ease;
}

.input-control::placeholder {
    color: #98a8b6;
    font-weight: 500;
}

.input-control:focus,
.iti input:focus {
    border-color: #2196d6;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(33, 150, 214, 0.12);
}

.invalid {
    border-color: #e53935 !important;
}

.text-danger {
    display: block;
    margin-top: 7px;
    font-size: 13px;
    font-weight: 600;
}

/* ================================
   Password
================================ */

.password-input-group {
    position: relative;
}

.password-input-group .input-control {
    padding-inline-start: 50px;
    padding-inline-end: 54px;
    direction: ltr;
    text-align: left;
}

.input-icon {
    position: absolute;
    top: 18px;
    inset-inline-start: 18px;
    width: 18px;
    height: 18px;
    opacity: 0.55;
    z-index: 2;
}

.password-toggle-btn {
    position: absolute;
    top: 10px;
    inset-inline-end: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #789;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ================================
   Gender
================================ */

.gender-container {
    margin-top: 22px;
}

.gender {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid #e6eef5;
    border-radius: 20px;
    background: #fbfdff;
}

.gender p {
    color: #2f3d4a;
    font-size: 15px;
    font-weight: 700;
}

.gender-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.radio-item input {
    display: none;
}

.radio-item label {
    min-width: 92px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid #d9e5ee;
    background: #f4f8fc;
    color: #6b7c8b;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.radio-item input:checked + label {
    background: #2196d6;
    border-color: #2196d6;
    color: #fff;
    box-shadow: 0 8px 20px rgba(33, 150, 214, 0.22);
}

/* ================================
   Looking For
================================ */

.list-wrapper {
    display: grid;
    gap: 14px;
}

.list-wrapper > div {
    min-height: 60px;
    padding: 16px 18px;
    border: 1px solid #e0eaf2;
    border-radius: 18px;
    background: #f8fbfe;
}

.form-check-label,
.list-wrapper label {
    color: #2f3d4a;
    font-size: 15px;
    font-weight: 700;
    margin-inline-start: 10px;
    cursor: pointer;
}

.step-section-title,
.label {
    color: #2f3d4a;
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 16px;
}

/* ================================
   Custom Dropdown Fix
================================ */

.row,
.col-sm-3,
.col-sm-4,
.col-sm-6,
.col-sm-9 {
    overflow: visible !important;
}

.select-menu {
    position: relative;
    width: 100%;
    z-index: 1;
}

.select-menu.active {
    z-index: 99999;
}

.select-btn {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 56px;
    border: 1px solid #dce7f0;
    border-radius: 18px;
    background: #f4f8fc;
    color: #263746;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.select-btn:hover,
.select-menu.active .select-btn {
    border-color: #2196d6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(33, 150, 214, 0.10);
}

.sBtn-text {
    font-size: 15px;
    font-weight: 700;
    color: #536575;
    max-width: calc(100% - 28px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.select-btn img {
    width: 13px;
    height: 13px;
    object-fit: contain;
    transition: 0.2s ease;
}

.select-menu.active .select-btn img {
    transform: rotate(180deg);
}

.options {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100000 !important;

    display: none;
    max-height: 170px;
    overflow-y: auto;

    padding: 8px;
    margin: 0;
    list-style: none;

    border: 1px solid #dce7f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(13, 84, 124, 0.18);
}

.select-menu.active .options {
    display: block !important;
}

.option {
    min-height: 42px;
    border-radius: 12px;
    padding: 10px 12px;
    color: #34495a;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.15s ease;
}

.option:hover {
    background: #eef8ff;
    color: #2196d6;
}

/* Scrollbar for dropdown */
.options::-webkit-scrollbar {
    width: 6px;
}

.options::-webkit-scrollbar-track {
    background: #eef4f8;
    border-radius: 999px;
}

.options::-webkit-scrollbar-thumb {
    background: #b7d8ea;
    border-radius: 999px;
}

/* ================================
   People Counter
================================ */

.prefer-people {
    height: 48px;
    min-width: 130px;
    border-radius: 999px;
    border: 1px solid #dce7f0;
    background: #f4f8fc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px;
}

.prefer-people button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #2196d6;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.prefer-people .number {
    color: #263746;
    font-size: 16px;
    font-weight: 800;
}

/* ================================
   Actions
================================ */

.signup-actions {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 28px;
}

.signup-btn-primary,
.signup-btn-secondary {
    min-width: 150px;
    height: 56px;
    border-radius: 999px;
    padding: 0 30px;
    font-size: 15px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.signup-btn-primary {
    background: #2196d6;
    border: 1px solid #2196d6;
    color: #fff;
    box-shadow: 0 12px 24px rgba(33, 150, 214, 0.24);
}

.signup-btn-primary:hover {
    background: #157fb9;
    border-color: #157fb9;
    color: #fff;
}

.signup-btn-secondary {
    background: #ffffff;
    border: 1px solid #2196d6;
    color: #2196d6;
}

.signup-btn-secondary:hover {
    background: #eef8ff;
    color: #157fb9;
}

/* ================================
   Visual Side
================================ */

.signup-visual-side {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(244, 216, 83, 0.32) 0%, rgba(221, 241, 248, 0.9) 42%, #eef8fc 100%);
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 64px;
    overflow: hidden;
}

.signup-logo {
    position: absolute;
    top: 54px;
    inset-inline-end: 72px;
    z-index: 2;
}

.signup-logo img {
    max-width: 180px;
    height: auto;
}

.signup-visual-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 520px;
}

.signup-visual-content img {
    width: 100%;
    max-width: 260px;
    height: auto;
    margin-bottom: 26px;
}

.signup-visual-content h2 {
    color: #146b98;
    font-size: 30px;
    font-weight: 900;
    margin: 0 0 12px;
}

.signup-visual-content p {
    color: #607483;
    font-size: 16px;
    line-height: 1.8;
    font-weight: 600;
    max-width: 470px;
    margin: 0 auto;
}

.signup-mobile-logo {
    display: none;
    width: fit-content;
    margin: 0 auto 22px;
}

.signup-mobile-logo img {
    max-width: 150px;
}

/* ================================
   Verify Step
================================ */

.verify-step-wrapper {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    text-align: center;
}

.verify-step-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2196d6, #23b26d);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 28px rgba(33, 150, 214, 0.22);
}

.verify-step-icon span {
    color: #ffffff;
    font-size: 34px;
    font-weight: 900;
}

.verify-step-title {
    color: #263746;
    font-size: 24px;
    line-height: 1.4;
    font-weight: 900;
    text-align: center;
    margin: 0 0 10px;
}

.verify-step-subtitle {
    color: #6f7d89;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 500;
    text-align: center;
    max-width: 390px;
    margin: 0 auto 24px;
}

.verify-code-step {
    direction: ltr !important;
    display: grid !important;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 410px;
    margin: 0 auto 22px;
}

.verify-code-step .code-input {
    width: 100% !important;
    min-width: 0 !important;
    height: 56px !important;
    border-radius: 16px !important;
    border: 1px solid #dce7f0 !important;
    background: #f8fbfe !important;
    color: #263746 !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    text-align: center !important;
    outline: none !important;
    padding: 0 !important;
}

.verify-code-step .code-input:focus {
    border-color: #2196d6 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(33, 150, 214, 0.12) !important;
}

.verify-alert {
    width: 100%;
    border-radius: 16px;
    padding: 12px 14px;
    margin: 14px 0;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.verify-alert-danger {
    background: #fff2f2;
    color: #d93025;
    border: 1px solid #ffd4d4;
}

.verify-resend-area {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 0 20px;
}

.verify-timer {
    min-width: 78px;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: #eef8ff;
    color: #2196d6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
}

.received-code {
    margin: 0;
    color: #6f7d89;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.verify-resend-btn {
    border: 0;
    background: transparent;
    color: #2196d6;
    font-size: 14px;
    font-weight: 900;
    padding: 0 4px;
    cursor: pointer;
    text-decoration: underline;
}

.verify-guest-link {
    margin: 16px auto 0;
    display: block;
    border: 0;
    background: transparent;
    color: #7b8a97;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
}

.verify-guest-link:hover {
    color: #2196d6;
}

/* ================================
   RTL
================================ */

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .input-control {
    text-align: right;
}

html[dir="rtl"] input[type="password"] {
    direction: ltr;
    text-align: left;
}

html[dir="rtl"] .iti input {
    direction: ltr;
    text-align: left;
}

html[dir="rtl"] .options {
    text-align: right;
}

html[dir="rtl"] .select-btn {
    direction: rtl;
}

/* ================================
   Responsive
================================ */

@media (max-width: 1200px) {
    .signup-auth-card {
        grid-template-columns: 1fr;
    }

    .signup-visual-side {
        display: none !important;
    }

    .signup-form-side {
        padding: 34px 22px;
    }

    .signup-mobile-logo {
        display: block;
    }

    .signup-form-wrapper {
        max-width: 760px;
    }
}

@media (max-width: 576px) {
    .signup-form-side {
        align-items: flex-start;
        padding: 24px 14px;
    }

    .signup-header h1 {
        font-size: 23px;
    }

    .signup-step-card {
        padding: 20px;
        border-radius: 22px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .signup-steps {
        margin: 22px 0 24px;
    }

    .signup-step {
        min-width: 56px;
    }

    .signup-step span {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .signup-step p {
        font-size: 10px;
    }

    .signup-step-line {
        max-width: 36px;
        margin-top: 16px;
    }

    .gender {
        flex-direction: column;
        align-items: flex-start;
    }

    .gender-wrapper {
        width: 100%;
    }

    .radio-item {
        flex: 1;
    }

    .radio-item label {
        width: 100%;
    }

    .signup-actions {
        flex-direction: column-reverse;
    }

    .signup-btn-primary,
    .signup-btn-secondary {
        width: 100%;
    }

    .options {
        max-height: 150px;
    }

    .verify-code-step {
        gap: 6px;
        max-width: 100%;
    }

    .verify-code-step .code-input {
        height: 50px !important;
        border-radius: 13px !important;
        font-size: 19px !important;
    }

    .verify-step-title {
        font-size: 21px;
    }
}