/* type3 subdomain (type3.aiquniq.com) — form + overlay hooks.
 *
 * The offer form is rendered once per tab, so it cannot carry the ids a
 * single-instance page would use. wireframes/landing.css still styles it via
 * #offerForm / #offerSubmitBtn; the rules below re-apply the same declarations
 * against the class hooks used by pages/type3/partials/form.blade.php.
 *
 * Load AFTER wireframes/landing.css and after type3/main.css. */

.type3-offer-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: opacity 0.5s ease;
}

.type3-offer-form.fade-out {
    opacity: 0;
}

.offer-submit-btn {
    padding: 11px 32px;
    background: #fff;
    color: #000;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 2px;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: background 0.25s ease, opacity 0.25s ease;
}

.offer-submit-btn:hover {
    background: #d4d4d4;
}

.offer-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Tabs sit directly under the nav, so drop the extra top padding the standalone
 * landing page needed. */
.tab-content .offer-form-section {
    padding-top: 60px;
}


/* ── Floating "Contact us" button ────────────────────────────────────────────
 *
 * z-index 900 is deliberate. It must sit above page content but BELOW the
 * mobile-nav overlay (999), the nav (1000), the cookie banner (1999) and the
 * reCAPTCHA badge (9999) — otherwise it floats over the open mobile menu.
 *
 * Hidden state mirrors .grecaptcha-badge in elements/form.css: opacity +
 * visibility + pointer-events, so it is neither clickable nor tab-focusable
 * until pages/type3/partials/contact-fab adds .is-visible — which it does from the
 * first pixel of scroll, and removes again at the top and over the form. */
.type3-contact-fab {
    position: fixed;
    right: 24px;
    bottom: 28px;
    z-index: 900;
    padding: 13px 26px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(15, 15, 15, 0.85);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.35s ease, visibility 0.35s ease,
                transform 0.35s ease, background 0.25s ease,
                box-shadow 0.25s ease;
}

.type3-contact-fab.is-visible {
    opacity: 0.92;              /* near-solid, but still lets the page through */
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.type3-contact-fab.is-visible:hover,
.type3-contact-fab.is-visible:focus-visible {
    opacity: 1;
    background: rgba(8, 8, 8, 0.95);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45);
}

@media (max-width: 768px) {
    .type3-contact-fab {
        right: 14px;
        bottom: 20px;
        padding: 12px 22px;
        font-size: 0.9rem;
    }
}
