/* Explain: Emergency dental landing page component styles */
.eyebrow {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero-cinematic {
    isolation: isolate;
}

.quote-card {
    position: relative;
    transform-origin: top left;
    backface-visibility: hidden;
    will-change: transform;
    transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1), opacity 900ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.lead-form-transitioning .hero-cinematic,
body.lead-form-transitioning .quote-card {
    z-index: 1000;
}

.quote-card::before,
.ivory-panel::before {
    content: "";
    position: absolute;
    inset: 0.85rem;
    pointer-events: none;
    border: 1px solid color-mix(in srgb, var(--primary-color) 26%, transparent);
    border-radius: inherit;
}

.ivory-panel {
    position: relative;
    border: 1px solid color-mix(in srgb, var(--primary-color) 18%, var(--border-color));
    border-radius: 2.25rem;
    background: color-mix(in srgb, var(--surface-color) 82%, transparent);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.credibility-item {
    display: flex;
    min-height: 4.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-radius: 1.5rem;
    color: var(--charcoal-color);
    font-size: 0.92rem;
    font-weight: 700;
}

.album-card {
    min-height: 21rem;
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    background: color-mix(in srgb, var(--surface-color) 88%, transparent);
    padding: 1.75rem;
    box-shadow: var(--shadow-card);
    transition: transform 300ms ease, border-color 300ms ease, background 300ms ease;
}

.album-card:hover {
    transform: translateY(-0.4rem);
    border-color: color-mix(in srgb, var(--primary-color) 42%, transparent);
    background: var(--surface-color);
}

.aqua-orb {
    position: absolute;
    z-index: 1;
    width: 18rem;
    height: 18rem;
    opacity: 0.65;
    pointer-events: none;
    background:
        radial-gradient(circle at 34% 36%, color-mix(in srgb, var(--secondary-color) 92%, transparent), transparent 34%),
        radial-gradient(circle at 65% 68%, color-mix(in srgb, var(--primary-color) 30%, transparent), transparent 38%);
    border-radius: 999px;
    filter: blur(2px);
}

.aqua-orb-left {
    left: -5rem;
    bottom: 4rem;
}

.aqua-orb-right {
    right: -4rem;
    top: 2rem;
}

#leadStatus.success,
#modalLeadStatus.success {
    display: block;
    border: 1px solid color-mix(in srgb, var(--primary-color) 50%, transparent);
    background: color-mix(in srgb, var(--primary-color) 20%, transparent);
    color: var(--surface-color);
}

#leadStatus.error,
#modalLeadStatus.error {
    display: block;
    border: 1px solid color-mix(in srgb, #b42318 40%, transparent);
    background: color-mix(in srgb, #b42318 18%, transparent);
    color: var(--surface-color);
}

.floating-contact-button {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 2147483646;
}

.contact-modal-open {
    overflow: hidden;
}

.contact-modal {
    z-index: 2147483647;
}

@media (min-width: 768px) {
    .floating-contact-button {
        left: auto;
        right: 2rem;
        bottom: 2rem;
        width: auto;
    }
}

#services,
#why-choose-us,
#process {
    scroll-margin-top: 9rem;
}

@media (min-width: 1024px) {
    body.lead-form-sticky .hero-cinematic {
        overflow: visible;
        z-index: 999;
    }

    body.lead-form-sticky .quote-card {
        position: fixed;
        bottom: 0;
        left: 50%;
        z-index: 999;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 40vh;
        width: 100vw;
        padding: 2rem 5%;
        border: 1px solid color-mix(in srgb, var(--primary-color) 44%, transparent);
        border-bottom: 0;
        border-radius: 2rem 2rem 0 0;
        background: color-mix(in srgb, var(--surface-color) 96%, var(--secondary-color));
        box-shadow: 0 -15px 50px color-mix(in srgb, var(--charcoal-color) 16%, transparent);
        transform: translateX(-50%);
    }

    body.lead-form-sticky .quote-card::before {
        inset: 0.75rem;
        bottom: -2rem;
        display: block;
        border-color: color-mix(in srgb, var(--primary-color) 24%, transparent);
    }

    body.lead-form-sticky .quote-card > div {
        position: relative;
        z-index: 1;
        margin-bottom: 1.5rem;
        text-align: center;
        color: var(--charcoal-color);
    }

    body.lead-form-sticky .quote-card > div h2 {
        font-size: 2rem;
        line-height: 1.1;
        color: var(--charcoal-color);
    }

    body.lead-form-sticky .quote-card > div p:last-child {
        margin-top: 0.5rem;
        font-size: 1rem;
        color: var(--text-muted);
    }

    body.lead-form-sticky #leadForm {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        align-items: stretch;
        gap: 1rem;
        margin: 0;
        max-width: 1400px;
        margin-inline: auto;
        width: 100%;
    }

    body.lead-form-sticky #leadForm > * {
        margin-top: 0 !important;
    }

    body.lead-form-sticky #leadForm > .grid {
        display: contents;
    }

    body.lead-form-sticky #leadForm .consent-field {
        display: none;
    }

    body.lead-form-sticky #leadForm fieldset {
        min-width: 0;
        display: flex;
        height: 100%;
    }

    body.lead-form-sticky #leadForm .input,
    body.lead-form-sticky #leadForm .select {
        min-height: 3.5rem;
        height: 100%;
        width: 100%;
        flex: 1;
        min-width: 0;
        padding-inline: 1.25rem;
        font-size: 0.95rem;
    }

    body.lead-form-sticky #leadSubmit {
        grid-column: 1 / -1;
        justify-self: center;
        min-height: 3.5rem;
        font-size: 1rem;
        padding-inline: 3rem;
        width: max-content;
        white-space: normal;
        margin-top: 1rem !important;
    }

    body.lead-form-sticky #leadStatus {
        grid-column: 1 / -1;
        margin-top: 0 !important;
    }
}
