/* ==========================================================================
   lx-popups.css — Booking funnel popup & CTA system
   ========================================================================== */

/* ── Variables ────────────────────────────────────────────────────────────── */
:root {
    --lx-primary:       #418899;
    --lx-primary-dark:  #326878;
    --lx-danger:        #c0392b;
    --lx-warn-bg:       #fff8e1;
    --lx-warn-text:     #856404;
    --lx-text:          #2d2d2d;
    --lx-muted:         #6b7280;
    --lx-border:        #e5e7eb;
    --lx-radius:        10px;
    --lx-shadow:        0 8px 32px rgba(0,0,0,0.18);
    --lx-transition:    0.3s cubic-bezier(0.4,0,0.2,1);
    --lxz-overlay:     9000;
    --lxz-modal:       9100;
    --lxz-slidein:     9050;
    --lxz-toast:       9200;
    --lxz-sticky:      8900;
    --lxz-injected:    100;
}

/* ── Overlay ──────────────────────────────────────────────────────────────── */
.lx-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: var(--lxz-overlay);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--lx-transition);
}
.lx-overlay--visible {
    opacity: 1;
    pointer-events: auto;
}

/* ── Shared popup pieces ──────────────────────────────────────────────────── */
.lx-popup__close {
    position: absolute;
    top: 4px;
    right: 6px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: var(--lx-muted);
    cursor: pointer;
    /* 44px minimum touch target */
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 4px;
    transition: color var(--lx-transition), background var(--lx-transition);
}
.lx-popup__close:hover { color: var(--lx-text); background: var(--lx-border); }

.lx-popup__eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--lx-primary);
    margin: 0 0 6px;
}
.lx-popup__eyebrow--warn { color: var(--lx-danger); }

.lx-popup__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--lx-text);
    margin: 0 0 10px;
    line-height: 1.3;
}

.lx-popup__body {
    font-size: 14px;
    color: var(--lx-muted);
    margin: 0 0 16px;
    line-height: 1.6;
}

.lx-popup__list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--lx-text);
}
.lx-popup__list li { padding: 4px 0; }

.lx-popup__btn-primary {
    display: block;
    width: 100%;
    padding: 13px 20px;
    background: var(--lx-primary);
    color: #fff;
    border: none;
    border-radius: var(--lx-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background var(--lx-transition);
    margin-bottom: 10px;
}
.lx-popup__btn-primary:hover { background: var(--lx-primary-dark); color: #fff; }

.lx-popup__btn-secondary {
    display: block;
    width: 100%;
    padding: 11px 20px;
    background: transparent;
    color: var(--lx-primary);
    border: 2px solid var(--lx-primary);
    border-radius: var(--lx-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all var(--lx-transition);
    margin-bottom: 8px;
}
.lx-popup__btn-secondary:hover { background: var(--lx-primary); color: #fff; }

.lx-popup__dismiss {
    text-align: center;
    margin: 8px 0 0;
}
.lx-popup__no-thanks,
.lx-popup__stay {
    /* readable + tappable dismiss: 14px text with generous padding so the
       hit area approaches 44px without changing the visual weight much */
    font-size: 14px;
    color: var(--lx-muted);
    text-decoration: underline;
    cursor: pointer;
    display: inline-block;
    padding: 12px 8px;
}
.lx-popup__no-thanks:hover,
.lx-popup__stay:hover { color: var(--lx-text); }

/* ── Email form ───────────────────────────────────────────────────────────── */
.lx-popup__form { margin-top: 4px; }

.lx-popup__fname,
.lx-popup__email,
.lx-popup__phone {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--lx-border);
    border-radius: 7px;
    font-size: 14px;
    color: var(--lx-text);
    background: #fff;
    margin-bottom: 10px;
    box-sizing: border-box;
    transition: border-color var(--lx-transition);
}
.lx-popup__fname:focus,
.lx-popup__email:focus,
.lx-popup__phone:focus {
    outline: none;
    border-color: var(--lx-primary);
}
/* "email  — or —  phone" divider */
.lx-popup__or {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -2px 0 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--lx-muted);
}
.lx-popup__or::before,
.lx-popup__or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--lx-border);
}
.lx-popup__hint {
    font-size: 12px;
    color: var(--lx-muted);
    margin: 2px 0 0;
}
/* TCPA texting-consent line: quiet, unchecked by default, never required. */
.lx-popup__consent {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 11.5px;
    color: var(--lx-muted);
    line-height: 1.45;
    cursor: pointer;
    user-select: none;
    margin: 2px 0 0;
}
.lx-popup__consent input {
    margin: 2px 0 0;
    flex: 0 0 auto;
}
.lx-popup__submit {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--lx-primary);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--lx-transition);
    margin-bottom: 8px;
}
.lx-popup__submit:hover  { background: var(--lx-primary-dark); }
.lx-popup__submit:disabled { opacity: 0.65; cursor: default; }

.lx-popup__error {
    font-size: 13px;
    color: var(--lx-danger);
    margin: 4px 0 0;
}
.lx-popup__success {
    font-size: 14px;
    color: #2e7d32;
    font-weight: 600;
    text-align: center;
    padding: 10px 0;
}

/* ── Modal ────────────────────────────────────────────────────────────────── */
.lx-modal {
    position: fixed;
    inset: 0;
    z-index: var(--lxz-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--lx-transition);
}
.lx-modal--visible {
    opacity: 1;
    pointer-events: auto;
}

.lx-modal__box {
    position: relative;
    background: #fff;
    border-radius: var(--lx-radius);
    box-shadow: var(--lx-shadow);
    padding: 32px 28px 24px;
    width: 100%;
    max-width: 420px;
    transform: translateY(16px);
    transition: transform var(--lx-transition);
}
.lx-modal--visible .lx-modal__box { transform: translateY(0); }

/* ── Slide-in ─────────────────────────────────────────────────────────────── */
.lx-slide-in {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: var(--lxz-slidein);
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--lx-transition), opacity var(--lx-transition);
}
.lx-slide-in--visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.lx-slide-in__inner {
    position: relative;
    background: #fff;
    border-radius: var(--lx-radius);
    box-shadow: var(--lx-shadow);
    padding: 24px 22px 18px;
    width: 320px;
    max-width: calc(100vw - 40px);
    border-top: 4px solid var(--lx-primary);
}
.lx-slide-in__close {
    top: 10px;
    right: 10px;
}

/* ── Toast ────────────────────────────────────────────────────────────────── */
.lx-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: var(--lxz-toast);
    background: #1a1a2e;
    color: #fff;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 14px;
    max-width: 320px;
    line-height: 1.5;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    cursor: pointer;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity var(--lx-transition), transform var(--lx-transition);
}
.lx-toast--visible {
    opacity: 1;
    transform: translateX(0);
}
.lx-toast a { color: #7ec8d8; text-decoration: underline; }

/* Actionable toast: the whole chip opens a lead form, so flag it as a button. */
.lx-toast--action { padding-right: 22px; }
.lx-toast__cta {
    display: inline-block;
    margin-top: 6px;
    color: #7ec8d8;
    font-weight: 700;
    white-space: nowrap;
}
.lx-toast--action:hover .lx-toast__cta { text-decoration: underline; }

/* ── Sticky bottom bar ────────────────────────────────────────────────────── */
.lx-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--lxz-sticky);
    background: #1a1a2e;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    /* safe-area inset keeps the bar clear of the iPhone home indicator */
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
    font-size: 14px;
    transform: translateY(100%);
    transition: transform var(--lx-transition);
    flex-wrap: wrap;
}
.lx-sticky-bar--visible { transform: translateY(0); }

.lx-sticky-bar__name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}
.lx-sticky-bar__dates { color: #a0c4cc; font-size: 13px; }
.lx-sticky-bar__price { color: #7ec8d8; font-weight: 700; }

.lx-sticky-bar__cta {
    display: inline-block;
    padding: 8px 18px;
    background: var(--lx-primary);
    color: #fff;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--lx-transition);
    margin-left: auto;
}
.lx-sticky-bar__cta:hover { background: var(--lx-primary-dark); color: #fff; }

.lx-sticky-bar__close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 18px;
    cursor: pointer;
    /* 44px minimum touch target so it isn't mistapped against the CTA */
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-left: 4px;
    line-height: 1;
}
.lx-sticky-bar__close:hover { color: #fff; }

/* Desktop already keeps the booking box sticky on the right, so this bottom CTA
   bar is redundant there — show it only on mobile/tablet (≤960px). */
@media (min-width: 961px) {
    .lx-sticky-bar { display: none !important; }
}

/* ── Progress bar ─────────────────────────────────────────────────────────── */
.lx-progress-bar {
    padding: 16px 0 24px;
    z-index: var(--lxz-injected);
}
.lx-progress__list {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
}
.lx-progress__step {
    display: flex;
    align-items: center;
    flex: 1;
    position: relative;
    color: var(--lx-muted);
    font-size: 13px;
}
.lx-progress__step::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--lx-border);
    margin: 0 8px;
}
.lx-progress__step:last-child::after { display: none; }

.lx-progress__step--active  { color: var(--lx-primary); }
.lx-progress__step--done    { color: #2e7d32; }

.lx-progress__num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--lx-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    margin-right: 6px;
    flex-shrink: 0;
    transition: background var(--lx-transition), color var(--lx-transition);
}
.lx-progress__step--active .lx-progress__num  { background: var(--lx-primary); color: #fff; }
.lx-progress__step--done   .lx-progress__num  { background: #2e7d32; color: #fff; }

.lx-progress__label { white-space: nowrap; }

/* ── Trust bar ────────────────────────────────────────────────────────────── */
.lx-trust-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: #f0f9fa;
    border: 1px solid #cce8ed;
    border-radius: 7px;
    padding: 10px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #2d5f6a;
    font-weight: 500;
}
.lx-trust__phone {
    color: var(--lx-primary);
    font-weight: 700;
    text-decoration: none;
    margin-left: auto;
}
.lx-trust__phone:hover { text-decoration: underline; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .lx-modal__box { padding: 24px 18px 18px; }
    .lx-slide-in__inner { width: calc(100vw - 32px); right: 0; }
    .lx-slide-in { right: 16px; bottom: 16px; }
    .lx-sticky-bar { gap: 8px; padding: 10px 14px; }
    .lx-sticky-bar__name { max-width: 120px; }
    .lx-progress__label { display: none; }
}
