/**
 * DataCenterUPS — Lead Form Styles
 * Mobile-first, accessible, brand-aligned with the directory.
 */

.dcu-lead-form-wrap {
    background: linear-gradient( 135deg, #0a2540 0%, #1a3a5c 100% );
    color: #fff;
    padding: 3rem 1.25rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 8px 30px rgba( 0, 0, 0, 0.12 );
}

.dcu-lead-form-inner {
    max-width: 760px;
    margin: 0 auto;
}

.dcu-lead-form-heading {
    font-size: clamp( 1.5rem, 3vw, 2.25rem );
    line-height: 1.2;
    margin: 0 0 0.5rem;
    color: #fff;
    font-weight: 700;
}

.dcu-lead-form-sub {
    font-size: 1rem;
    line-height: 1.55;
    margin: 0 0 1.75rem;
    color: rgba( 255, 255, 255, 0.85 );
}

.dcu-lead-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dcu-lf-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media ( min-width: 600px ) {
    .dcu-lf-row {
        grid-template-columns: 1fr 1fr;
    }
}

.dcu-lf-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.dcu-lf-field > span {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba( 255, 255, 255, 0.95 );
}

.dcu-lf-field > span em {
    font-style: normal;
    font-weight: 400;
    opacity: 0.7;
    font-size: 0.8rem;
}

.dcu-lf-field input,
.dcu-lf-field select,
.dcu-lf-field textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: #0a2540;
    border: 1px solid rgba( 255, 255, 255, 0.15 );
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.dcu-lf-field input:focus,
.dcu-lf-field select:focus,
.dcu-lf-field textarea:focus {
    outline: none;
    border-color: #f5a623;
    box-shadow: 0 0 0 3px rgba( 245, 166, 35, 0.25 );
}

.dcu-lf-field textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.dcu-lf-submit-row {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-start;
}

.dcu-lf-submit {
    background: #f5a623;
    color: #0a2540;
    border: none;
    padding: 0.95rem 2rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.1s, background 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 12px rgba( 245, 166, 35, 0.3 );
}

.dcu-lf-submit:hover:not(:disabled) {
    background: #ffb733;
    transform: translateY( -1px );
    box-shadow: 0 6px 16px rgba( 245, 166, 35, 0.4 );
}

.dcu-lf-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.dcu-lf-disclaimer {
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
    color: rgba( 255, 255, 255, 0.65 );
}

.dcu-lf-message {
    margin-top: 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    line-height: 1.4;
    display: none;
}

.dcu-lf-message-success {
    display: block;
    background: rgba( 76, 175, 80, 0.15 );
    border: 1px solid rgba( 76, 175, 80, 0.5 );
    color: #b9f5bd;
}

.dcu-lf-message-error {
    display: block;
    background: rgba( 244, 67, 54, 0.15 );
    border: 1px solid rgba( 244, 67, 54, 0.5 );
    color: #ffc1bd;
}

/* Compact variant — for sidebar / homepage hero embeds */
.dcu-lead-form-wrap.dcu-compact {
    padding: 2rem 1rem;
}

.dcu-lead-form-wrap.dcu-compact .dcu-lead-form-heading {
    font-size: 1.4rem;
}

/* ============================================================
   CARD variant — white card form for split hero (Option C)
   Higher-specificity selectors so Astra/Elementor don't override.
   ============================================================ */
div.dcu-lead-form-wrap.dcu-card {
    background: #ffffff !important;
    color: #0a1628 !important;
    padding: 1.75rem !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 40px rgba( 0, 0, 0, 0.25 ), 0 2px 8px rgba( 0, 0, 0, 0.1 );
    margin: 0 !important;
}

div.dcu-lead-form-wrap.dcu-card h2.dcu-lead-form-heading {
    color: #0a1628 !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    margin: 0 0 0.35rem !important;
    text-align: left !important;
}

div.dcu-lead-form-wrap.dcu-card p.dcu-lead-form-sub {
    color: #475569 !important;
    font-size: 0.92rem !important;
    margin: 0 0 1rem !important;
    line-height: 1.45 !important;
    text-align: left !important;
}

div.dcu-lead-form-wrap.dcu-card .dcu-lead-form {
    gap: 0.7rem;
}

div.dcu-lead-form-wrap.dcu-card .dcu-lf-field > span {
    color: #0a1628 !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
}

div.dcu-lead-form-wrap.dcu-card .dcu-lf-field > span em {
    color: #64748b !important;
}

div.dcu-lead-form-wrap.dcu-card .dcu-lf-field input,
div.dcu-lead-form-wrap.dcu-card .dcu-lf-field select,
div.dcu-lead-form-wrap.dcu-card .dcu-lf-field textarea {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #0a1628 !important;
    padding: 0.6rem 0.75rem !important;
    font-size: 0.92rem !important;
}

div.dcu-lead-form-wrap.dcu-card .dcu-lf-field input:focus,
div.dcu-lead-form-wrap.dcu-card .dcu-lf-field select:focus,
div.dcu-lead-form-wrap.dcu-card .dcu-lf-field textarea:focus {
    background: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba( 37, 99, 235, 0.15 ) !important;
    outline: none;
}

div.dcu-lead-form-wrap.dcu-card button.dcu-lf-submit {
    background: #f5a623 !important;
    color: #0a1628 !important;
    padding: 0.8rem 1.5rem !important;
    font-size: 0.98rem !important;
    width: 100%;
    border: none !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    cursor: pointer;
}

div.dcu-lead-form-wrap.dcu-card button.dcu-lf-submit:hover:not(:disabled) {
    background: #ffb733 !important;
}

div.dcu-lead-form-wrap.dcu-card p.dcu-lf-disclaimer {
    color: #64748b !important;
    font-size: 0.72rem !important;
    margin-top: 0.35rem !important;
    text-align: left !important;
}

/* ============================================================
   SPLIT HERO (Option C) — homepage above-the-fold layout

   NOTE on specificity: this hero renders inside Astra's
   .entry-content / Elementor's .elementor-widget-shortcode wrappers
   which inject default text colors and container constraints.
   We use higher-specificity selectors and !important on a few
   critical colors/layout rules to win the cascade reliably.
   ============================================================ */
section.dcu-split-hero {
    background-color: #0a1628 !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff !important;
    padding: 4rem 1.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
}

section.dcu-split-hero .dcu-split-hero__inner {
    max-width: 1200px;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: 1.05fr 1fr !important;
    gap: 3rem !important;
    align-items: center;
    width: 100%;
}

section.dcu-split-hero .dcu-split-hero__left {
    color: #ffffff !important;
    padding: 0.5rem 0;
    min-width: 0; /* prevent grid blow-out */
}

section.dcu-split-hero h1.dcu-split-hero__h1 {
    font-size: clamp( 2rem, 4vw, 2.75rem ) !important;
    line-height: 1.12 !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 0 1rem !important;
    letter-spacing: -0.5px;
    text-align: left !important;
}

section.dcu-split-hero p.dcu-split-hero__sub {
    font-size: 1.05rem !important;
    line-height: 1.55 !important;
    color: rgba( 255, 255, 255, 0.88 ) !important;
    margin: 0 0 1.5rem !important;
    max-width: 540px;
    text-align: left !important;
}

section.dcu-split-hero ul.dcu-split-hero__bullets {
    list-style: none !important;
    margin: 0 0 1.75rem !important;
    padding: 0 !important;
}

section.dcu-split-hero ul.dcu-split-hero__bullets li {
    padding: 0.4rem 0 0.4rem 1.85rem !important;
    font-size: 1rem !important;
    color: rgba( 255, 255, 255, 0.92 ) !important;
    position: relative;
    list-style: none !important;
    background: none !important;
    border: none !important;
}

section.dcu-split-hero ul.dcu-split-hero__bullets li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.35rem;
    color: #f5a623 !important;
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1;
}

section.dcu-split-hero .dcu-split-hero__cta-row {
    display: flex !important;
    gap: 0.75rem;
    flex-wrap: wrap;
}

section.dcu-split-hero a.dcu-split-hero__browse-btn {
    display: inline-block !important;
    padding: 0.85rem 1.5rem !important;
    background: rgba( 255, 255, 255, 0.08 ) !important;
    color: #ffffff !important;
    border: 2px solid rgba( 255, 255, 255, 0.4 ) !important;
    border-radius: 6px !important;
    font-size: 0.98rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.15s;
    box-shadow: none !important;
}

section.dcu-split-hero a.dcu-split-hero__browse-btn:hover {
    background: rgba( 255, 255, 255, 0.15 ) !important;
    border-color: rgba( 255, 255, 255, 0.7 ) !important;
    color: #ffffff !important;
    transform: translateY( -1px );
}

section.dcu-split-hero .dcu-split-hero__right {
    display: flex !important;
    align-items: center;
    min-width: 0;
}

section.dcu-split-hero .dcu-split-hero__right .dcu-lead-form-wrap {
    width: 100% !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* Mobile: stack vertically, form on top for thumb-zone conversion */
@media ( max-width: 860px ) {
    section.dcu-split-hero {
        padding: 2.5rem 1rem !important;
    }
    section.dcu-split-hero .dcu-split-hero__inner {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    section.dcu-split-hero .dcu-split-hero__right {
        order: -1; /* form first on mobile */
    }
    section.dcu-split-hero h1.dcu-split-hero__h1 {
        font-size: 1.75rem !important;
    }
}
