﻿/* --- CSS VARIABLES --- */
:root {
    --color-drab-700: #4b5320;
    --color-drab-900: #2a3321;
    --color-stone-100: #f5f5f4;
    --color-stone-300: #d6d3d1;
    --color-stone-400: #a8a29e;
    --color-stone-800: #292524;
    --color-stone-900: #1c1917;
    --color-gold: #d4af37;
    --color-bg-base: #e8e4c9;
    --color-input-bg: #fdfbf7;
    --font-stencil: 'Black Ops One', cursive;
    --font-typewriter: 'Courier Prime', monospace;
    --font-grunge: 'Special Elite', cursive;
}

/* --- GLOBAL STYLES --- */
html, body {
    background-color: var(--color-bg-base);
    color: var(--color-stone-800);
    font-family: var(--font-typewriter);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* --- BACKGROUND FX --- */
.bg-texture {
    position: fixed;
    inset: 0;
    background-image: url('https://www.transparenttextures.com/patterns/cardboard-flat.png');
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.bg-vignette {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.2) 100%);
    pointer-events: none;
    z-index: 0;
}

/* --- HEADER --- */
.pab-header {
    background-color: #1a1a1a;
    border-bottom: 4px solid #8c8c8c;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    padding: 1rem 2rem;
    position: relative;
    z-index: 50;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.star-badge {
    width: 3rem;
    height: 3rem;
    background-color: var(--color-drab-700);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(75,83,32,0.8);
}

.carbon-overlay {
    position: absolute;
    inset: 0;
    background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.3;
}

.header-title h1 {
    font-family: var(--font-stencil);
    font-size: 1.875rem;
    line-height: 1;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.header-title span.highlight {
    color: var(--color-gold);
}

.header-subtitle {
    display: block;
    font-size: 0.7rem;
    color: var(--color-stone-400);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: bold;
    margin-top: 0.25rem;
}

.classified-markings {
    display: none; /* Hidden on mobile */
    gap: 1rem;
    opacity: 0.5;
    align-items: center;
}

@media (min-width: 768px) {
    .classified-markings {
        display: flex;
    }

    .header-content {
        flex-direction: row;
    }
}

.markings-text {
    font-family: monospace;
    font-size: 0.75rem;
    color: #78716c;
    text-align: right;
}

/* --- MAIN LAYOUT --- */
main {
    flex-grow: 1;
    padding: 3rem 1rem;
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.content-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .content-grid {
        flex-direction: row;
        gap: 6rem;
    }
}

/* --- FORM CARD --- */
.form-column {
    width: 100%;
}

@media (min-width: 1024px) {
    .form-column {
        width: 41.666667%;
    }
}

.pab-card {
    background-color: rgba(245, 245, 244, 0.5);
    backdrop-filter: blur(4px);
    border: 2px solid var(--color-stone-300);
    padding: 2rem;
    box-shadow: 4px 4px 0px 0px rgba(75,83,32,0.4);
}

.section-header {
    border-left: 4px solid var(--color-drab-700);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

    .section-header h2 {
        font-family: var(--font-stencil);
        font-size: 1.875rem;
        color: var(--color-stone-900);
        margin: 0 0 0.5rem 0;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .section-header h3 {
        font-size: 1.125rem;
        color: var(--color-drab-700);
        font-weight: bold;
        margin: 0;
    }

hr.divider {
    border: 0;
    border-top: 2px solid var(--color-stone-400);
    margin: 1.5rem 0;
}

/* --- INPUTS --- */
.input-group-tactical {
    position: relative;
    margin-bottom: 1.25rem;
}

.tactical-input {
    width: 100%;
    background-color: var(--color-input-bg);
    border: 2px solid var(--color-stone-400);
    padding: 0.75rem;
    color: var(--color-stone-800);
    font-family: var(--font-typewriter);
    font-size: 1rem;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

    .tactical-input:focus {
        outline: none;
        border-color: var(--color-drab-700);
        box-shadow: 0 0 0 1px var(--color-drab-700);
    }

/* Corner Accents */
.corner-accent {
    position: absolute;
    width: 0.5rem;
    height: 0.5rem;
    border-color: #78716c;
    border-style: solid;
    pointer-events: none;
}

.tl {
    top: 0;
    left: 0;
    border-width: 2px 0 0 2px;
}

.br {
    bottom: 0;
    right: 0;
    border-width: 0 2px 2px 0;
}

/* --- BUTTONS & LINKS --- */
.btn-tactical {
    width: 100%;
    background-color: #323d26;
    color: var(--color-gold);
    padding: 1rem;
    font-family: var(--font-stencil);
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid #4b5320;
    box-shadow: 2px 2px 0px 0px #1a1a1a;
    cursor: pointer;
    transition: all 0.15s;
    margin-top: 0.5rem;
}

    .btn-tactical:hover {
        background-color: #4b5320;
    }

    .btn-tactical:active {
        transform: translateY(2px);
        box-shadow: none;
    }

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.link-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.link-tactical {
    color: #78716c;
    text-decoration: none;
    width: fit-content;
}

    .link-tactical:hover {
        color: var(--color-drab-700);
        text-decoration: underline;
        text-decoration-style: dashed;
    }

/* --- INFO PANEL --- */
.info-column {
    width: 100%;
    position: relative;
}

@media (min-width: 1024px) {
    .info-column {
        width: 58.333333%;
    }
}

.stamp-classified {
    position: absolute;
    top: -1.5rem;
    right: -1.5rem;
    transform: rotate(12deg);
    opacity: 0.1;
    pointer-events: none;
}

.stamp-border {
    border: 4px solid var(--color-drab-900);
    color: var(--color-drab-900);
    padding: 0.5rem;
    font-family: var(--font-stencil);
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.info-title {
    font-family: var(--font-stencil);
    font-size: 1.5rem;
    color: var(--color-stone-900);
    border-bottom: 2px solid var(--color-stone-300);
    padding-bottom: 0.5rem;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.info-text {
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: justify;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.privacy-box {
    border-left: 2px solid rgba(153, 27, 27, 0.3);
    padding-left: 1rem;
    font-style: italic;
    background-color: rgba(254, 242, 242, 0.2);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.signature-area {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--color-stone-400);
    width: 16rem;
}

.signature-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-stone-400);
}

/* --- FOOTER --- */
.pab-footer {
    margin-top: auto;
    background-color: #1a1a1a;
    border-top: 4px solid #8c8c8c;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.5);
    padding: 1.5rem 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--color-stone-400);
}

.footer-official {
    font-size: 0.625rem;
    color: var(--color-gold);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: bold;
    opacity: 0.9;
}

.text-danger-custom {
    color: #991b1b;
    font-size: 0.8rem;
    font-weight: bold;
    display: block;
    margin-top: 0.25rem;
}
