/* Career Fixx — "Request A Call Back" popup on the home page (#myModal.cfx-cb):
   a violet-to-pink brand panel beside the form. Kept compact so it fits short screens.
   Loaded after cf-gloss-site.css, whose tokens (--gl-*) carry the light and dark colours. */

.cfx-cb .modal-dialog { max-width: 660px; }
html body .cfx-cb .modal-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    background: var(--gl-card);
    box-shadow: 0 30px 70px rgba(30, 10, 74, .35);
    font-family: 'Urbanist', sans-serif;
}

/* ── Brand panel ──────────────────────────────────────────────────── */
.cfx-cb-side {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    margin: 8px 0 8px 8px;
    padding: 18px 18px 0;
    border-radius: 16px;
    background:
        radial-gradient(220px 180px at 100% 100%, rgba(236, 72, 153, .75), transparent 70%),
        radial-gradient(200px 150px at 0% 0%, rgba(255, 255, 255, .18), transparent 70%),
        linear-gradient(155deg, #3b0f86 0%, #6d28d9 52%, #a22fc0 100%);
}
.cfx-cb-side::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.6px) 0 0 / 22px 22px;
}
.cfx-cb-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 99px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-family: 'Urbanist', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
}
html body .cfx-cb .cfx-cb-lead {
    margin: 12px 0 10px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
}
html body .cfx-cb .cfx-cb-lead span { color: #ffc2e8; font-family: 'Elsie', serif; font-size: 1.15em; font-weight: 400; }
html body .cfx-cb .cfx-cb-points { margin: 0; padding: 0; list-style: none; }
html body .cfx-cb .cfx-cb-points li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 5px;
    color: #f1e9ff;
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
}
.cfx-cb-points i {
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    font-size: 10px;
}
.cfx-cb-art { width: calc(100% + 16px); max-width: none; height: auto; margin: auto -8px 0; padding-top: 6px; }

/* ── Form side ────────────────────────────────────────────────────── */
.cfx-cb-main { min-width: 0; padding: 18px 24px 20px; }
.cfx-cb-brand { display: inline-flex; flex-direction: column; margin-bottom: 8px; }
.cfx-cb-brand img { width: 116px; height: auto; }
.cfx-cb-brand span { margin-top: 2px; color: #a855f7; font-size: 6.5px; font-weight: 700; line-height: 1; letter-spacing: 1.1px; text-align: center; }
html[data-theme="dark"] .cfx-cb-brand img { filter: brightness(1.35) saturate(1.15) drop-shadow(0 0 10px rgba(180, 108, 255, .45)); }

html body .cfx-cb .cfx-cb-title {
    margin: 0 0 1px;
    color: var(--gl-ink);
    font-family: 'Poppins', sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}
html body .cfx-cb .cfx-cb-title span {
    font-family: inherit;
    background: linear-gradient(100deg, #7c14ea 0%, #a855f7 45%, #db2777 100%);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}
html body .cfx-cb .cfx-cb-sub { margin: 0 0 10px; color: var(--gl-muted); font-size: 13px; line-height: 1.4; text-align: left; }

.cfx-cb-field { margin-bottom: 8px; }
html body .cfx-cb .cfx-cb-field label { display: block; margin: 0 0 3px; color: var(--gl-ink); font-size: 12.5px; font-weight: 600; line-height: 17px; }
.cfx-cb-input { position: relative; }
.cfx-cb-input i { position: absolute; top: 50%; left: 13px; transform: translateY(-50%); color: #8b5cf6; font-size: 15px; pointer-events: none; }
html body .cfx-cb .cfx-cb-input input {
    width: 100%;
    height: 38px;
    margin: 0;
    padding: 0 12px 0 37px;
    border: 1.5px solid #e6def8;
    border-radius: 11px;
    background: var(--gl-card-2);
    box-shadow: none;
    color: var(--gl-ink);
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
html body .cfx-cb .cfx-cb-input input::placeholder { color: #9c95b5; }
html body .cfx-cb .cfx-cb-input input:focus { border-color: #8b5cf6 !important; box-shadow: 0 0 0 3px rgba(139, 92, 246, .18); outline: none; }
/* red only after the visitor has tried a field, not on first open */
html body .cfx-cb .cfx-cb-input input:user-invalid { border-color: #e11d48 !important; }

html body .cfx-cb .cfx-cb-submit { width: 100%; margin-top: 6px; padding: 8px 20px; font-size: 14px; line-height: 22px; cursor: pointer; }
html body .cfx-cb .cfx-cb-submit:hover { transform: translateY(-2px); }

.cfx-cb-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(124, 58, 237, .1);
    color: var(--gl-ink);
    font-size: 15px;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
html[data-theme="dark"] .cfx-cb-close { background: rgba(255, 255, 255, .14); color: #fff; }
html body .cfx-cb .cfx-cb-close:hover { background: #7c3aed; color: #fff; transform: rotate(90deg); }
.cfx-cb-close:focus-visible,
.cfx-cb-submit:focus-visible { outline: 3px solid #c4b5fd; outline-offset: 2px; }

/* ── Tablet and phone: the panel becomes a one-line strip above the form ─ */
@media (max-width: 767.98px) {
    .cfx-cb .modal-dialog { max-width: 360px; margin-right: auto; margin-left: auto; padding: 0 12px; }
    html body .cfx-cb .modal-content { grid-template-columns: minmax(0, 1fr); border-radius: 20px; }
    .cfx-cb-side { margin: 6px 6px 0; padding: 9px 12px; border-radius: 15px; }
    html body .cfx-cb .cfx-cb-lead,
    html body .cfx-cb .cfx-cb-points,
    .cfx-cb-art,
    .cfx-cb-brand { display: none; }
    .cfx-cb-main { padding: 12px 16px 16px; }
    html body .cfx-cb .cfx-cb-title { font-size: 18px; }
    /* 16px stops iPhones zooming in when a field is tapped */
    html body .cfx-cb .cfx-cb-input input { font-size: 16px; }
    .cfx-cb-close { top: 10px; right: 11px; background: rgba(255, 255, 255, .2); color: #fff; }
}

/* ── Very short screens (phone held sideways): drop the extras ───────── */
@media (max-height: 460px) {
    html body .cfx-cb .cfx-cb-sub,
    .cfx-cb-brand { display: none; }
    .cfx-cb .modal-dialog { margin-top: 4px; margin-bottom: 4px; min-height: calc(100% - 8px); }
    .cfx-cb-main { padding-top: 8px; padding-bottom: 10px; }
    .cfx-cb-field { margin-bottom: 4px; }
    html body .cfx-cb .cfx-cb-input input { height: 34px; }
}
