@charset "UTF-8";
/* ===========================================================================
   THE QUICK ENQUIRY POPUP — REPAINTED IN THE BRAND PALETTE
   ---------------------------------------------------------------------------
   The popup is include/enquiry-pop-form.php, fetched and appended to <body>
   by assets/js/custom.js the first time anyone presses "Send Enquiry". Its
   stylesheet is assets/css/enquiry-wizard.css. BOTH ARE LIVE FILES and this
   redesign does not edit live files, so everything here is an override.

   WHY THE GENERATED REMAP DID NOT ALREADY DO THIS. palette-remap.css is built
   by scanning the theme's sheets for the OLD PALETTE's exact colours. The
   enquiry popup paints from its own private set of teals (#2e8378, #0f4247,
   #227571, #edf6f4, #d5e8e2 ...) declared as custom properties on
   #enquiryPopup, and those are not in the generator's list — so the remap
   caught only a handful of box-shadows and the urgency gradient, which is
   exactly what the owner's screenshot showed: a red batch strip on an
   otherwise mint-green form.

   HOW THIS IS DONE. The popup turned out to be driven almost entirely by
   fourteen custom properties on #enquiryPopup, so the first block simply
   redeclares them. Same selector, same weight, later sheet — it wins without
   `!important`. The blocks after it are only for the places where a colour is
   hardcoded instead of coming from a variable, and each says which.

   LOADED LAST, after text-black.css, because this is a self-contained widget
   injected into <body> and nothing else needs to win over it. Every selector
   is scoped to #enquiryPopup so it cannot reach the page behind it.

   COLOURS USED (the redesign's own tokens, static/css/section1-red.css):
     #de2a1d  brand red, set by the owner        -- fills
     #c21f12  red ink, 5.3:1 on the paper        -- red TEXT
     #b51f14  deep red                           -- pressed / gradients
     #5f1c17  red-brown ink, 9.6:1 on the paper  -- headings and labels
     #f2f0ec  the warm paper every section uses  -- the panel
     #1a1a1a / #4a4542  ink and soft ink
   =========================================================================== */

/* -- the fourteen variables ------------------------------------------------
   Every one of these is the theme's own name kept as-is; only the value
   changes, so nothing has to be renamed in the live file to match. */
#enquiryPopup {
    --teal:    #de2a1d;   /* was #2e8378 — fills: the button, the tick box   */
    --teal-d:  #5f1c17;   /* was #0f4247 — the heading / label ink           */
    --teal-d2: #b51f14;   /* was #227571                                     */
    --mint:    #fdf3f2;   /* was #f0f9f6                                     */
    --mint-2:  #f3efec;   /* was #e8f4f0 — a disabled field                  */
    --hair:    #e4dcd7;   /* was #d5e8e2 — every hairline and field border   */
    --gold:    #de2a1d;   /* was #2e8378 — the scrollbar thumb               */
    --gold-l:  #e8564a;   /* was #4ea89c — the close button's light stop     */
    --gold-d:  #b51f14;   /* was #256b62 — its dark stop, and .req           */
    --gold-dd: #8f170e;   /* was #1f5b54                                     */
    --ink:     #1a1a1a;   /* was #1e2422 — the site's ink                    */
    --muted:   #7a6f6a;   /* was #6c807c — warm, not grey-green              */
    --cream:   #f2f0ec;   /* was #edf6f4 — THE PANEL. The site's own paper.  */
    --cream-2: #fff9f8;   /* was #f7fbfa                                     */
}

/* -- the header's wash -----------------------------------------------------
   A five-stop gradient of the old mint laid over the header photograph, so
   the type stays readable on the left and the picture shows through on the
   right. Hardcoded in the live sheet, so it is restated here with the warm
   paper at identical stops — the readability is unchanged, the colour is not. */
#enquiryPopup .eq-head {
    background:
        linear-gradient(95deg,
            rgba(242, 240, 236, .88) 0,
            rgba(242, 240, 236, .72) 50%,
            rgba(242, 240, 236, .42) 68%,
            rgba(242, 240, 236, .14) 88%,
            rgba(242, 240, 236, 0) 100%),
        url(../../../assets/images/hero-banner/form-header.webp) right center/cover no-repeat;
}

/* The Yoga Alliance badge sits on the photograph and needs its own backing. */
#enquiryPopup .eq-ya-logo { background: rgba(242, 240, 236, .85); }

/* The headline's second word. Red TEXT, so it is the 5.3:1 ink rather than
   the fill red — measured on the wash above, where the fill red gives 4.2:1. */
#enquiryPopup .eq-title em { color: #c21f12; }

/* -- the close button ------------------------------------------------------
   The live rule puts `color: var(--teal-d)` on a gradient of --gold-l/--gold-d.
   That was dark teal on light teal; with the brand reds it would be #5f1c17 on
   #b51f14 — 1.9:1, unreadable. White on that gradient measures 7.2:1.
   The hover state is left alone: it already flips to a white disc, and its
   --teal-d text is now the red-brown ink at 11.9:1. */
#enquiryPopup .eq-close { color: #fff; }

/* -- the fields ------------------------------------------------------------ */
/* Hardcoded #a4b2ac. Warmed, and lifted from 2.6:1 to 3.9:1 on white. */
#enquiryPopup .eq-ctrl::placeholder { color: #857a74; }

/* The select chevron is an inline SVG in a data: URI, so its stroke cannot be
   reached by any colour rule — the whole URI is restated with the red ink. */
#enquiryPopup select.eq-ctrl {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' fill='none' stroke='%23c21f12' stroke-width='1.6'%3E%3Cpath d='M3 5l3.5 3.5L10 5'/%3E%3C/svg%3E");
}

/* Focus and error are both red now, so they are told apart by weight rather
   than by hue: focus is the bright fill red, an error is the darker ink with
   a thicker edge. */
#enquiryPopup .eq-ctrl:focus {
    border-color: #de2a1d;
    box-shadow: 0 0 0 3px rgba(222, 42, 29, .18);
}

#enquiryPopup .eq-ctrl.err,
#enquiryPopup .eq-ctrl.input-err,
#enquiryPopup .eq-ctrl.is-invalid {
    border-color: #c21f12;
    box-shadow: 0 0 0 3px rgba(194, 31, 18, .16);
}

/* -- the error colour, without a fight ------------------------------------
   The errors are written by custom.js:505 as
   `<small class="field-error text-danger">`, and the invalid field gets
   `.is-invalid`. Both of Bootstrap's rules carry `!important`
   (bootstrap.css:1572 and .text-danger), so no selector can outrank them.

   MEASURED: the field border came back rgb(220, 53, 69) — Bootstrap's
   #dc3545, a blue-leaning red sitting next to our #de2a1d.

   Rather than answer `!important` with `!important`, the VARIABLE those rules
   read is redefined on the popup. Bootstrap resolves `var(--bs-danger)` and
   `rgba(var(--bs-danger-rgb), …)` to ours, inside #enquiryPopup only, and the
   whole file stays free of `!important`. */
#enquiryPopup {
    --bs-danger: #c21f12;
    --bs-danger-rgb: 194, 31, 18;
}

/* -- a 404 on every open --------------------------------------------------
   .eq-body::before/::after fetch assets/images/icons/wheel-icons/
   center-mandala.png for a 12%-opacity watermark. That file does not exist —
   measured on the LIVE page too, so this is not something the rebuild broke —
   and the popup asks for it twice every time it opens. Switched off: one less
   failed request, and nothing was ever visible from it. */
#enquiryPopup .eq-body::before,
#enquiryPopup .eq-body::after { background-image: none; }

/* -- the next-batch strip --------------------------------------------------
   Three states, server-rendered by includes/batch-urgency.php: --open,
   --soon, and --critical (final week, or three seats or fewer). The live
   sheet escalated teal -> teal -> amber. Amber is not one of this site's
   colours, so the ladder is rebuilt inside the red family and escalates by
   BRIGHTNESS instead: deep maroon, warmer, then the full brand red. The dot's
   pulse already quickens at each step, so the signal survives the recolour.

   The generated remap reached these gradients but left the #0d3c41 at 0% —
   the dark green edge visible on the left of the owner's screenshot. */
#enquiryPopup .eq-urgency {
    background: linear-gradient(100deg, #4a120c 0%, #7a1c12 48%, #a81d12 100%);
    box-shadow:
        0 10px 26px -10px rgba(48, 13, 10, .75),
        0 2px 0 rgba(255, 255, 255, .12) inset,
        0 0 0 1px rgba(181, 31, 20, .35);
}

#enquiryPopup .eq-urgency--soon {
    background: linear-gradient(100deg, #5e160f 0%, #942014 48%, #c62318 100%);
}

#enquiryPopup .eq-urgency--critical {
    background: linear-gradient(100deg, #8f170e 0%, #c21f12 48%, #de2a1d 100%);
    box-shadow:
        0 10px 26px -10px rgba(74, 18, 12, .75),
        0 2px 0 rgba(255, 255, 255, .14) inset,
        0 0 0 1px rgba(222, 42, 29, .4);
}

/* The leading hairline and the dot were gold in all three states. White on
   red is the same device the rest of the site uses on a red panel. */
#enquiryPopup .eq-urgency::before,
#enquiryPopup .eq-urgency--critical::before {
    background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .62));
}

#enquiryPopup .eq-urgency-dot,
#enquiryPopup .eq-urgency--critical .eq-urgency-dot {
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, .7), 0 0 10px rgba(255, 255, 255, .9);
}

/* The pulse hardcodes the gold in its own keyframes. A keyframe set cannot be
   overridden property by property — the whole set is redeclared under the
   same name, and the last declaration in document order is the one used. */
@keyframes eqUrgencyPulse {
    0%   { box-shadow: 0 0 0 0  rgba(255, 255, 255, .7), 0 0 10px rgba(255, 255, 255, .9) }
    70%  { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0),  0 0 10px rgba(255, 255, 255, .9) }
    100% { box-shadow: 0 0 0 0  rgba(255, 255, 255, 0),  0 0 10px rgba(255, 255, 255, .9) }
}
