/* Contact page — premium panels (matches /learn elevation language) */

body.contact-page {
    align-items: stretch;
    padding: 0;
    background: linear-gradient(
        168deg,
        #c5d4e2 0%,
        #d4e2ea 12%,
        #ddeef0 28%,
        #e8ecf4 48%,
        #ebe4ec 68%,
        #e5ddd4 100%
    );
}

.contact-page .contact-section {
    width: 100%;
    position: relative;
    z-index: 10;
    padding: 60px 16px 100px;
    background: linear-gradient(180deg, rgba(210, 224, 236, 0.88) 0%, rgba(218, 232, 242, 0.72) 100%);
    box-shadow: 0 -24px 48px -28px rgba(15, 23, 42, 0.08);
}

.contact-page .balls-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-page .consult-card {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.16);
    background: linear-gradient(152deg, #e8f2f8 0%, #f5f9fc 38%, #ffffff 72%, #eef8f7 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.98) inset,
        0 -40px 80px -48px rgba(6, 182, 212, 0.12) inset,
        0 52px 100px -28px rgba(15, 23, 42, 0.35),
        0 20px 48px -12px rgba(15, 23, 42, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.5),
        0 0 0 2px rgba(6, 148, 162, 0.22),
        0 0 48px rgba(34, 211, 238, 0.1);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.contact-page .consult-card::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 6px;
    z-index: 4;
    background: linear-gradient(90deg, #0891b2, #22d3ee, #2dd4bf, #fbbf24);
    opacity: 0.95;
}

.contact-page .consult-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.98) inset,
        0 -40px 80px -48px rgba(6, 182, 212, 0.16) inset,
        0 56px 110px -26px rgba(15, 23, 42, 0.38),
        0 24px 52px -12px rgba(15, 23, 42, 0.24),
        0 0 0 2px rgba(34, 211, 238, 0.32),
        0 0 56px rgba(34, 211, 238, 0.14);
}

.contact-page .consult-content {
    flex: 1.25;
    min-width: 320px;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible;
}

.contact-page .consult-visual {
    flex: 0.75;
    min-width: 320px;
    position: relative;
    min-height: 400px;
    overflow: hidden;
    background: linear-gradient(180deg, #dce4ee 0%, #c9d6e6 100%);
    border-left: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: inset 8px 0 24px -12px rgba(15, 23, 42, 0.08);
}

.contact-page .consult-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.contact-page .contact-connect-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    color: #ffffff;
    background: linear-gradient(180deg, #0891b2 0%, #0e7490 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 28px rgba(8, 145, 178, 0.35);
}

.contact-page .inline-flash-wrapper .flash-message {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 20px 44px -12px rgba(15, 23, 42, 0.18) !important;
    border-width: 1px !important;
    border-color: rgba(8, 145, 178, 0.4) !important;
}

.contact-page .consult-content input[type='text'],
.contact-page .consult-content input[type='email'],
.contact-page .consult-content textarea {
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.contact-page .consult-content input[type='text']:focus,
.contact-page .consult-content input[type='email']:focus,
.contact-page .consult-content textarea:focus {
    border-color: rgba(8, 145, 178, 0.45) !important;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}

@media (max-width: 768px) {
    .contact-page .consult-card {
        flex-direction: column;
    }

    .contact-page .consult-content,
    .contact-page .consult-visual {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .contact-page .consult-visual {
        border-left: none;
        border-top: 1px solid rgba(15, 23, 42, 0.12);
        min-height: 320px;
        height: 320px;
        box-shadow: inset 0 8px 24px -12px rgba(15, 23, 42, 0.06);
    }

    .contact-page .consult-content {
        padding: 32px 22px;
    }
}
