/* Sticky contact bar — planostic.ai
 *
 * Vaste balk onderaan het scherm die altijd zichtbaar blijft tijdens scrollen.
 * Biedt twee directe conversie-paden: contactformulier (anchor naar #contact-formulier)
 * en telefoonnummer (tel: link).
 *
 * Layout:
 * - Mobiel: stapel met label boven, knoppen onder elkaar
 * - Desktop: één rij, label links, knoppen rechts
 *
 * Geen externe dependencies, geen Alpine, geen JS nodig voor de sticky bar zelf.
 */

.sticky-contact-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: white;
    padding: 12px 16px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
    z-index: 50;
    border-top: 1px solid rgba(45, 212, 255, 0.18);
    /* Voorkom overlap met content — reserveer ruimte onderaan de pagina */
    /* Wordt geregeld via padding-bottom op body */
}

.sticky-contact-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

@media (min-width: 768px) {
    .sticky-contact-bar {
        padding: 14px 24px;
    }
    .sticky-contact-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
    }
}

.sticky-contact-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}

.sticky-contact-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #2DD4FF;
    text-transform: uppercase;
}

.sticky-contact-text {
    font-size: 14px;
    font-weight: 500;
    color: #E2E8F0;
}

@media (min-width: 768px) {
    .sticky-contact-eyebrow {
        font-size: 11px;
    }
    .sticky-contact-text {
        font-size: 15px;
    }
}

.sticky-contact-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .sticky-contact-actions {
        flex-direction: row;
        gap: 10px;
    }
}

.sticky-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s, transform 0.1s;
    white-space: nowrap;
    line-height: 1;
}

.sticky-contact-btn:active {
    transform: scale(0.97);
}

.sticky-contact-btn-primary {
    background: linear-gradient(180deg, #38E0FF 0%, #1FB8E0 100%);
    color: #04111F;
    box-shadow: 0 4px 16px rgba(45, 212, 255, 0.4);
}

.sticky-contact-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(45, 212, 255, 0.55);
}

.sticky-contact-btn-secondary {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(45, 212, 255, 0.28);
}

.sticky-contact-btn-secondary:hover {
    background-color: rgba(45, 212, 255, 0.08);
    border-color: #2DD4FF;
}

/* ── Inline formulier in #contact-sectie ──────────────────────────── */

.contact-input {
    width: 100%;
    background: rgba(10, 22, 40, 0.7);
    border: 1px solid rgba(45, 212, 255, 0.28);
    border-radius: 10px;
    padding: 12px 14px;
    color: white;
    font-size: 15px;
    line-height: 1.4;
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.contact-input::placeholder {
    color: #64748B;
}

.contact-input:hover {
    border-color: rgba(45, 212, 255, 0.5);
}

.contact-input:focus {
    outline: none;
    border-color: #2DD4FF;
    background-color: rgba(10, 22, 40, 0.9);
    box-shadow: 0 0 0 3px rgba(45, 212, 255, 0.18);
}

.contact-input:invalid:not(:placeholder-shown) {
    border-color: #DC2626;
}

.contact-submit-btn {
    background: linear-gradient(180deg, #38E0FF 0%, #1FB8E0 100%);
    color: #04111F;
    border: none;
    border-radius: 10px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(45, 212, 255, 0.35);
    width: 100%;
}

@media (min-width: 640px) {
    .contact-submit-btn {
        width: auto;
    }
}

.contact-submit-btn:hover {
    box-shadow: 0 8px 26px rgba(45, 212, 255, 0.5);
}

.contact-submit-btn:active {
    transform: scale(0.98);
}

.contact-submit-btn:disabled {
    background: #475569;
    color: #94A3B8;
    cursor: not-allowed;
    box-shadow: none;
}

/* Status feedback (door JS gevuld of via noscript fallback) */
#contact-status.success {
    display: block;
    padding: 14px 16px;
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 10px;
    color: #4ADE80;
    font-size: 14px;
    font-weight: 500;
}

#contact-status.error {
    display: block;
    padding: 14px 16px;
    background-color: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 10px;
    color: #FCA5A5;
    font-size: 14px;
    font-weight: 500;
}

/* ── Body padding om overlap te voorkomen ─────────────────────────── */

/* De sticky bar is ~70px hoog op mobiel, ~60px op desktop.
 * Reserveer ruimte onderaan de pagina zodat content niet achter de bar verdwijnt. */
body {
    padding-bottom: 140px;
}

@media (min-width: 768px) {
    body {
        padding-bottom: 80px;
    }
}

/* Zorg dat de #contact-sectie niet onbereikbaar wordt door de sticky bar.
 * Scroll-margin laat de browser de anchor met offset positioneren. */
#contact,
#contact-formulier {
    scroll-margin-bottom: 160px;
}

@media (min-width: 768px) {
    #contact,
    #contact-formulier {
        scroll-margin-bottom: 100px;
    }
}