/* Contact page — black hero, gray form column, blue info column */

html.contact-page {
    scroll-padding-top: var(--site-header-h);
}

body.contact-page {
    margin: 0;
    background: #000000;
    color: #ffffff;
}

/* Win over premium-bw-mixed.css (body#page-top) */
body#page-top.contact-page {
    background: #000000 !important;
    color: #ffffff !important;
}

.contact-page-main {
    padding-top: var(--site-header-h);
}

/* Black hero band (continuous with header feel) */
.contact-hero {
    background: #000000;
    text-align: center;
    padding: clamp(40px, 8vh, 72px) clamp(20px, 4vw, 48px) clamp(36px, 6vh, 56px);
    border-bottom: none;
}

.contact-hero-title {
    font-family: "Sora", "Inter", system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #ffffff;
    margin: 0 0 clamp(16px, 2.5vh, 24px);
}

.contact-hero-lede {
    margin: 0 auto;
    max-width: 52ch;
    font-size: clamp(1rem, 1.25vw, 1.125rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 400;
}

/* Two columns, flush (no gap) — architectural split */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: min(640px, 70vh);
    width: 100%;
}

.contact-form-panel {
    background: #e0e0e0;
    padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 64px);
    box-sizing: border-box;
}

.contact-info-panel {
    background: linear-gradient(165deg, #0f172a 0%, #1e3a5f 48%, #1e40af 100%);
    padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 64px);
    box-sizing: border-box;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(32px, 5vh, 48px);
}

.contact-flash {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.94rem;
    line-height: 1.5;
}

.contact-flash--success {
    background: rgba(0, 0, 0, 0.06);
    color: #0a0a0a;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-flash--error {
    background: rgba(227, 6, 19, 0.12);
    color: #7f1d1d;
    border: 1px solid rgba(227, 6, 19, 0.35);
}

.contact-orel-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 520px;
}

.contact-orel-form label.field-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #404040;
    margin-bottom: 8px;
}

.contact-orel-form input[type="text"],
.contact-orel-form input[type="email"],
.contact-orel-form input[type="tel"],
.contact-orel-form select,
.contact-orel-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 18px;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 1rem;
    color: #0a0a0a;
    background: #ffffff;
    border: none;
    border-radius: 0;
    outline: none;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}

.contact-orel-form input:focus,
.contact-orel-form select:focus,
.contact-orel-form textarea:focus {
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.12);
}

.contact-orel-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23404040' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.contact-orel-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-orel-form input::placeholder,
.contact-orel-form textarea::placeholder {
    color: #737373;
}

.contact-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #404040;
}

.contact-consent input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #0a0a0a;
}

.contact-submit {
    margin-top: 8px;
    width: 100%;
    padding: 16px 24px;
    font-family: "Sora", "Inter", system-ui, sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
    background: #000000;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.contact-submit:hover {
    background: #1a1a1a;
}

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

/* Blue panel: info blocks */
.contact-info-block h3 {
    font-family: "Sora", "Inter", system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    margin: 0 0 20px;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.contact-info-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.contact-info-row:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    opacity: 0.95;
}

.contact-info-row a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.05rem;
    line-height: 1.5;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.contact-info-row a:hover {
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

.contact-info-row span {
    font-size: 1.05rem;
    line-height: 1.5;
}

.contact-page .site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 900px) {
    .contact-split {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .contact-info-panel {
        order: 2;
    }

    .contact-form-panel {
        order: 1;
    }

    .contact-orel-form {
        max-width: none;
    }
}

/* AI Robot for Desktop */
#ai-contact-robot-container.ai-page-robot {
    position: fixed;
    right: clamp(-220px, -14vw, -72px);
    bottom: max(-52px, -6vh);
    z-index: 999;
    width: min(520px, 72vw);
    height: min(680px, 52vh);
    pointer-events: none;
}

#ai-contact-robot-container.ai-page-robot canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

@media (max-width: 640px) {
    #ai-contact-robot-container.ai-page-robot {
        right: clamp(-160px, -20vw, -48px);
        bottom: max(-40px, -5vh);
        width: min(340px, 78vw);
        height: min(440px, 42vh);
    }
}

@media (prefers-reduced-motion: reduce) {
    #ai-contact-robot-container.ai-page-robot {
        opacity: 0.85;
    }
}
