/* =========================================
   PRIME EIGHT - GATEWAY SPECIFIC STYLES
   ========================================= */

.gateway-wrapper {
    padding-top: 140px; 
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: radial-gradient(circle at 50% 30%, var(--neon-dim) 0%, var(--bg-base) 60%);
}

.gateway-header-block {
    text-align: center;
    margin-bottom: 3.5rem; 
}

.gw-title {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    color: var(--neon-primary);
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 0 15px var(--neon-dim);
}

.gw-subtitle {
    font-size: 0.9rem;
    color: #ffffff;
    letter-spacing: 0.3em;
    margin: 1.5rem 0 0 0; 
    text-transform: uppercase;
    font-family: var(--font-sans, sans-serif);
    animation: breathe-sub 4s ease-in-out infinite alternate;
}

@keyframes breathe-sub {
    0% { text-shadow: 0 0 5px var(--neon-primary), 0 0 10px var(--neon-dim); opacity: 0.8; }
    100% { text-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-primary), 0 0 30px var(--neon-dim); opacity: 1; }
}

.gateway-box {
    width: 100%;
    max-width: 1050px;
    background: #111111;
    border: 1px solid #222;
    border-top: 2px solid var(--neon-primary); 
    padding: 3rem;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.gw-tabs {
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid #222;
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
}

.gw-tab-btn {
    background: none;
    border: none;
    color: #555;
    font-family: var(--font-sans, sans-serif);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
}

.gw-tab-btn:hover { color: #aaa; }
.gw-tab-btn.active { color: var(--neon-primary); }

.form-view { display: none; }
.form-view.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* FLAWLESS HORIZONTAL ALIGNMENT GRID */
.nda-grid { 
    display: grid; 
    grid-template-columns: 55fr 45fr; 
    gap: 1.5rem 2.5rem; /* Forces consistent gaps between rows and columns */
}
.nda-grid > .gw-form-group, .nda-grid > .city-state-zip {
    margin-bottom: 0; /* Clears margins so grid handles vertical alignment */
}
.hidden-label { opacity: 0; user-select: none; }
.align-bottom { display: flex; flex-direction: column; justify-content: flex-end; }


.gw-form-group { margin-bottom: 1.5rem; display: flex; flex-direction: column; }
.gw-label { font-size: 0.7rem; color: #888; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.6rem; font-family: var(--font-sans, sans-serif); }

.gw-input, .gw-select { 
    width: 100%; box-sizing: border-box; min-width: 0; 
    background: #050505; border: 1px solid #222; color: #ffffff; 
    padding: 0.9rem 1rem; font-family: 'Montserrat', monospace, sans-serif; 
    font-size: 0.9rem; outline: none; transition: border-color 0.3s ease, box-shadow 0.3s ease; 
}
.gw-input:focus, .gw-select:focus { border-color: var(--neon-primary); box-shadow: 0 0 8px var(--neon-dim); }

.city-state-zip { display: grid; grid-template-columns: 2.2fr 0.8fr 1.2fr; gap: 1rem; }

/* PERFECT BUTTON MATCH */
.gw-action-btn { 
    width: 100%; 
    background: transparent; 
    border: 1px solid var(--neon-primary); 
    color: var(--neon-primary); 
    padding: 0.9rem 1rem; /* Matched exactly to gw-input */
    font-family: var(--font-sans, sans-serif); 
    font-size: 0.9rem; /* Matched exactly to gw-input */
    letter-spacing: 0.2em; 
    text-transform: uppercase; 
    cursor: pointer; 
    transition: all 0.3s ease; 
}
.gw-action-btn:hover { background: var(--neon-primary); color: #000000; box-shadow: 0 0 15px var(--neon-dim); }

#nda-document-box { display: none; background: #050505; padding: 2.5rem; border: 1px solid #222; height: 350px; overflow-y: auto; color: #ccc; font-family: var(--font-sans, sans-serif); font-size: 0.9rem; line-height: 1.8; margin-bottom: 1.5rem; }
#nda-agreements { display: none; align-items: flex-start; gap: 15px; margin-bottom: 1.5rem; }

.gw-checkbox { margin-top: 5px; cursor: pointer; }
.gw-checkbox-label { font-size: 0.85rem; color: #888; line-height: 1.6; font-family: var(--font-sans, sans-serif); }
.gw-checkbox-label strong { color: #ffffff; }

.gw-status { margin-top: 1.5rem; text-align: center; font-family: monospace; font-size: 0.9rem; display: none; }

.gw-instruction { text-align: center; margin-top: 1.5rem; }
.gw-instruction a { color: var(--neon-primary); font-family: var(--font-sans, sans-serif); font-size: 0.85rem; text-decoration: none; transition: text-shadow 0.3s ease; }
.gw-instruction a:hover { text-shadow: 0 0 8px var(--neon-primary); }

#auth-wrapper { max-width: 400px; margin: 0 auto; }

/* =========================================
   GATEWAY MOBILE LOCKOUT 
   ========================================= */
#mobile-lockout { display: none; }

@media (max-width: 950px) {
    .gateway-wrapper { display: none !important; }
    #mobile-lockout {
        display: flex; position: fixed; inset: 0; z-index: 9999;
        background-color: #0a0a0a; background-image: radial-gradient(circle at 50% 50%, #222 0%, #0a0a0a 70%);
        align-items: center; justify-content: center; text-align: center; padding: 2rem;
    }
    .lockout-logo { font-size: 1.2rem; letter-spacing: 0.4em; margin-bottom: 2.5rem; display: block; }
    .lockout-title { color: #ff4433; font-size: 1.5rem; letter-spacing: 0.2em; margin-bottom: 1rem; text-transform: uppercase; font-family: 'Space Grotesk', sans-serif; }
    .lockout-desc { color: #aaa; font-size: 0.85rem; letter-spacing: 0.1em; line-height: 1.6; max-width: 300px; margin: 0 auto 2.5rem auto; text-wrap: balance; font-family: 'Montserrat', sans-serif; }
    .lockout-btn { border-color: #ff4433 !important; color: #ff4433 !important; box-shadow: 0 0 8px rgba(255, 68, 51, 0.2) !important; }
    .lockout-btn:hover { background: rgba(255, 68, 51, 0.1) !important; color: #fff !important; box-shadow: 0 0 15px rgba(255, 68, 51, 0.4) !important; }
}