/* ===========================================================================
   NegotiateHer — email gate
   Shown once before the course. Reuses style.css tokens.
   =========================================================================== */

.gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: rgba(33, 37, 41, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    overflow-y: auto;
}

.gate-overlay[hidden] { display: none; }

/* While the gate is up the course must not be reachable behind it. */
body.gate-locked { overflow: hidden; }

.gate-card {
    width: 100%;
    max-width: 470px;
    margin: auto;
    padding: 36px 34px 30px;
    border-radius: var(--border-radius);
    background-color: var(--white);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.gate-logo img { height: 34px; width: auto; display: block; margin-bottom: 22px; }

.gate-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-color);
}

.gate-lede {
    margin-top: 10px;
    font-size: 0.95rem;
    color: #495057;
}

.gate-field { margin-top: 18px; }

.gate-field label {
    display: block;
    font-size: 0.87rem;
    font-weight: 600;
    margin-bottom: 7px;
}

.gate-field input[type="text"],
.gate-field input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--text-color);
    transition: border-color 0.18s ease;
}

.gate-field input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.gate-field input.is-invalid { border-color: var(--danger-color); }

.gate-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 20px;
    font-size: 0.83rem;
    line-height: 1.5;
    color: #495057;
}

.gate-consent input { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; }

.gate-error {
    margin-top: 12px;
    min-height: 1.1em;
    font-size: 0.84rem;
    color: var(--danger-color);
}

.gate-card .btn {
    width: 100%;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.gate-card .btn:disabled { opacity: 0.5; cursor: not-allowed; }

.gate-fineprint {
    margin-top: 16px;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #adb5bd;
    text-align: center;
}

@media (max-width: 520px) {
    .gate-card { padding: 26px 20px 22px; }
    .gate-card h2 { font-size: 1.28rem; }
}

@media (prefers-reduced-motion: reduce) {
    .gate-field input { transition: none; }
}
