/* Contact page real content + real working form (WP-B4, ClickUp 869emrur3,
   docs/ADR_CONTACT_FORM_ROUTE.md).

   Scoped entirely under body.contact-redesign so no other page is
   affected. Built on top of static/css/site_redesign.css's shared --hr-*
   tokens and header/nav rules (sticky/shrink navbar, gradient logo mask) -
   those are NOT redeclared here; they already load globally for any page
   whose key is in base.html's `redesigned_pages` list, which already
   includes 'contact' (confirmed directly in templates/base.html during
   this task).

   Structure mirrors the established WP-B1 (About, about_redesign.css) and
   WP-B3 (Services) pattern - glass-card panels on the shared --hr-* dark
   background, Barlow Condensed for headings/labels, Barlow for body copy -
   with a two-column info/form layout adapted from the mockup at
   contact_mockup_v1.html (structural reference only; fonts/colors
   re-verified against this design system's own tokens below, not copied
   from the mockup's inline :root values). Contact details (address,
   business-development contact, email, phone) are the real live
   'contact_informations' PageContent row for key='contact' (dumped via
   scripts/diag_page_content_dump.py during this task), not invented. */

body.contact-redesign {
    background: var(--hr-bg) !important;
    font-family: 'Barlow', sans-serif;
}

/* Canvas background animation is part of the old theme - hidden here, same
   as every other -redesign page, since this page supplies its own
   veins-glow background. */
/* #uv-background-canvas restored (was wrongly hidden - see home_redesign.css). */

body.contact-redesign .co-page { position: relative; overflow: hidden; }

/* --- Hero / page title --- */
body.contact-redesign .co-hero-wrap { position: relative; overflow: hidden; }
body.contact-redesign .co-veins {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        radial-gradient(circle at 12% 15%, rgba(181,51,247,0.09), transparent 40%),
        radial-gradient(circle at 88% 25%, rgba(1,206,211,0.07), transparent 45%);
}
body.contact-redesign .co-hero {
    position: relative; z-index: 2;
    padding: 90px 64px 40px; max-width: 1500px; margin: 0 auto;
}

/* Direct Primarch correction (this Watch): every standalone text block and
   section header needs the established glass-panel treatment. The hero
   title uses -webkit-background-clip:text for its own gradient, which
   consumes `background` - so the glass fill lives on a separate wrapper,
   exactly matching about_redesign.css's .ar-title-glass precedent (that
   pattern already landed and is mirrored here rather than reinvented). */
body.contact-redesign .co-title-glass {
    display: inline-block;
    background: radial-gradient(circle at 15% 0%, rgba(181,51,247,0.30), rgba(13,15,20,0) 55%), rgba(13,15,20,0.30);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.08); border-radius: 14px;
    padding: 28px 40px;
}
body.contact-redesign .co-page-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 72px; font-weight: 800; letter-spacing: 1px;
    background: linear-gradient(90deg, var(--hr-highlight) 0%, #7b5fd0 30%, #4a9fd8 65%, var(--hr-primary) 100%) !important;
    -webkit-background-clip: text !important; background-clip: text !important;
    -webkit-text-fill-color: transparent !important; color: transparent !important;
    line-height: 1.0; margin: 0;
}

/* --- Shared section title --- */
body.contact-redesign .co-sec-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 30px; font-weight: 700; letter-spacing: 0.5px;
    color: var(--hr-light) !important; margin-bottom: 24px;
}

/* --- Two-column body: info panel + form panel --- */
body.contact-redesign .co-body {
    position: relative; z-index: 2;
    padding: 20px 64px 100px; max-width: 1500px; margin: 0 auto;
    display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px;
    align-items: start;
}

/* Direct Primarch correction (this Watch): the lede paragraph sits
   directly in .co-info, not inside any card, so it is a standalone text
   block in the same sense .ar-story's copy became in about_redesign.css -
   it gets its own glass panel rather than riding on a sibling's. */
body.contact-redesign .co-lede {
    position: relative; border-radius: 14px; padding: 22px 26px;
    background: radial-gradient(circle at 85% 0%, rgba(1,206,211,0.30), rgba(13,15,20,0) 55%), rgba(13,15,20,0.30); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.08);
    font-family: 'Barlow', sans-serif;
    font-size: 18px; line-height: 1.6; color: var(--hr-text-muted) !important;
    margin-bottom: 28px;
}

/* Normalized to the established rgba(13,15,20,0.30) glass value (see
   home_redesign.css's .hr-card) - this panel previously used 0.42, an
   outlier against every other -redesign page's card opacity. */
body.contact-redesign .co-info-card {
    position: relative; border-radius: 14px; padding: 30px 28px; overflow: hidden;
    background: radial-gradient(circle at 15% 0%, rgba(181,51,247,0.30), rgba(13,15,20,0) 55%), rgba(13,15,20,0.30); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.08);
}

body.contact-redesign .co-item { display: flex; gap: 16px; margin-bottom: 26px; }
body.contact-redesign .co-item:last-child { margin-bottom: 0; }
body.contact-redesign .co-icon {
    flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 30% 20%, rgba(181,51,247,0.30), rgba(13,15,20,0) 65%), rgba(13,15,20,0.6);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--hr-primary); font-size: 18px;
}
body.contact-redesign .co-item-body { min-width: 0; }
body.contact-redesign .co-label {
    font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; color: var(--hr-text-muted) !important;
    margin-bottom: 4px;
}
body.contact-redesign .co-value {
    font-family: 'Barlow', sans-serif; font-size: 16px; line-height: 1.5; color: var(--hr-light) !important;
}
body.contact-redesign .co-value a { color: var(--hr-light) !important; text-decoration: none; }
body.contact-redesign .co-value a:hover { color: var(--hr-highlight) !important; }

/* --- Form panel --- */
body.contact-redesign .co-form-panel {
    position: relative; border-radius: 14px; padding: 34px 36px; overflow: hidden;
    background: radial-gradient(circle at 85% 0%, rgba(1,206,211,0.20), rgba(13,15,20,0) 55%), rgba(13,15,20,0.30);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.08);
}

body.contact-redesign .co-row-2 {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}

body.contact-redesign .co-field { margin-bottom: 22px; }
body.contact-redesign .co-field label {
    display: block;
    font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; color: var(--hr-text-muted) !important;
    margin-bottom: 8px;
}
body.contact-redesign .co-input {
    width: 100%; box-sizing: border-box;
    background: rgba(0,0,0,0.35); color: var(--hr-light) !important;
    border: 1px solid rgba(255,255,255,0.14); border-radius: 8px;
    padding: 12px 14px; font-family: 'Barlow', sans-serif; font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
body.contact-redesign .co-input::placeholder { color: var(--hr-text-muted); opacity: 0.8; }
body.contact-redesign .co-input:focus {
    outline: none; border-color: var(--hr-primary);
    box-shadow: 0 0 0 3px rgba(1,206,211,0.20);
}
body.contact-redesign .co-input-error {
    border-color: #ff6b81;
}
body.contact-redesign .co-textarea { resize: vertical; min-height: 140px; }

body.contact-redesign .co-field-errors {
    list-style: none; margin: 8px 0 0; padding: 0;
    font-family: 'Barlow', sans-serif; font-size: 13.5px; color: #ff6b81 !important;
}
body.contact-redesign .co-field-errors li { margin-top: 2px; }

body.contact-redesign .co-submit-btn {
    display: inline-flex; align-items: center; padding: 16px 40px; border-radius: 8px;
    background: linear-gradient(90deg, var(--hr-highlight), var(--hr-primary)); color: var(--hr-light) !important;
    font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 15px; letter-spacing: 1.5px;
    text-transform: uppercase; border: none; cursor: pointer;
    box-shadow: 0 0 40px rgba(181,51,247,0.25);
}
body.contact-redesign .co-submit-btn:hover { filter: brightness(1.08); }

/* --- Responsive: tablet, then phone. Built in from the start (the
   established lesson from Home's own retrofit - see home_redesign.css's
   header comment). --- */
@media (max-width: 1024px) {
    body.contact-redesign .co-hero { padding: 60px 40px 30px; }
    body.contact-redesign .co-page-title { font-size: 52px; }
    body.contact-redesign .co-body {
        padding-left: 40px; padding-right: 40px;
        grid-template-columns: 1fr; gap: 30px;
    }
    body.contact-redesign .co-form-panel { padding: 28px 26px; }
}

@media (max-width: 768px) {
    body.contact-redesign .co-hero { padding: 40px 20px 20px; }
    body.contact-redesign .co-page-title { font-size: 36px; }
    body.contact-redesign .co-sec-title { font-size: 24px; }
    body.contact-redesign .co-body { padding-left: 20px; padding-right: 20px; }
    body.contact-redesign .co-lede { font-size: 16px; }
    body.contact-redesign .co-info-card { padding: 22px 20px; }
    body.contact-redesign .co-form-panel { padding: 22px 20px; }
    body.contact-redesign .co-row-2 { grid-template-columns: 1fr; gap: 0; }
    body.contact-redesign .co-submit-btn { width: 100%; justify-content: center; padding: 14px 20px; }
}
