/*
 * BPB Tactical Intake — WordPress Stylesheet
 *
 * Placement options (choose one):
 *   A) Copy this file to your child theme as:
 *      /wp-content/themes/hero-child/bpb-tactical.css
 *      Then enqueue it via functions.php (see functions-snippet.php)
 *
 *   B) Paste the entire contents into:
 *      WP Admin → Appearance → Customise → Additional CSS
 *      (easier, no file access needed)
 *
 * All class names are prefixed "bpb-" to avoid conflicts
 * with the Hero theme's own styles.
 */

/* ── CSS Custom Properties ──────────────────────────── */
:root {
    --bpb-bg-deep:       #0a0e17;
    --bpb-bg-surface:    #111827;
    --bpb-cyan:          #00E5FF;
    --bpb-cyan-dim:      rgba(0, 229, 255, 0.12);
    --bpb-cyan-glow:     rgba(0, 229, 255, 0.4);
    --bpb-accent:        #00C9DB;
    --bpb-text-primary:  #e8edf5;
    --bpb-text-secondary:#8899b3;
    --bpb-text-muted:    #5a6a80;
    --bpb-border:        rgba(0, 229, 255, 0.12);
    --bpb-border-focus:  rgba(0, 229, 255, 0.5);
    --bpb-success:       #00e676;
    --bpb-danger:        #ff4d6a;
    --bpb-warning:       #ffb74d;
    --bpb-font-primary:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --bpb-font-mono:     'Roboto Mono', 'Courier New', Courier, monospace;
    --bpb-radius-sm:     6px;
    --bpb-radius-md:     12px;
    --bpb-radius-lg:     20px;
    --bpb-ease:          cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════
   HERO SECTION WRAPPER
   ═══════════════════════════════════════════════════════ */
.bpb-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 229, 255, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 201, 219, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, var(--bpb-bg-deep) 0%, #0d1220 100%);
    overflow: hidden;
    font-family: var(--bpb-font-primary);
    color: var(--bpb-text-primary);
    box-sizing: border-box;
}

.bpb-hero *,
.bpb-hero *::before,
.bpb-hero *::after {
    box-sizing: border-box;
}

/* ── Animated Grid Overlay ── */
.bpb-hero__grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    animation: bpb-grid-drift 20s linear infinite;
}

@keyframes bpb-grid-drift {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* ── Scanline ── */
.bpb-hero__scanline {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--bpb-cyan), transparent);
    opacity: 0.3;
    animation: bpb-scanline 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes bpb-scanline {
    0%   { top: -4px; opacity: 0; }
    10%  { opacity: 0.3; }
    90%  { opacity: 0.3; }
    100% { top: 100%; opacity: 0; }
}

/* ── Two-column layout ── */
.bpb-hero__container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* ═══════════════════════════════════════════════════════
   PRIMARY COLUMN (Left)
   ═══════════════════════════════════════════════════════ */
.bpb-hero__primary {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ── Status Bar ── */
.bpb-status-bar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    background: var(--bpb-cyan-dim);
    border: 1px solid var(--bpb-border);
    border-radius: 100px;
    width: fit-content;
    font-family: var(--bpb-font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--bpb-cyan);
    text-transform: uppercase;
}

.bpb-status-bar__dot {
    width: 8px;
    height: 8px;
    background: var(--bpb-success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--bpb-success);
    animation: bpb-dot-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes bpb-dot-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--bpb-success); }
    50%       { opacity: 0.5; box-shadow: 0 0 3px var(--bpb-success); }
}

/* ── H1 Title ── */
.bpb-hero .bpb-hero__title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 30%, var(--bpb-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

/* ── Subtitle ── */
.bpb-hero__subtitle {
    font-size: 1.1rem;
    color: var(--bpb-text-secondary);
    line-height: 1.7;
    max-width: 500px;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════
   DIRECT COMMAND LINE TERMINAL BLOCK
   ═══════════════════════════════════════════════════════ */
.bpb-command-line {
    background: rgba(10, 14, 23, 0.9);
    border: 1px solid var(--bpb-border);
    border-radius: var(--bpb-radius-md);
    overflow: hidden;
    box-shadow:
        0 0 30px rgba(0, 229, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s var(--bpb-ease), box-shadow 0.2s var(--bpb-ease);
}

.bpb-command-line:hover {
    border-color: var(--bpb-border-focus);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.1);
}

.bpb-command-line__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--bpb-border);
}

.bpb-command-line__dots {
    display: flex;
    gap: 6px;
}

.bpb-command-line__dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.bpb-command-line__dots span:nth-child(1) { background: #ff5f57; }
.bpb-command-line__dots span:nth-child(2) { background: #febc2e; }
.bpb-command-line__dots span:nth-child(3) { background: #28c840; }

.bpb-command-line__title {
    font-family: var(--bpb-font-mono);
    font-size: 0.7rem;
    color: var(--bpb-text-muted);
    letter-spacing: 0.05em;
}

.bpb-command-line__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bpb-command-line__icon-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bpb-command-line__icon {
    width: 22px;
    height: 22px;
    color: var(--bpb-cyan);
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px var(--bpb-cyan-glow));
}

.bpb-command-line__label {
    font-family: var(--bpb-font-mono);
    font-size: 0.8rem;
    color: var(--bpb-text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── Tactical Number (blinking click-to-call) ── */
.tactical-number {
    font-family: 'Courier New', Courier, monospace;
    color: #00E5FF;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(0, 229, 255, 0.5);
    animation: signal-pulse 2s infinite;
    font-size: 1.5rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    transition: text-shadow 0.2s var(--bpb-ease);
}

.tactical-number:hover {
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.8), 0 0 30px rgba(0, 229, 255, 0.4);
    color: #00E5FF;
}

.tactical-number__prefix {
    color: var(--bpb-success);
    font-size: 0.85rem;
    font-weight: 400;
}

@keyframes signal-pulse {
    0%   { opacity: 1; }
    50%  { opacity: 0.7; }
    100% { opacity: 1; }
}

.bpb-command-line__cursor {
    font-family: var(--bpb-font-mono);
    color: var(--bpb-cyan);
    font-size: 0.9rem;
    animation: bpb-cursor-blink 1s step-end infinite;
    align-self: flex-start;
}

@keyframes bpb-cursor-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ── Trust Badges ── */
.bpb-trust-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.bpb-trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--bpb-text-muted);
    font-weight: 500;
}

.bpb-trust-badge svg {
    width: 16px;
    height: 16px;
    color: var(--bpb-cyan);
    opacity: 0.7;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   INTAKE FORM — Glassmorphism Container
   ═══════════════════════════════════════════════════════ */
.bpb-intake {
    background: rgba(17, 24, 39, 0.55);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-radius: var(--bpb-radius-lg);
    padding: 36px;
    box-shadow:
        0 8px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 229, 255, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.bpb-intake::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--bpb-cyan), transparent);
    opacity: 0.6;
}

/* ── Form Header ── */
.bpb-intake__header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bpb-border);
}

.bpb-intake__header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bpb-cyan-dim);
    border-radius: var(--bpb-radius-sm);
    margin-bottom: 14px;
}

.bpb-intake__header-icon svg {
    width: 22px;
    height: 22px;
    color: var(--bpb-cyan);
}

.bpb-intake__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bpb-text-primary);
    letter-spacing: -0.01em;
    margin: 0 0 6px;
}

.bpb-intake__subtitle {
    font-size: 0.8rem;
    color: var(--bpb-text-muted);
    font-family: var(--bpb-font-mono);
    letter-spacing: 0.03em;
    margin: 0;
}

/* ── Form Layout ── */
.bpb-intake__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bpb-intake__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.bpb-intake__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bpb-intake__label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--bpb-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.bpb-intake__label span {
    color: var(--bpb-cyan);
}

/* ── Inputs ── */
.bpb-intake__input {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: var(--bpb-radius-sm) !important;
    padding: 12px 14px !important;
    font-family: var(--bpb-font-primary) !important;
    font-size: 0.9rem !important;
    color: var(--bpb-text-primary) !important;
    transition: border-color 0.2s var(--bpb-ease), box-shadow 0.2s var(--bpb-ease) !important;
    outline: none !important;
    width: 100% !important;
    box-shadow: none !important;
}

.bpb-intake__input::placeholder {
    color: var(--bpb-text-muted);
    opacity: 0.6;
}

.bpb-intake__input:focus {
    border-color: var(--bpb-border-focus) !important;
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1), 0 0 20px rgba(0, 229, 255, 0.05) !important;
}

.bpb-intake__input--error {
    border-color: var(--bpb-danger) !important;
    box-shadow: 0 0 0 3px rgba(255, 77, 106, 0.15) !important;
}

.bpb-intake__textarea {
    resize: vertical;
    min-height: 90px;
}

/* ── POPIA Checkbox ── */
.bpb-intake__checkbox-group {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    background: rgba(0, 229, 255, 0.03);
    border: 1px solid var(--bpb-border);
    border-radius: var(--bpb-radius-sm);
    transition: border-color 0.2s var(--bpb-ease);
}

.bpb-intake__checkbox-group--error {
    border-color: var(--bpb-danger);
    box-shadow: 0 0 0 3px rgba(255, 77, 106, 0.15);
}

.bpb-intake__checkbox {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--bpb-cyan);
    cursor: pointer;
}

.bpb-intake__checkbox-label {
    font-size: 0.75rem;
    color: var(--bpb-text-secondary);
    line-height: 1.6;
    cursor: pointer;
}

.bpb-intake__checkbox-label strong {
    color: var(--bpb-cyan);
    font-weight: 600;
}

/* ── Submit Button ── */
.bpb-intake__submit {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 14px 24px !important;
    margin-top: 6px !important;
    background: linear-gradient(135deg, var(--bpb-cyan) 0%, var(--bpb-accent) 100%) !important;
    color: var(--bpb-bg-deep) !important;
    font-family: var(--bpb-font-primary) !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    border: none !important;
    border-radius: var(--bpb-radius-sm) !important;
    cursor: pointer !important;
    transition: transform 0.2s var(--bpb-ease), box-shadow 0.2s var(--bpb-ease) !important;
    position: relative !important;
    overflow: hidden !important;
    text-decoration: none !important;
}

.bpb-intake__submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 30px rgba(0, 229, 255, 0.3) !important;
}

.bpb-intake__submit:active {
    transform: translateY(0) !important;
}

.bpb-intake__submit svg {
    width: 18px;
    height: 18px;
}

/* ═══════════════════════════════════════════════════════
   ALERTS
   ═══════════════════════════════════════════════════════ */
.bpb-alert {
    padding: 14px 16px;
    border-radius: var(--bpb-radius-sm);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.bpb-alert--error {
    background: rgba(255, 77, 106, 0.1);
    border: 1px solid rgba(255, 77, 106, 0.3);
    color: #ff8fa3;
}

.bpb-alert--warning {
    background: rgba(255, 183, 77, 0.1);
    border: 1px solid rgba(255, 183, 77, 0.3);
    color: #ffcc80;
}

.bpb-alert strong { font-weight: 700; }

/* ═══════════════════════════════════════════════════════
   SUCCESS CONFIRMATION
   ═══════════════════════════════════════════════════════ */
.bpb-confirmation {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.3);
    border-radius: var(--bpb-radius-sm);
    margin-bottom: 20px;
}

.bpb-confirmation__icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 230, 118, 0.15);
    border-radius: 50%;
    color: var(--bpb-success);
}

.bpb-confirmation__icon svg {
    width: 20px;
    height: 20px;
}

.bpb-confirmation__text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.85rem;
}

.bpb-confirmation__text strong {
    color: var(--bpb-success);
    font-weight: 700;
    font-size: 0.95rem;
}

.bpb-confirmation__text span {
    color: var(--bpb-text-secondary);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .bpb-hero__container {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 0 24px;
    }
    .bpb-hero__primary {
        text-align: center;
        align-items: center;
    }
    .bpb-hero__subtitle { max-width: 560px; }
    .bpb-trust-badges { justify-content: center; }
    .bpb-hero { padding: 80px 0 50px; }
}

@media (max-width: 640px) {
    .bpb-hero { padding: 60px 0 40px; }
    .bpb-hero__container { padding: 0 16px; gap: 36px; }
    .bpb-intake { padding: 22px 16px; }
    .bpb-intake__row { grid-template-columns: 1fr; }
    .tactical-number { font-size: 1.2rem; }
    .bpb-trust-badges { flex-direction: column; align-items: center; gap: 12px; }
    .bpb-command-line__body { padding: 14px; }
}

/* ═══════════════════════════════════════════════════════
   THEME OVERRIDES — FORCE DARK MODE
   This block targets the specific body class of our template
   to override white headers/footers.
   ═══════════════════════════════════════════════════════ */
.page-template-page-tactical-contact,
.page-template-page-tactical-contact header,
.page-template-page-tactical-contact footer,
.page-template-page-tactical-contact .site-header,
.page-template-page-tactical-contact .site-footer,
.page-template-page-tactical-contact .elementor-location-header,
.page-template-page-tactical-contact .elementor-location-footer,
.page-template-page-tactical-contact [data-elementor-type="header"],
.page-template-page-tactical-contact [data-elementor-type="footer"] {
    background-color: #0a0e17 !important;
    background-image: none !important;
}

/* Force all text/links/icons to white */
.page-template-page-tactical-contact header *,
.page-template-page-tactical-contact footer *,
.page-template-page-tactical-contact [data-elementor-type="header"] *,
.page-template-page-tactical-contact [data-elementor-type="footer"] * {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Ensure the main site background matches on this page */
.page-template-page-tactical-contact .site-main,
.page-template-page-tactical-contact #content,
.page-template-page-tactical-contact .elementor {
    background-color: #0a0e17 !important;
}

