/* ============================================================ 
   CONTACT "CLINICAL CONSULTING HUB" v2.0
   Design: Snow Surface x Prismatic Luminous Mode
   Hierarchy: H1 (56px) | H2 (32px) | H3 (20px)
   ============================================================ */

.contact-mastery-body {
    background: #F8FAFC;
    /* Softer Snow Surface */
    color: #334155;
    overflow-x: hidden;
}

/* --- SUPREME INTAKE HERO (LUMINOUS SPLIT) --- */
.con-hero {
    position: relative;
    padding: 0;
    min-height: 100vh;
    background: #FFFFFF;
    overflow: hidden;
    display: block;
    /* Section is now block, inner wrapper is flex */
}

.con-hero__split-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.con-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 17, 26, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 17, 26, 0.05) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(circle at center, black, transparent 95%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 95%);
    pointer-events: none;
    z-index: 0;
}

.con-hero__left {
    flex: 1;
    background: transparent;
    padding: calc(var(--header-height) + 60px) 40px 60px 0;
    /* Reduced right/left padding for container */
    color: #0F172A;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 1;
}

.con-hero__left::before {
    content: '';
    position: absolute;
    inset: 0 -100vw 0 -100vw;
    /* Extend background far to the left */
    background:
        radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.05), transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.03), transparent 50%);
    z-index: -1;
}

.con-hero__right {
    flex: 1.1;
    background: transparent;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    padding: calc(var(--header-height) + 60px) 0 60px 60px;
    /* Aligned for container */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    z-index: 1;
}

.con-hero__badge {
    display: inline-flex;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    color: #6366F1;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.con-hero__title {
    font-size: 3rem;
    /* Locked exactly to 48px */
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    color: #0F172A;
}

.con-hero__title span {
    color: #6366F1;
}

.con-hero__desc {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 32px;
    max-width: 520px;
}

/* --- CONTACT REGISTRY NODES --- */
.con-hero__nodes {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.con-node-item {
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.node-icon {
    width: 44px;
    height: 44px;
    background: #FFFFFF;
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366F1;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.05);
}

.con-node-item:hover .node-icon {
    background: #6366F1;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

.node-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.node-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6366F1;
}

.node-value {
    font-size: 1.0rem;
    font-weight: 400;
    color: #0F172A;
}

/* --- INTAKE MATRIX (FORM HUB) --- */
.intake-form-hub {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    padding: 32px 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
}

.intake-title {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--saas-text-headline);
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.field-group {
    margin-bottom: 16px;
    position: relative;
}

.field-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--saas-text-headline);
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

.field-control {
    width: 100%;
    background: #F8F9FA;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 1rem;
    color: var(--saas-text-headline);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.field-control::placeholder {
    color: #64748B;
}

.field-control:focus {
    outline: none;
    border-color: var(--color-primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
}

select.field-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23818CF8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 48px;
}

select.field-control option {
    background: #FFFFFF;
    color: var(--saas-text-headline);
    padding: 12px;
}

textarea.field-control {
    resize: vertical;
    min-height: 80px;
}

/* --- THE SUBMIT BUTTON --- */
.btn-supreme {
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    color: #FFFFFF;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-supreme::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-supreme:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -5px rgba(99, 102, 241, 0.5);
}

.btn-supreme:hover::before {
    opacity: 1;
}

/* --- OPERATIONAL NODES (CONTACT BAR) --- */
.section-nodes {
    padding: 80px 0;
    background: #F8F9FA;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.nodes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.node-item {
    text-align: center;
    padding: 32px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.node-item:hover {
    background: #FFFFFF;
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.node-item__label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #818CF8;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.1em;
}

.node-item__val {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--saas-text-headline);
}

/* Responsive Logistics */
@media (max-width: 1024px) {
    .con-hero {
        min-height: auto;
        background: #F8FAFC !important;
    }

    .con-hero__split-wrapper {
        flex-direction: column;
        min-height: auto;
    }

    .con-hero__left {
        padding: calc(var(--header-height) + 40px) 20px 40px !important;
        text-align: center;
        align-items: center;
    }

    .con-hero__title {
        font-size: 1.5rem !important;
        margin-bottom: 16px !important;
    }

    .con-hero__desc {
        font-size: 0.9375rem !important;
        margin-bottom: 32px !important;
        max-width: 100% !important;
    }

    .con-hero__nodes {
        margin-top: 32px !important;
        width: 100% !important;
        text-align: left !important;
    }

    .con-hero__right {
        padding: 40px 20px 60px !important;
        border-left: none !important;
        background: #FFFFFF !important;
    }

    .intake-form-hub {
        padding: 24px !important;
        border-radius: 20px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
        width: 100% !important;
    }

    .intake-title {
        font-size: 1.25rem !important;
        margin-bottom: 24px !important;
    }

    .field-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .btn-supreme {
        width: 100% !important;
        justify-content: center !important;
        padding: 16px 24px !important;
    }
}

/* --- CONTACT SUCCESS STATE --- */
.contact-success-msg {
    text-align: center;
    padding: 40px 20px;
    animation: successFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes successFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-icon-wrap {
    width: 64px;
    height: 64px;
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.contact-success-msg h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.contact-success-msg p {
    font-size: 1rem;
    color: #64748B;
    line-height: 1.6;
    margin-bottom: 32px;
}

.mt-6 { margin-top: 24px; }

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn--secondary {
    background: #F1F5F9;
    color: #475569;
}

.btn--secondary:hover {
    background: #E2E8F0;
    color: #0F172A;
}