/* Quick Enquiry — bottom dock + simple sheet */
:root {
    --qe-navy: #071428;
    --qe-orange: #e87722;
    --qe-gold: #f4b942;
    --qe-sand: #f7f3ec;
    --qe-ink: #122033;
    --qe-muted: #5c6b7a;
}

body.has-qe-dock {
    padding-bottom: 96px;
}

body:not(.has-qe-selection) {
    padding-bottom: 0;
}

/* Bottom-center dock */
.qe-dock {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 1040;
    width: min(92vw, 420px);
    pointer-events: none;
}

.qe-dock[hidden] {
    display: none !important;
}

.qe-dock.is-visible {
    display: block;
}

.qe-dock-inner {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.qe-interest {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(7, 20, 40, 0.08);
    box-shadow: 0 14px 36px rgba(7, 20, 40, 0.16);
    backdrop-filter: blur(10px);
    animation: qePop 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.qe-interest[hidden] {
    display: none !important;
}

.qe-interest-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e87722, #f4b942);
    color: #071428;
    flex-shrink: 0;
}

.qe-interest-copy {
    min-width: 0;
    flex: 1;
}

.qe-interest-copy small {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--qe-muted);
}

.qe-interest-copy strong {
    display: block;
    font-size: 0.9rem;
    color: var(--qe-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qe-interest-clear {
    border: 0;
    background: #f0f3f7;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #6b7785;
    font-size: 1.1rem;
    line-height: 1;
}

.qe-dock-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 14px 22px;
    font-family: "Outfit", "PT Sans", sans-serif;
    font-weight: 800;
    font-size: 0.98rem;
    letter-spacing: 0.02em;
    color: #071428;
    background: linear-gradient(135deg, #e87722 0%, #f4b942 100%);
    box-shadow:
        0 12px 28px rgba(232, 119, 34, 0.4),
        0 0 0 6px rgba(232, 119, 34, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.2s ease;
}

.qe-dock-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow:
        0 16px 34px rgba(232, 119, 34, 0.48),
        0 0 0 7px rgba(232, 119, 34, 0.14);
    color: #071428;
}

.qe-dock-btn-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(7, 20, 40, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Modal sheet */
.qe-dialog {
    max-width: 420px;
    margin: 1.2rem auto;
}

.qe-sheet {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(7, 20, 40, 0.28);
    background:
        radial-gradient(circle at 100% 0%, rgba(232, 119, 34, 0.12), transparent 40%),
        #fff;
}

.qe-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f3f5f8;
    color: #5c6b7a;
    font-size: 1.35rem;
    line-height: 1;
}

.qe-panel {
    padding: 28px 24px 22px;
}

.qe-panel[hidden] {
    display: none !important;
}

.qe-head-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(232, 119, 34, 0.12);
    color: var(--qe-orange);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.qe-title {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--qe-navy);
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.qe-sub {
    margin: 0 0 18px;
    color: var(--qe-muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.qe-context {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--qe-sand);
    border: 1px solid #eadfd0;
}

.qe-context[hidden] {
    display: none !important;
}

.qe-context-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--qe-muted);
    margin-bottom: 8px;
}

.qe-context-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qe-context-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 8px 8px 8px 10px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #eadfd0;
}

.qe-context-type {
    flex-shrink: 0;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--qe-navy);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.qe-context-item strong {
    flex: 1;
    min-width: 0;
    font-size: 0.9rem;
    color: var(--qe-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qe-context-remove {
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: #f0f3f7;
    color: #6b7785;
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}

.qe-context-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.qe-context-row strong {
    font-size: 0.95rem;
    color: var(--qe-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card select button */
.qe-selectable {
    position: relative;
}

.qe-select-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 80;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    min-height: 36px;
    font-family: "Outfit", "PT Sans", sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    color: #071428;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 20px rgba(7, 20, 40, 0.18);
    backdrop-filter: blur(8px);
    cursor: pointer;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    isolation: isolate;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

/* Clicks always register on the button box, not child icon/text */
.qe-select-btn > * {
    pointer-events: none !important;
}

/* Keep above card overlays / media fades / category ::after */
.at-pkg-card > .qe-select-btn,
.at-gd-card > .qe-select-btn,
.at-pkg-media .qe-select-btn,
.at-gd-media .qe-select-btn,
.sr-card-media .qe-select-btn,
.at-cat-tile .qe-select-btn,
.at-dest-card .qe-select-btn,
.trending-destination-card .qe-select-btn,
a.sr-card .qe-select-btn {
    z-index: 80;
}

/* Media links sit under the select control */
.at-pkg-card > .at-pkg-media,
.at-gd-card > .at-gd-media {
    position: relative;
    z-index: 1;
}

.at-pkg-media-fade,
.destination-overlay,
.at-dest-shade {
    pointer-events: none !important;
}

.qe-select-btn:hover {
    transform: translateY(-1px);
    background: #fff;
}

.qe-select-btn.is-selected {
    color: #fff;
    background: linear-gradient(135deg, #e87722, #f4b942);
    color: #071428;
}

.qe-select-btn i {
    font-size: 0.72rem;
}

.at-dest-card.qe-selectable .qe-select-btn,
.at-cat-tile.qe-selectable .qe-select-btn,
a.sr-card.qe-selectable .qe-select-btn {
    top: 12px;
    right: 12px;
}

.at-pkg-media,
.at-gd-media,
.sr-card-media {
    position: relative;
}

.at-dest-card.is-qe-selected,
.at-pkg-card.is-qe-selected,
.at-gd-card.is-qe-selected,
.at-cat-tile.is-qe-selected,
.sr-card.is-qe-selected {
    outline: 2px solid #e87722;
    outline-offset: 2px;
}

.qe-cta-disabled {
    opacity: 0.55;
    pointer-events: none;
}

.qe-field {
    margin-bottom: 16px;
}

.qe-field label {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--qe-ink);
    margin-bottom: 8px;
}

.qe-field label span {
    color: #e11d48;
}

.qe-input {
    width: 100%;
    border: 1.5px solid #e4e9ef;
    border-radius: 14px;
    padding: 13px 14px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--qe-ink);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.qe-input:focus {
    outline: none;
    border-color: rgba(232, 119, 34, 0.7);
    box-shadow: 0 0 0 4px rgba(232, 119, 34, 0.15);
}

.qe-nights {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    gap: 8px;
    align-items: center;
}

.qe-nights input {
    text-align: center;
    font-weight: 800;
    font-size: 1.2rem;
    border: 1.5px solid #e4e9ef;
    border-radius: 14px;
    padding: 12px;
    color: var(--qe-navy);
}

.qe-nights input:focus {
    outline: none;
    border-color: rgba(232, 119, 34, 0.7);
    box-shadow: 0 0 0 4px rgba(232, 119, 34, 0.15);
}

.qe-stepper {
    height: 48px;
    border: 0;
    border-radius: 14px;
    background: var(--qe-sand);
    color: var(--qe-navy);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
}

.qe-stepper:hover {
    background: #efe6d8;
}

.qe-chips {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.qe-chips button {
    border: 1px solid #e4e9ef;
    background: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--qe-muted);
}

.qe-chips button.is-active,
.qe-chips button:hover {
    border-color: rgba(232, 119, 34, 0.55);
    color: var(--qe-orange);
    background: rgba(232, 119, 34, 0.08);
}

.qe-phone {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #e4e9ef;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.qe-phone:focus-within {
    border-color: rgba(232, 119, 34, 0.7);
    box-shadow: 0 0 0 4px rgba(232, 119, 34, 0.15);
}

.qe-phone-prefix {
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    background: var(--qe-sand);
    color: var(--qe-navy);
    font-weight: 800;
    font-size: 0.92rem;
    border-right: 1px solid #eadfd0;
}

.qe-phone .qe-input {
    border: 0;
    border-radius: 0;
    box-shadow: none !important;
}

.qe-msg {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
}

.qe-msg.is-error {
    background: #fef2f2;
    color: #b91c1c;
}

.qe-msg[hidden] {
    display: none !important;
}

.qe-submit {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 14px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1rem;
    font-family: inherit;
    color: #071428;
    background: linear-gradient(135deg, #e87722, #f4b942);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.qe-submit:hover {
    filter: brightness(1.03);
    transform: translateY(-1px);
    color: #071428;
}

.qe-submit:disabled {
    opacity: 0.7;
    transform: none;
}

.qe-submit-ghost {
    background: var(--qe-sand);
    color: var(--qe-navy);
}

.qe-note {
    margin: 12px 0 0;
    text-align: center;
    font-size: 0.78rem;
    color: #8a97a6;
}

.qe-success {
    text-align: center;
    padding-top: 40px;
    padding-bottom: 32px;
}

.qe-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e87722, #f4b942);
    color: #071428;
    font-size: 1.5rem;
    box-shadow: 0 12px 28px rgba(232, 119, 34, 0.35);
}

@keyframes qePop {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Keep floats clear of center dock on small screens */
@media (max-width: 575px) {
    .qe-dock {
        bottom: 18px;
        width: min(94vw, 380px);
    }

    body.has-qe-selection {
        padding-bottom: 110px;
    }

    body.has-qe-selection .whatsapp-float {
        bottom: 92px !important;
    }

    body.has-qe-selection .back-to-top {
        bottom: 156px !important;
    }

    .qe-panel {
        padding: 24px 18px 18px;
    }

    .qe-select-btn span {
        display: none;
    }

    .qe-select-btn {
        width: 36px;
        height: 36px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .qe-interest,
    .qe-dock-btn,
    .qe-submit {
        animation: none;
        transition: none;
    }
}
