/* ============================================
   ENTERPRISEHUB CONTACT PAGE
   ============================================ */

/* Full-width override on Contact — breaks out of Astra's flex container + sidebar */
body.enterprisehub-page-contact .ast-container,
body.enterprisehub-page-contact #primary,
body.enterprisehub-page-contact .content-area,
body.enterprisehub-page-contact article,
body.enterprisehub-page-contact .entry-content,
body.enterprisehub-page-contact .site-content,
body.page-template-page-contact .ast-container,
body.page-template-page-contact #primary,
body.page-template-page-contact .content-area,
body.page-template-page-contact article,
body.page-template-page-contact .entry-content,
body.page-template-page-contact .site-content {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.enterprisehub-page-contact .ast-container,
body.page-template-page-contact .ast-container { display: block !important; }

body.enterprisehub-page-contact #primary,
body.page-template-page-contact #primary { flex: 1 1 100% !important; }

body.enterprisehub-page-contact #secondary,
body.page-template-page-contact #secondary { display: none !important; }

.cn {
    font-family: var(--font-body);
    color: var(--color-body);
    background: var(--color-bg);
    overflow-x: clip;
}

.cn-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Reveal — reuses the .pp-js-ready pattern shared with about.css / home.css */
.pp-js-ready [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.pp-js-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

.cn-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 16px;
}

/* ============ HERO ============ */
.cn-hero {
    position: relative;
    padding: 96px 0 64px;
    overflow: hidden;
    text-align: center;
}

.cn-hero::before {
    content: "";
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(0, 103, 255, 0.07) 0%, transparent 60%);
    pointer-events: none;
}

.cn-hero-inner {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}

.cn-hero-title {
    font-size: clamp(32px, 4.4vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--color-heading);
    margin: 0 0 20px;
}

.cn-hero-lead {
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-body);
    margin: 0 auto;
    max-width: 560px;
}

/* ============ INFO CARDS ============ */
.cn-info {
    padding: 8px 0 64px;
}

.cn-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.cn-info-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a.cn-info-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.cn-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--color-bg-soft);
    color: var(--color-accent);
    margin-bottom: 16px;
}

.cn-info-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9CA3AF;
    margin-bottom: 6px;
}

.cn-info-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-heading);
    line-height: 1.45;
}

/* ============ MAP + FORM ============ */
.cn-main {
    padding: 24px 0 112px;
}

.cn-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
}

.cn-map-wrap {
    position: relative;
    min-height: 480px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-bg-soft);
}

.cn-map-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.cn-form-card {
    padding: 48px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 20px;
}

.cn-form-title {
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-heading);
    margin: 0 0 24px;
}

.cn-form-empty {
    padding: 20px;
    background: var(--color-bg-soft);
    border: 1px dashed var(--color-border);
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-body);
}

.cn-form-empty p { margin: 0 0 8px; }
.cn-form-empty p:last-child { margin-bottom: 0; }
.cn-form-empty code {
    background: rgba(0, 103, 255, 0.08);
    color: var(--color-accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

/* Light-touch reset so Fluent Forms' default markup matches the theme */
.cn-form-embed label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-heading);
}

.cn-form-embed input[type="text"],
.cn-form-embed input[type="email"],
.cn-form-embed input[type="tel"],
.cn-form-embed input[type="number"],
.cn-form-embed input[type="url"],
.cn-form-embed textarea,
.cn-form-embed select {
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    padding: 12px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
    color: var(--color-heading);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cn-form-embed input:focus,
.cn-form-embed textarea:focus,
.cn-form-embed select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(0, 103, 255, 0.1);
}

.cn-form-embed button[type="submit"],
.cn-form-embed input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 0;
    padding: 13px 28px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.cn-form-embed button[type="submit"]:hover,
.cn-form-embed input[type="submit"]:hover {
    background: #0052cc;
    transform: translateY(-2px);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
    .cn-info-grid { grid-template-columns: repeat(2, 1fr); }
    .cn-main-grid { grid-template-columns: 1fr; }
    .cn-map-wrap { min-height: 360px; }
}

@media (max-width: 768px) {
    .cn-container { padding: 0 20px; }
    .cn-hero { padding: 64px 0 48px; }
    .cn-info { padding: 8px 0 48px; }
    .cn-main { padding: 16px 0 72px; }
    .cn-form-card { padding: 32px 24px; }
}

@media (max-width: 480px) {
    .cn-info-grid { grid-template-columns: 1fr; }
}
