/* =============================================================
 * Storywalking — Quick Lead inline panel + FAB monogram
 * Brand: #311E28 (dark), #FFB400 (gold), #9F9F91 (grey)
 * Fonts: Roboto (body), PT Serif (display)
 * ============================================================= */

:root {
    --ql-dark:    #311E28;
    --ql-gold:    #FFB400;
    --ql-grey:    #9F9F91;
    --ql-paper:   #FFFFFF;
    --ql-soft:    #faf9f6;
    --ql-border:  #e2dfd9;
    --ql-shadow:  0 16px 40px rgba(49, 30, 40, 0.18),
                  0 2px 8px rgba(49, 30, 40, 0.06);
    --ql-shadow-fab: 0 8px 24px rgba(49, 30, 40, 0.25);
    --ql-radius:  14px;
    --ql-z:       9990;
    --ql-ease:    cubic-bezier(0.16, 1, 0.3, 1);
}

/* =====================================================
 * Panel
 * ===================================================== */
.ql-panel {
    position: fixed;
    right: 24px;
    bottom: 92px;
    z-index: var(--ql-z);

    width: 360px;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 120px);
    overflow-y: auto;

    background: var(--ql-paper);
    border-radius: var(--ql-radius);
    padding: 26px 24px 22px;
    box-shadow: var(--ql-shadow);

    opacity: 0;
    transform: translateY(16px) scale(0.98);
    transition: opacity 320ms var(--ql-ease),
                transform 320ms var(--ql-ease);
}
.ql-panel[hidden] { display: none; }
.ql-panel.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

body.single-tour .ql-panel { bottom: 156px; }

/* ---------- Close button (inside panel) ---------- */
.ql-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--ql-grey);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: background 160ms ease, color 160ms ease;
}
.ql-close:hover,
.ql-close:focus-visible {
    background: rgba(49, 30, 40, 0.06);
    color: var(--ql-dark);
    outline: none;
}

/* ---------- Heading ---------- */
.ql-title {
    margin: 0 0 4px;
    padding-right: 24px;
    font-family: 'PT Serif', Georgia, serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ql-dark);
}
.ql-sub {
    margin: 0 0 18px;
    font-family: 'PT Serif', Georgia, serif;
    font-style: italic;
    font-size: 13.5px;
    line-height: 1.4;
    color: var(--ql-grey);
}

/* ---------- Form ---------- */
.ql-form-wrap .wpcf7 { margin: 0; padding: 0; }
.ql-form-wrap .wpcf7-form { margin: 0; }

.ql-field { margin-bottom: 10px; }
.ql-sr {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

.ql-input {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--ql-border);
    border-radius: 8px;
    background: var(--ql-soft);
    font-family: 'Roboto', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    color: var(--ql-dark);
    transition: border-color 160ms ease,
                background 160ms ease,
                box-shadow 160ms ease;
    -webkit-appearance: none;
    appearance: none;
}
.ql-input::placeholder { color: var(--ql-grey); opacity: 1; }
.ql-input:focus {
    outline: none;
    border-color: var(--ql-gold);
    background: var(--ql-paper);
    box-shadow: 0 0 0 3px rgba(255, 180, 0, 0.18);
}
select.ql-input {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'><path fill='%239F9F91' d='M5 7L0 0h10z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

/* Honeypot */
.ql-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Submit */
.ql-submit { margin-top: 14px; }
.ql-btn,
.ql-form-wrap input[type="submit"] {
    display: block;
    width: 100%;
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    background: var(--ql-gold);
    color: var(--ql-dark);
    font-family: 'Roboto', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 160ms ease, transform 100ms ease;
    -webkit-appearance: none;
    appearance: none;
}
.ql-btn:hover,
.ql-form-wrap input[type="submit"]:hover { background: #ffc733; }
.ql-btn:active { transform: scale(0.99); }
.ql-btn:disabled,
.ql-form-wrap input[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ql-microcopy {
    margin: 10px 0 0;
    font-family: 'Roboto', system-ui, sans-serif;
    font-size: 11.5px;
    color: var(--ql-grey);
    text-align: center;
    letter-spacing: 0.02em;
}

/* CF7 response messages */
.ql-form-wrap .wpcf7-response-output {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    border-width: 1px;
    border-style: solid;
}
.ql-form-wrap .wpcf7 form.sent .wpcf7-response-output {
    background: #d3f9d8;
    border-color: #b2f2bb;
    color: #2b8a3e;
}
.ql-form-wrap .wpcf7 form.invalid .wpcf7-response-output,
.ql-form-wrap .wpcf7 form.spam .wpcf7-response-output,
.ql-form-wrap .wpcf7 form.failed .wpcf7-response-output {
    background: #ffe0e0;
    border-color: #ffc9c9;
    color: #c92a2a;
}
.ql-form-wrap .wpcf7-not-valid-tip {
    display: block;
    margin-top: 3px;
    font-size: 11.5px;
    color: #c92a2a;
}
.ql-form-wrap .wpcf7-spinner {
    margin-left: 8px;
    vertical-align: middle;
}

/* =====================================================
 * FAB (monogram S)
 * ===================================================== */
.ql-fab {
    position: fixed;
    right: 24px;
    bottom: 92px;
    z-index: var(--ql-z);

    width: 56px;
    height: 56px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--ql-dark);
    color: var(--ql-gold);
    cursor: pointer;
    box-shadow: var(--ql-shadow-fab);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    transform: translateY(8px) scale(0.85);
    transition: opacity 260ms var(--ql-ease),
                transform 260ms var(--ql-ease),
                box-shadow 200ms ease,
                background 200ms ease;

    -webkit-tap-highlight-color: transparent;
}
.ql-fab[hidden] { display: none; }
.ql-fab.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.ql-fab-letter {
    font-family: 'PT Serif', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    /* Optical centering — PT Serif S sits slightly low */
    margin-top: -2px;
}
.ql-fab:hover {
    background: #3d2632;
    box-shadow: 0 12px 30px rgba(49, 30, 40, 0.32);
    transform: translateY(-1px) scale(1.04);
}
.ql-fab:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 180, 0, 0.45),
                var(--ql-shadow-fab);
}
.ql-fab:active {
    transform: scale(0.95);
}

body.single-tour .ql-fab { bottom: 156px; }

/* =====================================================
 * Mobile
 * ===================================================== */
@media (max-width: 767px) {
    .ql-panel {
        right: 12px;
        left: 12px;
        bottom: 88px;
        width: auto;
        max-width: none;
        padding: 22px 20px 20px;
    }
    body.single-tour .ql-panel { bottom: 148px; }
    .ql-title { font-size: 19px; }

    .ql-fab {
        right: 16px;
        bottom: 88px;
        width: 52px;
        height: 52px;
    }
    .ql-fab-letter { font-size: 26px; }
    body.single-tour .ql-fab { bottom: 148px; }
}

/* =====================================================
 * Reduced motion
 * ===================================================== */
@media (prefers-reduced-motion: reduce) {
    .ql-panel, .ql-fab { transition: none !important; }
}
