/* ════════════════════════════════════════════════════════════
   Pro Art Photographers — Contact Widget (theme-aware)

   Colors follow the active hub via theme.php variables:
     --pa-accent / --pa-accent-dark / --pa-accent-light
     --pa-on-accent / --pa-on-accent-dim / --pa-on-accent-xdim
     --pa-accent-pale / --pa-accent-mid
     --pa-text / --pa-text-dim / --pa-text-mid / --pa-cream
   WhatsApp link uses --pa-wa-green (always #25D366 per brand rule).
   ════════════════════════════════════════════════════════════ */

.aqua-widget, .aqua-widget *, .aqua-widget *::before, .aqua-widget *::after { box-sizing: border-box; }
.aqua-widget { font-family: 'DM Sans', system-ui, sans-serif; color: var(--pa-text, #1A1A1A); }

/* ── Sticky bar (stage 1) ─────────────────────────────────── */
.aqua-widget__bar {
    position: fixed; bottom: 20px; right: 20px; left: auto;
    max-width: 380px;
    background: linear-gradient(135deg, var(--pa-accent-dark, #9A7A52) 0%, var(--pa-accent, #B8956A) 100%);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    padding: 10px 44px 10px 10px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, .28), 0 0 0 1px rgba(0, 0, 0, .04);
    opacity: 0; transform: translateY(14px) scale(.96); pointer-events: none;
    transition: opacity .4s cubic-bezier(.4,0,.2,1),
                transform .4s cubic-bezier(.4,0,.2,1),
                bottom .35s cubic-bezier(.4,0,.2,1);
    z-index: 9990; backdrop-filter: blur(6px);
}
.aqua-widget__bar--show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.aqua-widget__bar--minimized { opacity: 0; transform: translateY(10px) scale(.94); pointer-events: none; }

/* Ocultar todo el widget mientras el menú mobile full-screen está abierto
   (el bar es fixed z-index:9990 y de lo contrario tapa el menú) */
body.pa-mmenu-open .aqua-widget { display: none; }

.aqua-widget__bar-close {
    position: absolute; top: 50%; right: 14px; transform: translateY(-50%);
    width: 24px; height: 24px; padding: 0; line-height: 1;
    background: rgba(255, 255, 255, .12); border: none; border-radius: 50%;
    color: var(--pa-on-accent-dim, rgba(255,255,255,.85));
    font-size: 1rem; cursor: pointer;
    transition: background .2s, color .2s; z-index: 2;
}
.aqua-widget__bar-close:hover {
    background: rgba(255, 255, 255, .24);
    color: var(--pa-on-accent, #fff);
}

.aqua-widget__bar-btn {
    display: flex; align-items: center; gap: 12px;
    background: none; border: none; padding: 0; margin: 0;
    cursor: pointer; width: 100%; text-align: left;
    -webkit-tap-highlight-color: transparent;
}

.aqua-widget__avatar {
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    display: flex; align-items: center; justify-content: center;
    color: var(--pa-on-accent, #fff);
    font-size: 1.15rem; position: relative;
    animation: aquaWidgetPulse 2.6s ease-in-out infinite;
}
@keyframes aquaWidgetPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .35); }
    50%      { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
}

.aqua-widget__dot {
    position: absolute; top: 1px; right: 1px;
    width: 11px; height: 11px; border-radius: 50%;
    border: 2px solid var(--pa-accent-dark, #9A7A52);
}
.aqua-widget__dot--on  { background: #4ade80; box-shadow: 0 0 8px rgba(74, 222, 128, .6); }
.aqua-widget__dot--off { background: #f59e0b; }

.aqua-widget__bar-text {
    display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1;
    color: var(--pa-on-accent, #fff);
}
.aqua-widget__msg {
    font-size: .92rem; font-weight: 600; line-height: 1.25;
    letter-spacing: .1px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.aqua-widget__reply {
    font-size: .72rem; font-weight: 400;
    color: var(--pa-on-accent-dim, rgba(255,255,255,.85));
    display: flex; align-items: center; gap: 5px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.aqua-widget__reply::before {
    content: ''; width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0;
    background: currentColor;
}

/* ── Panel (stage 2) ──────────────────────────────────────── */
.aqua-widget__panel {
    position: fixed; bottom: 20px; right: 20px;
    width: 380px; max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .22), 0 0 0 1px rgba(0, 0, 0, .04);
    overflow: hidden;
    opacity: 0; transform: translateY(24px) scale(.92); pointer-events: none;
    transition: opacity .35s cubic-bezier(.4,0,.2,1),
                transform .35s cubic-bezier(.4,0,.2,1),
                bottom .35s cubic-bezier(.4,0,.2,1);
    z-index: 9991;
}
.aqua-widget__panel--open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

/* Spotlight overlay — dim & blur the page while the panel is open */
.aqua-widget__overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 26, 18, 0.42);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    z-index: 9985;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s cubic-bezier(.4,0,.2,1);
}
body.aqua-widget-spotlight .aqua-widget__overlay { opacity: 1; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
    .aqua-widget__overlay { transition: none; }
}

/* Header */
.aqua-widget__header {
    position: relative;
    background: linear-gradient(135deg, var(--pa-accent-dark, #9A7A52) 0%, var(--pa-accent, #B8956A) 100%);
    color: var(--pa-on-accent, #fff);
    padding: 22px 56px 30px 24px;
}
.aqua-widget__header-inner { position: relative; z-index: 1; }
.aqua-widget__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem; font-weight: 600; margin: 0 0 4px;
    letter-spacing: -.3px; line-height: 1.15;
    color: var(--pa-on-accent, #fff);
}
.aqua-widget__subtitle {
    font-size: .8rem; font-weight: 400; margin: 0;
    color: var(--pa-on-accent-dim, rgba(255,255,255,.85));
    letter-spacing: .2px;
}
.aqua-widget__close {
    position: absolute; top: 14px; right: 12px;
    width: 36px; height: 36px; padding: 0;
    background: rgba(255, 255, 255, .14); border: none; border-radius: 50%;
    color: var(--pa-on-accent, #fff);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, color .2s;
    z-index: 5;
}
.aqua-widget__close:hover  { background: rgba(255, 255, 255, .26); }
.aqua-widget__close:active { background: rgba(255, 255, 255, .34); }
.aqua-widget__close svg { pointer-events: none; transition: transform .2s; }
.aqua-widget__close:hover svg { transform: rotate(90deg); }
.aqua-widget__wave {
    position: absolute; left: 0; right: 0; bottom: -1px;
    width: 100%; height: 20px; display: block;
}

/* Body */
.aqua-widget__body {
    padding: 18px 24px 22px;
    max-height: calc(100vh - 180px); overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, .2) transparent;
}
.aqua-widget__body::-webkit-scrollbar { width: 6px; }
.aqua-widget__body::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, .2); border-radius: 3px; }

/* Welcome bubble */
.aqua-widget__welcome {
    background: var(--pa-accent-pale, rgba(0,0,0,.04));
    color: var(--pa-text, #1A1A1A);
    font-size: .82rem; line-height: 1.4;
    padding: 8px 10px;
    border-radius: 8px;
    margin: 0 0 10px;
    border: 1px solid var(--pa-accent-mid, rgba(0,0,0,.08));
}

/* Error banner */
.aqua-widget__error {
    position: relative;
    background: #fde7e7; color: #8a1a1a;
    font-size: .82rem; line-height: 1.4;
    padding: 10px 32px 10px 14px;
    border-radius: 10px; margin-bottom: 14px;
    border: 1px solid rgba(138, 26, 26, .15);
    animation: aquaWidgetSlideDown .25s ease-out;
}
@keyframes aquaWidgetSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.aqua-widget__error-close {
    position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
    width: 22px; height: 22px; padding: 0;
    background: none; border: none; color: inherit; opacity: .6;
    font-size: 1rem; cursor: pointer; border-radius: 50%;
    transition: opacity .2s, background .2s;
}
.aqua-widget__error-close:hover { opacity: 1; background: rgba(138, 26, 26, .08); }

/* ── Step indicator (1 · Your session  →  2 · Your details) ─── */
.aqua-widget__steps { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.aqua-widget__step-pip { display: flex; align-items: center; gap: 7px; }
.aqua-widget__step-pip-num {
    position: relative;
    width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .72rem; font-weight: 600;
    background: var(--pa-accent-pale, rgba(0,0,0,.06));
    color: var(--pa-text-dim, #8B8680);
    border: 1px solid var(--pa-accent-mid, rgba(0,0,0,.12));
    transition: background .2s, color .2s, border-color .2s;
}
.aqua-widget__step-pip-lbl { font-size: .74rem; color: var(--pa-text-dim, #8B8680); transition: color .2s; }
.aqua-widget__steps-line { flex: 1; height: 1px; background: var(--pa-accent-mid, rgba(0,0,0,.12)); }
.aqua-widget__step-pip--active .aqua-widget__step-pip-num,
.aqua-widget__step-pip--done .aqua-widget__step-pip-num {
    background: var(--pa-accent, #B8956A); color: var(--pa-on-accent, #fff);
    border-color: var(--pa-accent, #B8956A);
}
.aqua-widget__step-pip--active .aqua-widget__step-pip-lbl { color: var(--pa-text, #1A1A1A); font-weight: 600; }
/* Completed step 1 shows a check instead of the "1" */
.aqua-widget__step-pip--done .aqua-widget__step-pip-num { color: transparent; }
.aqua-widget__step-pip--done .aqua-widget__step-pip-num::after {
    content: ''; position: absolute; inset: 0;
    background: var(--pa-on-accent, #fff);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='black'/%3E%3C/svg%3E") center/12px no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='black'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Form */
.aqua-widget__form { display: flex; flex-direction: column; gap: 14px; }

/* Each step is its own flex column; hidden one is fully removed from flow */
.aqua-widget__step { display: flex; flex-direction: column; gap: 14px; }
.aqua-widget__step[hidden] { display: none; }
.aqua-widget__step-hint { margin: 0 0 2px; font-size: .8rem; line-height: 1.4; color: var(--pa-text-mid, #52504C); }

/* Step actions row (Back + Send) */
.aqua-widget__actions { display: flex; align-items: stretch; gap: 8px; }
.aqua-widget__actions .aqua-widget__submit { flex: 1; margin-top: 0; }
.aqua-widget__back {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    flex: 0 0 auto; padding: 13px 18px;
    background: transparent;
    border: 1.5px solid var(--pa-accent-mid, rgba(0,0,0,.16));
    border-radius: 999px;
    font-family: inherit; font-size: .9rem; font-weight: 600;
    color: var(--pa-text-mid, #52504C); cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
}
.aqua-widget__back:hover { border-color: var(--pa-accent, #B8956A); color: var(--pa-text, #1A1A1A); }
.aqua-widget__back svg { flex-shrink: 0; }

/* Implicit consent line (under the Send button) */
.aqua-widget__consent { margin: 12px 0 0; font-size: .72rem; line-height: 1.5; text-align: center; color: var(--pa-text-dim, #8B8680); }
.aqua-widget__consent a { color: var(--pa-accent-dark, #9A7A52); text-decoration: underline; }
.aqua-widget__consent a:hover { color: var(--pa-accent, #B8956A); }

.aqua-widget__field { position: relative; }
.aqua-widget__field input,
.aqua-widget__field textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(0, 0, 0, .12);
    padding: 20px 0 8px;
    font-family: inherit; font-size: .92rem;
    color: var(--pa-text, #1A1A1A);
    outline: none; resize: none;
    transition: border-color .25s;
}
.aqua-widget__field textarea { min-height: 44px; max-height: 120px; }
/* Prevent iOS focus-zoom (needs >= 16px) on touch widths */
@media (max-width: 768px) {
  .aqua-widget__field input,
  .aqua-widget__field textarea { font-size: 16px; }
}
.aqua-widget__field input::placeholder,
.aqua-widget__field textarea::placeholder { color: transparent; }
/* Step-1 message prompt: keep the label lifted and show the example placeholder
   from the start, so visitors see WHAT to write without clicking first. */
.aqua-widget__field--prompt label {
    transform: translateY(-16px) scale(.78);
    color: var(--pa-accent-dark, #9A7A52); font-weight: 500;
}
.aqua-widget__field--prompt textarea::placeholder { color: var(--pa-text-dim, #8B8680); opacity: 1; }
/* Microcopy hint under a field (e.g. the "share your date" recommendation) */
.aqua-widget__field-hint { margin: 7px 0 0; font-size: .72rem; line-height: 1.45; color: var(--pa-text-dim, #8B8680); }

.aqua-widget__field label {
    position: absolute; left: 0; top: 20px;
    font-size: .92rem;
    color: var(--pa-text-dim, #8B8680);
    pointer-events: none;
    transition: transform .22s cubic-bezier(.4,0,.2,1), color .22s;
    transform-origin: left top;
}
.aqua-widget__field input:focus ~ label,
.aqua-widget__field textarea:focus ~ label,
.aqua-widget__field input:not(:placeholder-shown) ~ label,
.aqua-widget__field textarea:not(:placeholder-shown) ~ label {
    transform: translateY(-16px) scale(.78);
    color: var(--pa-accent-dark, #9A7A52); font-weight: 500;
}
.aqua-widget__field input:focus,
.aqua-widget__field textarea:focus { border-bottom-color: var(--pa-accent, #B8956A); }

.aqua-widget__field input[aria-invalid="true"],
.aqua-widget__field textarea[aria-invalid="true"] { border-bottom-color: #c54b4b; }
.aqua-widget__field input[aria-invalid="true"] ~ label,
.aqua-widget__field textarea[aria-invalid="true"] ~ label { color: #c54b4b; }

/* Date field: el <input type="date"> nativo siempre muestra un formato → label flotado permanente */
.aqua-widget__field--date label {
    transform: translateY(-16px) scale(.78);
    color: var(--pa-accent-dark, #9A7A52); font-weight: 500;
}
/* The date is a custom picker (pa-datepicker): make it READ as clickable —
   visible placeholder, a calendar icon (hub accent) and a pointer cursor. */
.aqua-widget__field--date { position: relative; }
.aqua-widget__field--date input { cursor: pointer; padding-right: 26px; }
.aqua-widget__field--date input::placeholder { color: var(--pa-text-dim, #8B8680); opacity: 1; }
.aqua-widget__field--date::after {
    content: ''; position: absolute; right: 2px; top: 22px;
    width: 18px; height: 18px; pointer-events: none;
    background: var(--pa-accent, #B8956A);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M7 2a1 1 0 0 1 1 1v1h8V3a1 1 0 0 1 2 0v1h1a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1V3a1 1 0 0 1 1-1zM5 9v10h14V9H5z'/%3E%3C/svg%3E") center/contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M7 2a1 1 0 0 1 1 1v1h8V3a1 1 0 0 1 2 0v1h1a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1V3a1 1 0 0 1 1-1zM5 9v10h14V9H5z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.aqua-widget__field-err {
    display: block; font-size: .72rem; color: #c54b4b;
    margin-top: 4px; min-height: 0;
    max-height: 0; overflow: hidden;
    transition: max-height .22s ease-out;
}
.aqua-widget__field-err.show { max-height: 30px; padding-top: 2px; }

/* Email domain autocomplete dropdown */
.aqua-widget__field--suggest { position: relative; }
.aqua-widget__suggest {
    position: absolute; z-index: 30; left: 0; right: 0; top: 100%;
    margin-top: 4px; background: #fff;
    border: 1px solid rgba(0, 0, 0, .10); border-radius: 10px;
    box-shadow: 0 12px 30px rgba(13, 26, 18, .14); overflow: hidden;
}
.aqua-widget__suggest-item {
    display: block; width: 100%; text-align: left;
    background: transparent; border: none;
    padding: 9px 14px; font-family: inherit; font-size: .85rem;
    color: var(--pa-text, #1A1A1A); cursor: pointer;
    transition: background .15s;
}
.aqua-widget__suggest-item:hover,
.aqua-widget__suggest-item:focus { background: var(--pa-accent-pale, rgba(0, 0, 0, .05)); outline: none; }

/* ── Phone verifier (pa-phone) ─────────────────────────────────
   Adopts the widget's underline language; country chip sits inline
   to the left of the input, sharing the bottom border. Label floats
   permanently (the country chip means the field is never "empty"). */
.aqua-pf { display: flex; flex-wrap: wrap; align-items: flex-end; position: relative; }
.aqua-pf > label {
    order: -1; flex: 0 0 100%;
    position: static; transform: none; pointer-events: none;
    font-size: .72rem; font-weight: 500;
    color: var(--pa-accent-dark, #9A7A52);
    margin-bottom: 0;
}
/* The phone label is a fixed block above the field — neutralize the widget's
   generic floating-label transform (which is more specific) on focus/typing. */
.aqua-pf input[type="tel"]:focus ~ label,
.aqua-pf input[type="tel"]:not(:placeholder-shown) ~ label {
    transform: none; font-weight: 500;
}
.aqua-pf__cc {
    display: inline-flex; align-items: center; gap: 5px;
    background: transparent; border: none;
    border-bottom: 2px solid rgba(0, 0, 0, .12);
    padding: 6px 8px 8px 0; margin-right: 8px;
    font-family: inherit; font-size: .92rem; color: var(--pa-text, #1A1A1A);
    cursor: pointer; transition: border-color .25s;
}
.aqua-pf__cc:hover { border-bottom-color: var(--pa-accent, #B8956A); }
.aqua-pf__flag { font-size: 1.15rem; line-height: 1; }
.aqua-pf__dial { font-weight: 500; }
.aqua-pf__chev { font-size: .7rem; color: var(--pa-text-dim, #8B8680); }
.aqua-pf input[type="tel"] { flex: 1 1 auto; width: auto; min-width: 0; padding: 6px 0 8px; }
.aqua-pf input[type="tel"]::placeholder { color: rgba(0,0,0,.28); }
.aqua-pf--filled input[type="tel"][aria-invalid="false"] { border-bottom-color: var(--pa-accent, #B8956A); }
.aqua-pf input[type="tel"][aria-invalid="true"] { border-bottom-color: #c54b4b; }

.aqua-pf__status {
    flex: 0 0 100%; font-size: .72rem; margin-top: 3px; min-height: .9rem;
    display: flex; align-items: center; gap: 6px; color: var(--pa-text-dim, #8B8680);
}
.aqua-pf__status::before { content: ''; width: 14px; height: 14px; border-radius: 50%; display: none; }
.aqua-pf__status--ok  { color: #1b7d4b; }
.aqua-pf__status--ok::before  { display: inline-block; background: #239D5F url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2L5 8.5 9.5 3.5' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat; }
.aqua-pf__status--warn { color: #b06a1e; }
.aqua-pf__status--err  { color: #c54b4b; }
.aqua-pf__status--warn::before, .aqua-pf__status--err::before {
    display: inline-block; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1L11 10.5H1z' fill='black'/%3E%3C/svg%3E") center/12px no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1L11 10.5H1z' fill='black'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Country popover — lives in <body>, positioned fixed by JS (flips up when
   there's no room below) so the overflow:hidden panel never clips it. */
.aqua-pf__pop {
    position: fixed; z-index: 9999; width: 290px; max-width: calc(100vw - 16px);
    background: #fff; border: 1px solid rgba(0,0,0,.10);
    border-radius: 12px; box-shadow: 0 16px 40px rgba(13,26,18,.16); overflow: hidden;
}
.aqua-pf__search { padding: 10px; border-bottom: 1px solid rgba(0,0,0,.08); }
.aqua-pf__search input {
    width: 100%; border: 1.5px solid rgba(0,0,0,.12); border-radius: 9px;
    padding: 8px 10px; font-family: inherit; font-size: .85rem; color: var(--pa-text, #1A1A1A); outline: none;
}
.aqua-pf__search input:focus { border-color: var(--pa-accent, #B8956A); }
.aqua-pf__list { max-height: 240px; overflow-y: auto; padding-bottom: 4px; }
.aqua-pf__group { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
    color: var(--pa-text-dim, #8B8680); padding: 9px 14px 3px; }
.aqua-pf__group + .aqua-pf__item { padding-top: 4px; }
.aqua-pf__item {
    display: flex; align-items: center; gap: 10px; width: 100%;
    background: transparent; border: none; padding: 6px 14px; cursor: pointer; text-align: left;
    font-family: inherit; color: var(--pa-text, #1A1A1A);
}
.aqua-pf__item:hover { background: rgba(0,0,0,.04); }
.aqua-pf__item-flag { font-size: 1.05rem; }
.aqua-pf__item-name { flex: 1; font-size: .85rem; }
.aqua-pf__item-dial { font-size: .78rem; color: var(--pa-text-dim, #8B8680); background: rgba(0,0,0,.05);
    border-radius: 20px; padding: 2px 9px; font-weight: 500; }
.aqua-pf__more {
    display: flex; align-items: center; gap: 7px; width: 100%;
    background: transparent; border: none; cursor: pointer; text-align: left;
    padding: 9px 14px; margin-top: 2px;
    font-family: inherit; font-size: .8rem; font-weight: 500;
    color: var(--pa-accent-dark, #9A7A52);
}
.aqua-pf__more::before { content: '+'; font-size: 1rem; line-height: 1; opacity: .8; }
.aqua-pf__more:hover { background: rgba(0,0,0,.04); }
.aqua-pf__empty { padding: 14px; font-size: .82rem; color: var(--pa-text-dim, #8B8680); }

/* Preferred channel — question + compact text chips flow inline (chips use
   display:contents so each chip wraps individually beside the question,
   instead of the whole group dropping to its own line). */
.aqua-pf__channel { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 10px; }
.aqua-pf__channel-q { font-size: .74rem; font-weight: 500; color: var(--pa-text, #1A1A1A); margin: 0; flex: 0 0 auto; }
.aqua-pf__chips { display: flex; gap: 6px; flex: 0 1 auto; }
.aqua-pf__chip {
    background: transparent; border: 1.5px solid rgba(0,0,0,.14); border-radius: 14px;
    padding: 5px 11px; font-family: inherit; font-size: .72rem; line-height: 1; color: var(--pa-text, #1A1A1A);
    cursor: pointer; transition: border-color .18s, background .18s, color .18s;
}
.aqua-pf__chip:hover { border-color: var(--pa-accent, #B8956A); }
.aqua-pf__chip.is-active { border-color: var(--pa-accent, #B8956A); background: var(--pa-accent, #B8956A); color: var(--pa-on-accent, #fff); }
.aqua-pf__chip--wa.is-active { border-color: #239D5F; background: #239D5F; color: #fff; }

/* ── In-panel reader (slides over the form; form state preserved) ── */
.aqua-widget__reader {
    position: absolute; inset: 0; z-index: 5;
    background: #fff; border-radius: 18px;
    display: flex; flex-direction: column;
    transform: translateY(100%); visibility: hidden;
    transition: transform .32s cubic-bezier(.4,0,.2,1), visibility 0s linear .32s;
}
.aqua-widget__reader.is-open { transform: translateY(0); visibility: visible; transition: transform .32s cubic-bezier(.4,0,.2,1), visibility 0s linear 0s; }
.aqua-widget__reader-head {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 18px; border-bottom: 1px solid rgba(0,0,0,.08); flex: 0 0 auto;
}
.aqua-widget__reader-back {
    display: inline-flex; align-items: center; gap: 5px;
    background: transparent; border: none; cursor: pointer;
    font-family: inherit; font-size: .82rem; font-weight: 500;
    color: var(--pa-accent-dark, #9A7A52); padding: 4px 6px 4px 0;
}
.aqua-widget__reader-back:hover { color: var(--pa-accent, #B8956A); }
.aqua-widget__reader-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.15rem; font-weight: 600; margin: 0; color: var(--pa-text, #1A1A1A);
}
.aqua-widget__reader-body {
    flex: 1 1 auto; overflow-y: auto; padding: 16px 20px 26px;
    font-size: .82rem; line-height: 1.58; color: var(--pa-text, #1A1A1A);
    scrollbar-width: thin; scrollbar-color: rgba(0,0,0,.2) transparent;
}
/* Legal pages wrap their content in a Bootstrap .col-lg-8 (66% on desktop) —
   inside this narrow reader that only wastes the right third, so make the
   imported column fill the full reader width on every screen size. */
.aqua-widget__reader-body > [class*="col-"] {
    width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important;
    padding-left: 0; padding-right: 0; margin: 0;
}
.aqua-widget__reader-body h1, .aqua-widget__reader-body h2, .aqua-widget__reader-body h3 {
    font-family: inherit; font-size: .9rem; font-weight: 600; margin: 18px 0 6px; color: var(--pa-text, #1A1A1A);
}
.aqua-widget__reader-body h1:first-child, .aqua-widget__reader-body h2:first-child { margin-top: 0; }
.aqua-widget__reader-body p { margin: 0 0 10px; }
.aqua-widget__reader-body ul, .aqua-widget__reader-body ol { margin: 0 0 12px; padding-left: 18px; }
.aqua-widget__reader-body li { margin-bottom: 6px; }
.aqua-widget__reader-body a { color: var(--pa-accent-dark, #9A7A52); text-decoration: underline; }
.aqua-widget__reader-body .pa-legal__lead { font-size: .85rem; }
.aqua-widget__reader-body .pa-legal__updated { font-size: .72rem; color: var(--pa-text-dim, #8B8680); margin-bottom: 12px; }
.aqua-widget__reader-loading, .aqua-widget__reader-error { color: var(--pa-text-dim, #8B8680); font-size: .82rem; padding: 8px 0; }
.aqua-widget__reader-error a { color: var(--pa-accent-dark, #9A7A52); }

/* Honeypot — invisible to humans, visible to dumb bots */
.aqua-widget__hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* GDPR */
.aqua-widget__gdpr {
    display: flex; align-items: flex-start; gap: 9px;
    font-size: .76rem; color: var(--pa-text-mid, #52504C); line-height: 1.4;
    cursor: pointer; user-select: none;
    margin-top: 4px;
}
.aqua-widget__gdpr input[type="checkbox"] {
    position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none;
}
.aqua-widget__gdpr-box {
    width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px;
    border: 1.5px solid rgba(0, 0, 0, .28);
    border-radius: 4px; background: #fff;
    display: flex; align-items: center; justify-content: center;
    color: transparent;
    transition: background .2s, border-color .2s, color .2s;
}
.aqua-widget__gdpr input:checked + .aqua-widget__gdpr-box {
    background: var(--pa-accent, #B8956A);
    border-color: var(--pa-accent, #B8956A);
    color: var(--pa-on-accent, #fff);
}
.aqua-widget__gdpr input:focus-visible + .aqua-widget__gdpr-box {
    box-shadow: 0 0 0 3px var(--pa-accent-mid, rgba(0,0,0,.18));
}
.aqua-widget__gdpr a { color: var(--pa-accent-dark, #9A7A52); text-decoration: underline; }
.aqua-widget__gdpr a:hover { color: var(--pa-accent, #B8956A); }

/* Submit */
.aqua-widget__submit {
    position: relative;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 13px 20px;
    background: linear-gradient(135deg, var(--pa-accent-dark, #9A7A52), var(--pa-accent, #B8956A));
    color: var(--pa-on-accent, #fff); border: none; border-radius: 999px;
    font-family: inherit; font-size: .95rem; font-weight: 600;
    letter-spacing: .2px; cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
    transition: transform .22s cubic-bezier(.4,0,.2,1), box-shadow .22s, opacity .22s;
    margin-top: 6px;
}
.aqua-widget__submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
}
.aqua-widget__submit:hover:not(:disabled) .aqua-widget__submit-icon {
    transform: translateX(4px);
}
.aqua-widget__submit:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.aqua-widget__submit-icon { transition: transform .22s; }
.aqua-widget__submit-spinner {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.35); border-top-color: currentColor;
    display: none;
    animation: aquaWidgetSpin .8s linear infinite;
}
@keyframes aquaWidgetSpin { to { transform: rotate(360deg); } }
.aqua-widget__submit--loading .aqua-widget__submit-label,
.aqua-widget__submit--loading .aqua-widget__submit-icon { display: none; }
.aqua-widget__submit--loading .aqua-widget__submit-spinner { display: inline-block; }

/* Alt channel: WhatsApp link below the submit (ALWAYS green per brand rule) */
.aqua-widget__alt {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin: 14px 0 2px; padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, .08);
    font-size: .92rem; color: var(--pa-text-dim, #8B8680);
}
.aqua-widget__wa {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--pa-wa-green, #25d366); font-weight: 600; text-decoration: none;
    transition: color .18s ease;
}
.aqua-widget__wa:hover { color: var(--pa-wa-green-dark, #1ebe5a); text-decoration: underline; }
.aqua-widget__wa svg { flex-shrink: 0; }

/* Success */
.aqua-widget__success {
    text-align: center; padding: 28px 16px 20px;
    animation: aquaWidgetSuccessIn .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes aquaWidgetSuccessIn {
    from { opacity: 0; transform: scale(.88); }
    to   { opacity: 1; transform: scale(1); }
}
.aqua-widget__success-icon { color: var(--pa-accent, #B8956A); margin-bottom: 10px; }
.aqua-widget__success-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem; font-weight: 600; color: var(--pa-text, #1A1A1A);
    margin: 0 0 6px; letter-spacing: -.3px;
}
.aqua-widget__success-text {
    font-size: .88rem; color: var(--pa-text-mid, #52504C); margin: 0 0 18px;
}
.aqua-widget__progress {
    height: 3px; background: rgba(0, 0, 0, .08);
    border-radius: 999px; overflow: hidden; margin: 0 auto; max-width: 200px;
}
.aqua-widget__progress span {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--pa-accent, #B8956A), var(--pa-accent-light, #D4B289));
    width: 100%;
}
.aqua-widget__progress--run span {
    animation: aquaWidgetCountdown 4s linear forwards;
}
@keyframes aquaWidgetCountdown { from { width: 100%; } to { width: 0%; } }

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 540px) {
    .aqua-widget__bar {
        right: 12px; bottom: 12px; left: 12px; max-width: none;
        padding: 9px 40px 9px 9px;
    }
    .aqua-widget__bar-close { right: 10px; }
    .aqua-widget__avatar { width: 40px; height: 40px; font-size: 1.05rem; }
    .aqua-widget__msg { font-size: .88rem; }
    .aqua-widget__reply { font-size: .7rem; }
    .aqua-widget__panel {
        right: 12px; left: 12px; bottom: 12px;
        width: auto; max-width: none;
    }
    .aqua-widget__header { padding: 20px 50px 26px 20px; }
    .aqua-widget__title { font-size: 1.35rem; }
    .aqua-widget__body { padding: 16px 20px 20px; }
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .aqua-widget__avatar { animation: none; }
    .aqua-widget__bar,
    .aqua-widget__panel,
    .aqua-widget__field label,
    .aqua-widget__submit,
    .aqua-widget__submit-icon,
    .aqua-widget__close,
    .aqua-widget__error,
    .aqua-widget__success { transition: none; animation: none; }
    .aqua-widget__progress--run span { animation-duration: .1s; }
}

/* Same quiet surface as the in-page form and WhatsApp modal. Keep floating labels. */
.aqua-widget__field:not(.aqua-pf) :where(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"])),
.aqua-widget__field textarea {
    background: var(--pa-field-surface, #f8f8f6);
    border-radius: 6px 6px 0 0;
    padding-left: 12px;
    padding-right: 12px;
}
.aqua-widget__field > label { left: 12px; }
.aqua-widget__field input:focus,
.aqua-widget__field textarea:focus { background: var(--pa-field-focus-surface, #faf9f6); }
.aqua-widget__field:not(.aqua-pf).aqua-widget__field--date input:not([type="hidden"]) { padding-right: 38px; }
.aqua-widget__field--date::after { right: 12px; }
.aqua-pf .aqua-pf__cc {
    background: var(--pa-field-surface, #f8f8f6);
    padding-left: 10px;
    border-radius: 6px 0 0 0;
    margin-right: 0;
}
.aqua-pf input[type="tel"] { background: var(--pa-field-surface, #f8f8f6); padding-left: 12px; padding-right: 12px; border-radius: 0 6px 0 0; }
.aqua-pf:focus-within .aqua-pf__cc,
.aqua-pf:focus-within input[type="tel"] { background: var(--pa-field-focus-surface, #faf9f6); }
.aqua-widget__field input:disabled,
.aqua-widget__field textarea:disabled {
    background: var(--pa-field-disabled-surface, #dedbd5);
    opacity: 1;
}
/* In-page phone rows already have their own enclosing surface and padding. */
.pa-form .aqua-pf .aqua-pf__cc,
.pa-form .aqua-pf input[type="tel"] { background: transparent; }

.pa-form .aqua-pf .aqua-pf__cc { padding-left: 0; }
.pa-form .aqua-pf input[type="tel"] { padding-left: 4px; padding-right: 4px; }

/* Session date: a small, inline confirmation, shared by the three capture paths. */
.pa-date-field { min-width: 0; }
.pa-date-confirm {
    box-sizing: border-box;
    flex: 1 0 100%;
    width: 100%;
    margin: 6px 0 10px;
    padding: 9px 10px;
    border: 1px solid var(--pa-field-border, #dedbd5);
    border-radius: 6px;
    background: var(--pa-field-surface, #f8f8f6);
    color: var(--pa-text, #1a1a1a);
    font-size: .82rem;
    line-height: 1.4;
}
.pa-date-confirm .pa-date-confirm__text { margin: 0 0 5px; font: inherit; color: inherit; }
.pa-date-confirm__actions { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.pa-date-confirm__actions button {
    appearance: none;
    min-height: 44px;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.pa-date-confirm__actions .pa-date-confirm__yes { border-color: currentColor; }
.pa-date-confirm__actions .pa-date-confirm__change { text-decoration: underline; text-underline-offset: 3px; }
.pa-date-confirm__actions button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.pa-date-hint, .pa-date-confirmed {
    flex: 1 0 100%;
    margin: 5px 0 8px;
    font-size: .76rem;
    line-height: 1.4;
    color: var(--pa-text-mid, #52504c);
}
.pa-date-confirmed { font-weight: 600; }
