/* Shared "Get in Touch" block — uses :root tokens from style.css */

.cform-section {
    padding: clamp(2.5rem, 5vw, 4rem) clamp(16px, 4vw, 30px);
    background: linear-gradient(180deg, #00041a 0%, #000625 45%, #02030f 100%);
    border-top: 1px solid rgba(0, 118, 255, 0.12);
}

.cform-inner {
    max-width: 1160px;
    margin: 0 auto;
}

.cform-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(144, 150, 165, 0.22);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.cform-visual {
    position: relative;
    min-height: 280px;
    background: #030818;
    overflow: hidden;
    isolation: isolate;
}

.cform-visual-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.cform-bubbles {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.cform-bubble {
    position: absolute;
    top: 100%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    --bx: 0px;
    --dur: 2.6s;
    --delay: 0s;
    background: radial-gradient(
        circle at 30% 25%,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(0, 118, 255, 0.65) 40%,
        rgba(210, 7, 101, 0.55) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 12px rgba(0, 118, 255, 0.6), 0 0 4px rgba(255, 255, 255, 0.3);
    opacity: 0;
    transform: translateX(var(--bx)) scale(0.6);
    animation: cformBubbleRise var(--dur) ease-in-out infinite;
    animation-delay: var(--delay);
}

.cform-bubble:nth-child(1) {
    left: 14%;
    --bx: -6px;
    --dur: 2.4s;
    --delay: 0s;
}

.cform-bubble:nth-child(2) {
    left: 28%;
    width: 10px;
    height: 10px;
    --bx: 4px;
    --dur: 2.9s;
    --delay: 0.35s;
}

.cform-bubble:nth-child(3) {
    left: 42%;
    --bx: -3px;
    --dur: 2.7s;
    --delay: 0.7s;
}

.cform-bubble:nth-child(4) {
    left: 56%;
    width: 7px;
    height: 7px;
    --bx: 5px;
    --dur: 3.05s;
    --delay: 1.05s;
}

.cform-bubble:nth-child(5) {
    left: 70%;
    --bx: -4px;
    --dur: 2.8s;
    --delay: 0.2s;
}

.cform-bubble:nth-child(6) {
    left: 84%;
    width: 10px;
    height: 10px;
    --bx: 3px;
    --dur: 3.1s;
    --delay: 0.85s;
}

.cform-bubble:nth-child(7) {
    left: 38%;
    width: 7px;
    height: 7px;
    --bx: 2px;
    --dur: 2.5s;
    --delay: 1.25s;
}

@keyframes cformBubbleRise {
    0% {
        top: 100%;
        opacity: 0;
        transform: translateX(var(--bx)) scale(0.55);
    }
    12% {
        opacity: 1;
    }
    88% {
        opacity: 0.85;
    }
    100% {
        top: -6%;
        opacity: 0;
        transform: translateX(var(--bx)) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cform-bubble {
        animation: none;
        opacity: 0;
    }
}

.cform-panel {
    background: linear-gradient(165deg, rgba(8, 10, 32, 0.96) 0%, rgba(0, 6, 37, 0.98) 100%);
    padding: clamp(1.5rem, 4vw, 2.35rem) clamp(1.25rem, 3vw, 2rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cform-title {
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: clamp(1.45rem, 2.5vw, 1.85rem);
    font-weight: 700;
    color: var(--white);
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.cform-lead {
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--muted);
    margin: 0 0 1.35rem;
}

.cform-form .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 0.85rem;
}

.cform-label {
    display: block;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(240, 242, 245, 0.88);
    margin-bottom: 0.35rem;
}

.cform-input {
    width: 100%;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 0.92rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(144, 150, 165, 0.22);
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cform-input::placeholder {
    color: rgba(179, 190, 219, 0.45);
}

.cform-input:hover {
    border-color: rgba(0, 118, 255, 0.35);
}

.cform-input:focus {
    border-color: rgba(210, 7, 101, 0.55);
    box-shadow: 0 0 0 3px rgba(210, 7, 101, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.cform-textarea {
    min-height: 120px;
    resize: vertical;
}

.cform-actions {
    margin-top: 0.25rem;
}

.cform-submit {
    border-radius: 999px;
    padding: 0.65rem 1.85rem;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    background: linear-gradient(135deg, var(--accent) 0%, #a8054f 100%);
    color: var(--white);
    box-shadow: 0 12px 36px rgba(210, 7, 101, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cform-submit:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 16px 44px rgba(210, 7, 101, 0.45);
}

.cform-submit:focus-visible {
    outline: 2px solid var(--accent2);
    outline-offset: 3px;
}

@media (max-width: 991.98px) {
    .cform-shell {
        grid-template-columns: 1fr;
    }

    .cform-visual {
        min-height: 220px;
        max-height: 320px;
    }

    .cform-visual-img {
        min-height: 220px;
        max-height: 320px;
    }

    .cform-bubbles {
        transform: scale(0.92);
        transform-origin: center center;
    }
}

@media (max-width: 575.98px) {
    .cform-section {
        padding-inline: clamp(12px, 4vw, 24px);
    }

    .cform-shell {
        border-radius: 16px;
    }

    .cform-bubbles {
        transform: scale(0.85);
    }

    .cform-bubble {
        filter: brightness(1.05);
    }
}
