/*
Theme Name: Listeo Child
Theme URI: http://listeo.pro/
Author: Qatar Expat Services
Description: Child theme for Qatar Expat Services Portal
Template: listeo
Version: 1.0.0
Text Domain: listeo-child
*/

/* ============================================================
   GLOBAL — QES Design Tokens
   ============================================================ */
:root {
    --qes-primary:   #6434C0;
    --qes-navy:      #070821;
    --qes-blue:      #0D2B55;
    --qes-muted:     #667085;
    --qes-border:    #E6E8EF;
    --qes-bg:        #F6F7FB;
}

/* ============================================================
   MY PROFILE PAGE — Full-page split auth layout
   ============================================================ */

/* Hide titlebar + page padding on my-profile */
.page-slug-my-profile #titlebar,
body.page-slug-my-profile #titlebar {
    display: none !important;
}

/* Kill every Bootstrap/Listeo layout constraint on the profile page */
.page-slug-my-profile .container,
.page-slug-my-profile .container.full-width,
.page-slug-my-profile .row,
.page-slug-my-profile [class*="col-"],
.page-slug-my-profile article,
.page-slug-my-profile .post,
.page-slug-my-profile .page,
.page-slug-my-profile #content,
.page-slug-my-profile #main,
.page-slug-my-profile .content-area,
.page-slug-my-profile #primary,
.page-slug-my-profile .entry-content,
.page-slug-my-profile .site-content {
    float:      none !important;
    width:      100% !important;
    max-width:  100% !important;
    margin:     0    !important;
    padding:    0    !important;
    left:       auto !important;
    right:      auto !important;
}

/* Hide sidebar */
.page-slug-my-profile #sidebar,
.page-slug-my-profile .widget-area {
    display: none !important;
}

/* ---- Outer page wrapper ---- */
.qes-auth-page {
    background: var(--qes-bg);
    min-height: calc(100vh - 82px);
    padding: 40px 24px 60px;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    box-sizing: border-box;
    width: 100%;
}

/* ---- Card ---- */
.qes-auth-card {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(10,20,60,.12);
}

.qes-auth-card .qes-auth-visual {
    flex: 0 0 44%;
    width: 44%;
}

.qes-auth-card .qes-auth-form-side {
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 900px) {
    .qes-auth-card {
        flex-direction: column;
    }
    .qes-auth-card .qes-auth-visual {
        flex: none;
        width: 100%;
        min-height: 300px;
    }
}

/* ---- Visual side ---- */
.qes-auth-visual {
    position: relative;
    min-height: 600px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.28), transparent 32%),
        radial-gradient(circle at 80% 15%, rgba(155,31,58,.25), transparent 28%),
        linear-gradient(135deg, #0D2B55 0%, #15104A 45%, #6434C0 100%);
}

.qes-auth-visual::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    right: -150px;
    top: -140px;
    pointer-events: none;
}

.qes-auth-visual::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    left: -110px;
    bottom: -90px;
    pointer-events: none;
}

.qes-auth-visual-top {
    position: relative;
    z-index: 1;
}

.qes-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.qes-auth-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #86efac;
    display: inline-block;
}

.qes-auth-visual h2 {
    font-size: clamp(26px, 3.5vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 16px;
    color: #fff;
}

.qes-auth-visual p {
    color: rgba(255,255,255,.78);
    font-size: 15px;
    line-height: 1.7;
    max-width: 360px;
    margin: 0;
}

/* Floating cards at bottom */
.qes-auth-visual-bottom {
    position: relative;
    z-index: 1;
}

.qes-floating-card {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 12px;
}

.qes-floating-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.qes-floating-stat .stat-label {
    color: rgba(255,255,255,.65);
    font-size: 13px;
    margin-bottom: 4px;
}

.qes-floating-stat .stat-value {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.qes-floating-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.qes-mini-cards {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.qes-mini-cards .qes-mini-card {
    flex: 1;
}

.qes-mini-card {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-radius: 14px;
    padding: 16px;
}

.qes-mini-card .mini-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 10px;
}

.qes-mini-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}

.qes-mini-card p {
    font-size: 12px;
    color: rgba(255,255,255,.65);
    margin: 0;
}

/* ---- Form side ---- */
.qes-auth-form-side {
    padding: 40px 48px;
    background: #fff;
    /* Neutralise Elementor's currentColor inheritance for borders */
    color: #111827;
    border-color: transparent;
}

@media (max-width: 600px) {
    .qes-auth-form-side { padding: 28px 20px; }
    .qes-auth-visual { padding: 28px 20px; }
}

.qes-auth-form-side h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0 0 8px;
    color: #111827;
}

.qes-auth-form-side > .qes-form-inner > .qes-form-subtitle {
    color: var(--qes-muted);
    font-size: 15px;
    margin: 0 0 28px;
}

/* Tab switcher — Log In / Register — same border-bottom style as Guest/Owner */
.qes-tab-switcher {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 28px;
    padding: 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid #E6E8EF;
}

.qes-tab-btn,
.qes-tab-btn:link,
.qes-tab-btn:visited,
.elementor-kit-14 .qes-tab-btn,
.elementor-kit-14 .qes-tab-btn:link,
.elementor-kit-14 .qes-tab-btn:visited,
.qes-tab-switcher .qes-tab-btn,
.qes-tab-switcher button.qes-tab-btn {
    flex: 1 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 2px solid transparent !important;
    border-bottom-color: transparent !important;
    border-radius: 0 !important;
    margin-bottom: -2px !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--qes-muted) !important;
    cursor: pointer !important;
    transition: color .2s, border-color .2s, background .2s !important;
    text-align: center !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.qes-tab-btn.active,
.qes-tab-btn.active:link,
.qes-tab-btn.active:visited,
.elementor-kit-14 .qes-tab-btn.active,
.elementor-kit-14 .qes-tab-btn.active:link,
.qes-tab-switcher .qes-tab-btn.active,
.qes-tab-switcher button.qes-tab-btn.active {
    color: var(--qes-primary) !important;
    border-bottom: 2px solid var(--qes-primary) !important;
    border-bottom-color: var(--qes-primary) !important;
    background: linear-gradient(180deg, rgba(100,52,192,.08), rgba(100,52,192,0)) !important;
    background-color: rgba(100,52,192,.04) !important;
    border-radius: 8px 8px 0 0 !important;
    box-shadow: none !important;
}

.qes-tab-btn:not(.active):hover,
.elementor-kit-14 .qes-tab-btn:not(.active):hover {
    color: #344054 !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* Gap between tab switcher and form content */
.qes-auth-form-side .tabs-container.alt {
    margin-top: 24px;
}

/* Form panels */
.qes-panel { display: none; }
.qes-panel.active { display: block; }

/* Spacing between form rows inside panels */
.qes-panel .form-row,
.qes-panel p.form-row {
    margin-bottom: 16px !important;
}

.qes-panel .form-row:last-child {
    margin-bottom: 0 !important;
}

/* Input fields */
.qes-field {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--qes-border);
    border-radius: 12px;
    padding: 0 16px;
    height: 52px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    margin-bottom: 14px;
}

.qes-field:focus-within {
    border-color: var(--qes-primary);
    box-shadow: 0 0 0 4px rgba(100,52,192,.10);
}

.qes-field i,
.qes-field .field-icon {
    color: #98A2B3;
    font-size: 16px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.qes-field input {
    flex: 1;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 14px;
    color: #111827;
    box-shadow: none !important;
    padding: 0 !important;
    height: 100% !important;
    border-radius: 0 !important;
}

.qes-field input::placeholder {
    color: #98A2B3;
}

/* Role selector (Guest / Owner) — same style as Log In / Register tabs */
.qes-role-selector,
.account-type {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    margin-bottom: 20px !important;
    border-bottom: 2px solid #E6E8EF;
    padding-bottom: 0;
}

.qes-role-opt {
    display: none !important;
}

.qes-role-label,
.account-type label,
.elementor-kit-14 .qes-role-label,
.elementor-kit-14 .account-type label,
.qes-role-selector label,
.qes-role-selector .qes-role-label {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 14px 16px !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 2px solid transparent !important;
    border-bottom-color: transparent !important;
    margin-bottom: -2px !important;
    border-radius: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--qes-muted) !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    cursor: pointer !important;
    transition: color .2s, border-color .2s, background .2s !important;
    box-shadow: none !important;
}

.qes-role-opt:checked + .qes-role-label,
.account-type input[type="radio"]:checked + label,
.elementor-kit-14 .qes-role-opt:checked + .qes-role-label,
.elementor-kit-14 .account-type input[type="radio"]:checked + label {
    color: var(--qes-primary) !important;
    border-bottom: 2px solid var(--qes-primary) !important;
    border-bottom-color: var(--qes-primary) !important;
    background: linear-gradient(180deg, rgba(100,52,192,.08), rgba(100,52,192,0)) !important;
    background-color: rgba(100,52,192,.04) !important;
    border-radius: 8px 8px 0 0 !important;
    box-shadow: none !important;
}

/* Name row — two fields side by side */
.qes-name-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.qes-name-row .qes-field {
    flex: 1;
    margin-bottom: 14px;
}

@media (max-width: 480px) {
    .qes-name-row {
        flex-direction: column;
    }
}

/* Remember me / Lost password row */
.qes-login-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13px;
}

.qes-login-meta label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #475467;
    font-weight: 500;
    cursor: pointer;
}

.qes-login-meta a {
    font-weight: 700;
    color: var(--qes-primary);
    text-decoration: none;
}

.qes-login-meta a:hover { text-decoration: underline; }

/* Primary CTA button */
.qes-btn-primary,
.qes-auth-form-side input[type="submit"],
.qes-auth-form-side .button.border.fw,
.qes-auth-form-side .button.fw,
.qes-auth-form-side .button.border.margin-top-5 {
    display: block !important;
    width: 100% !important;
    height: 52px !important;
    background: var(--qes-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background .2s, box-shadow .2s, transform .2s !important;
    box-shadow: 0 14px 28px rgba(100,52,192,.25) !important;
    margin-bottom: 16px !important;
    text-align: center !important;
    line-height: 52px !important;
    padding: 0 !important;
}

.qes-btn-primary:hover,
.qes-auth-form-side input[type="submit"]:hover,
.qes-auth-form-side .button.border.fw:hover,
.qes-auth-form-side .button.fw:hover,
.qes-auth-form-side .button.border.margin-top-5:hover {
    background: #5326AA !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 18px 32px rgba(100,52,192,.35) !important;
}

/* Switch-tab helper text */
.qes-switch-row {
    text-align: center;
    font-size: 13px;
    color: var(--qes-muted);
}

.qes-switch-row button {
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--qes-primary);
    cursor: pointer;
    padding: 0;
}

.qes-switch-row button:hover { text-decoration: underline; }

/* Privacy checkbox */
.qes-privacy-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #475467;
    margin-bottom: 16px;
    line-height: 1.5;
}

.qes-privacy-row input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--qes-primary);
    flex-shrink: 0;
}

.qes-privacy-row a {
    color: var(--qes-primary);
    font-weight: 600;
    text-decoration: none;
}

/* ============================================================
   END MY PROFILE PAGE
   ============================================================ */
