/* ══════════════════════════════════════════════════════════════
   TIMEWARP ARCADE - Forms (forms.css)
   The dark styling for WPForms forms. Shared by the Private Hire
   enquiry form and the General Enquiry form on Find Us - wrap a
   form in <div class="eq-form"> to get it.
   Moved out of private-hire.css on 12 Oct 2026, unchanged.
   ══════════════════════════════════════════════════════════════ */

.eq-form {
    background: var(--bg-panel);
    border: 1px solid rgba(255,45,107,0.2);
    padding: clamp(1.75rem, 3.5vw, 2.5rem);
}

/* Spell-check / grammar highlights (reported 12 Oct 2026: a misspelt word
   turned near-black while typing). The boxes around the fields inherit
   GeneratePress's dark body text colour (#222); nothing visible uses it, but
   browsers can take a highlighted word's colour from those boxes instead of
   from the field. So: give the wrappers a light colour, and state the
   highlight colour outright. One rule per pseudo-element - a browser that
   doesn't know one would otherwise throw the whole list away. */
.eq-form,
.eq-form .wpforms-container,
.eq-form .wpforms-form,
.eq-form .wpforms-field-container,
.eq-form .wpforms-field {
    color: var(--text-bright);
}
.eq-form input::spelling-error    { color: #fff; -webkit-text-fill-color: #fff; }
.eq-form textarea::spelling-error { color: #fff; -webkit-text-fill-color: #fff; }
.eq-form input::grammar-error     { color: #fff; -webkit-text-fill-color: #fff; }
.eq-form textarea::grammar-error  { color: #fff; -webkit-text-fill-color: #fff; }

/* ── WPFORMS OVERRIDES ── */

/* Remove WPForms default chrome */
.eq-form .wpforms-form,
.eq-form .wpforms-field-container {
    margin: 0 !important;
    padding: 0 !important;
}
.eq-form .wpforms-field {
    margin-bottom: 1.1rem !important;
    padding: 0 !important;
}

/* Labels */
.eq-form .wpforms-field-label {
    font-family: var(--font-display) !important;
    font-size: clamp(0.72rem, 1.7vw, 0.80rem) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: var(--cyan) !important;
    margin-bottom: 0.55rem !important;
    display: block !important;
}
.eq-form .wpforms-field-label .wpforms-required-label {
    color: var(--pink) !important;
}

/* Inputs, selects, textareas */
.eq-form .wpforms-field input[type="text"],
.eq-form .wpforms-field input[type="email"],
.eq-form .wpforms-field input[type="tel"],
.eq-form .wpforms-field input[type="number"],
.eq-form .wpforms-field input[type="url"],
.eq-form .wpforms-field select,
.eq-form .wpforms-field-select select,
.eq-form .wpforms-field textarea {
    background-color: #1e1e42 !important;
    border: 1px solid rgba(0, 229, 255, 0.3) !important;
    border-radius: 0 !important;
    color: #fff !important;
    font-family: var(--font-body) !important;
    font-size: clamp(0.82rem, 1.98vw, 0.9rem) !important;
    padding: 0.75rem 1rem !important;
    width: 100% !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color 0.2s, background-color 0.2s !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
.eq-form .wpforms-field input[type="text"]:focus,
.eq-form .wpforms-field input[type="email"]:focus,
.eq-form .wpforms-field input[type="tel"]:focus,
.eq-form .wpforms-field input[type="number"]:focus,
.eq-form .wpforms-field select:focus,
.eq-form .wpforms-field textarea:focus {
    background-color: #252550 !important;
    border-color: var(--cyan) !important;
    box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.12) !important;
}
.eq-form .wpforms-field input::placeholder,
.eq-form .wpforms-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
    font-family: var(--font-body) !important;
}
.eq-form .wpforms-field select option {
    background-color: #1e1e42 !important;
    color: #fff !important;
}

/* Custom select arrow */
.eq-form .wpforms-field select,
.eq-form .wpforms-field-select select,
.eq-form select {
    background-color: #1e1e42 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300E5FF' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    padding-right: 2.5rem !important;
    cursor: pointer !important;
    color: #fff !important;
    color-scheme: dark !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* WPForms "modern" dropdowns: the real <select> is hidden and Choices.js
   draws its own box, which the rules above don't reach. Match the inputs. */
.eq-form .choices { margin-bottom: 0 !important; font-size: clamp(0.82rem, 1.98vw, 0.9rem) !important; }
.eq-form .choices__inner {
    background-color: #1e1e42 !important;
    border: 1px solid rgba(0, 229, 255, 0.3) !important;
    border-radius: 0 !important;
    color: #fff !important;
    font-family: var(--font-body) !important;
    font-size: inherit !important;
    line-height: normal !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0.75rem 2.5rem 0.75rem 1rem !important;
    box-shadow: none !important;
}
/* choices.min.css zeroes the top padding with a more specific !important rule */
.eq-form div.wpforms-container .wpforms-form .choices[data-type*="select-one"] .choices__inner {
    padding: 0.75rem 2.5rem 0.75rem 1rem !important;
}
.eq-form .choices.is-focused .choices__inner,
.eq-form .choices.is-open .choices__inner {
    background-color: #252550 !important;
    border-color: var(--cyan) !important;
    box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.12) !important;
}
.eq-form .choices__list--single,
.eq-form .choices__list--single .choices__item {
    padding: 0 !important;
    color: #fff !important;
    font-size: inherit !important;
    line-height: inherit !important; /* WPForms sets 43px here, making the box taller than the inputs */
}
.eq-form .choices__placeholder,
.eq-form .choices__list--single .choices__item--selectable.choices__placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
    opacity: 1 !important;
}
/* Arrow: same cyan chevron as the native selects */
.eq-form .choices[data-type*="select-one"]::after {
    border: none !important;
    width: 12px !important;
    height: 8px !important;
    margin-top: -4px !important;
    right: 1rem !important;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300E5FF' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center !important;
    transition: transform 0.2s !important;
}
.eq-form .choices[data-type*="select-one"].is-open::after { transform: rotate(180deg) !important; }
/* The field is required, so the "clear" ✕ is pointless (and drew as a dark smudge) */
.eq-form .choices__list--single .choices__button { display: none !important; }
/* WPForms' 3px "open" bar under the box picks up the white text colour */
.eq-form .choices::before { display: none !important; }
/* The opened list. WPForms colours it via its own CSS variables, so set
   those to the site's colours too (beats its more specific rule). */
.eq-form div.wpforms-container-full {
    --wpforms-field-menu-color: #1e1e42;
    --wpforms-field-text-color: #fff;
}
.eq-form div.wpforms-container-full .wpforms-form .wpforms-field.wpforms-field-select-style-modern .choices .choices__list--dropdown,
.eq-form .choices__list--dropdown,
.eq-form .choices__list[aria-expanded] {
    background-color: #1e1e42 !important;
    border: 1px solid var(--cyan) !important;
    border-radius: 0 !important;
    color: #fff !important;
    z-index: 20 !important;
    width: 100% !important;
    min-width: 0 !important; /* WPForms sets 250px, wider than the box on small phones */
}
.eq-form .choices__list--dropdown .choices__item,
.eq-form .choices__list[aria-expanded] .choices__item {
    color: #fff !important;
    font-family: var(--font-body) !important;
    font-size: inherit !important;
    padding: 0.65rem 1rem !important;
}
.eq-form .choices__list--dropdown .choices__item--selectable.is-highlighted,
.eq-form .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
    background-color: rgba(0, 229, 255, 0.15) !important;
    color: var(--cyan) !important;
}
.eq-form .choices.has-error .choices__inner,
.eq-form .wpforms-field.wpforms-has-error .choices__inner { border-color: var(--pink, #FF2D6B) !important; }

/* Override browser autofill background */
.eq-form .wpforms-field input:-webkit-autofill,
.eq-form .wpforms-field input:-webkit-autofill:hover,
.eq-form .wpforms-field input:-webkit-autofill:focus,
.eq-form .wpforms-field input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #1e1e42 inset !important;
    box-shadow: 0 0 0 1000px #1e1e42 inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff !important;
    border-color: rgba(0, 229, 255, 0.3) !important;
}

/* Textarea height */
.eq-form .wpforms-field textarea {
    min-height: 110px !important;
    resize: vertical !important;
}

/* Submit button */
.eq-form .wpforms-submit-container {
    margin-top: 0.25rem !important;
    padding: 0 !important;
    text-align: left !important;
}
.eq-form .wpforms-submit-container button[type="submit"],
.eq-form button.wpforms-submit {
    width: 100% !important;
    background: var(--pink) !important;
    color: #fff !important;
    font-family: var(--font-display) !important;
    font-weight: 900 !important;
    font-size: clamp(0.92rem, 2.38vw, 1.08rem) !important;
    padding: 1rem 1.5rem !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    transition: background 0.2s !important;
    box-shadow: none !important;
    clip-path: none !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}
.eq-form .wpforms-submit-container button[type="submit"]:hover,
.eq-form button.wpforms-submit:hover {
    background: #ff527a !important;
}
.eq-form .wpforms-submit-container button[type="submit"]:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

/* Validation errors */
.eq-form .wpforms-error-container,
.eq-form label.wpforms-error {
    background: rgba(255, 45, 107, 0.08) !important;
    border: 1px solid rgba(255, 45, 107, 0.25) !important;
    color: var(--pink) !important;
    font-family: var(--font-body) !important;
    font-size: clamp(0.75rem, 1.72vw, 0.84rem) !important;
    padding: 0.75rem 1rem !important;
    margin-top: 0.4rem !important;
    border-radius: 0 !important;
}
.eq-form label.wpforms-error {
    border: none !important;
    background: transparent !important;
    padding: 0.25rem 0 0 !important;
}
.eq-form .wpforms-field input.wpforms-error,
.eq-form .wpforms-field select.wpforms-error,
.eq-form .wpforms-field textarea.wpforms-error {
    border-color: rgba(255, 45, 107, 0.5) !important;
}

/* Success / confirmation message */
.eq-form .wpforms-confirmation-container-full,
.eq-form .wpforms-confirmation-scroll {
    background: rgba(57, 255, 20, 0.06) !important;
    border: 1px solid rgba(57, 255, 20, 0.25) !important;
    color: #39ff14 !important;
    font-family: var(--font-body) !important;
    font-size: clamp(0.77rem, 1.72vw, 0.86rem) !important;
    padding: 1rem 1.25rem !important;
    border-radius: 0 !important;
    margin-top: 1rem !important;
}
.eq-form .wpforms-confirmation-container-full p,
.eq-form .wpforms-confirmation-scroll p {
    margin: 0 !important;
    color: inherit !important;
}

/* Hide WPForms branding / honeypot visually */
.eq-form .wpforms-field-hp { display: none !important; }
