/* access-gate.css — Overlay styles for provider page access gate */

.access-gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(15, 23, 42, 0.6);
}

.access-gate-modal {
    background: var(--card-bg, #fff);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 520px;
    width: 90%;
    padding: 40px;
    text-align: center;
}

.access-gate-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent, #2563eb);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.access-gate-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text, #1e293b);
    margin-bottom: 8px;
}

.access-gate-subtitle {
    font-size: 14px;
    color: var(--text-muted, #64748b);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Email input */
.access-gate-email {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text, #1e293b);
    background: var(--bg, #f8fafc);
    outline: none;
    transition: border-color 0.15s;
}
.access-gate-email:focus {
    border-color: var(--accent, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* T&C box */
.access-gate-tc {
    margin-top: 16px;
    max-height: 200px;
    overflow-y: auto;
    text-align: left;
    padding: 16px;
    background: var(--bg, #f8fafc);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-muted, #64748b);
}
.access-gate-tc h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text, #1e293b);
    margin-top: 10px;
    margin-bottom: 2px;
}
.access-gate-tc h4:first-child {
    margin-top: 0;
}

/* Checkbox row */
.access-gate-accept {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    text-align: left;
}
.access-gate-accept input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--accent, #2563eb);
    flex-shrink: 0;
}
.access-gate-accept label {
    font-size: 13px;
    color: var(--text, #1e293b);
    cursor: pointer;
    user-select: none;
}

/* Submit button */
.access-gate-submit {
    margin-top: 20px;
    width: 100%;
    padding: 11px 20px;
    background: var(--accent, #2563eb);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}
.access-gate-submit:hover:not(:disabled) {
    background: var(--accent-hover, #1d4ed8);
}
.access-gate-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Error message */
.access-gate-error {
    margin-top: 12px;
    padding: 8px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: var(--red, #dc2626);
    font-size: 13px;
    display: none;
}
.access-gate-error.visible {
    display: block;
}

/* Contact link for no-token state */
.access-gate-contact {
    display: inline-block;
    margin-top: 16px;
    color: var(--accent, #2563eb);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.access-gate-contact:hover {
    text-decoration: underline;
}

/* Scrollbar in T&C box */
.access-gate-tc::-webkit-scrollbar {
    width: 6px;
}
.access-gate-tc::-webkit-scrollbar-track {
    background: transparent;
}
.access-gate-tc::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

/* Responsive */
@media (max-width: 600px) {
    .access-gate-modal {
        padding: 28px 20px;
        margin: 16px;
    }
    .access-gate-tc {
        max-height: 160px;
    }
}


/* ══════════════════════════════════════════════════════════════
   LeadGate — email capture gate for customer page
   ══════════════════════════════════════════════════════════════ */

/* ── Soft Banner (bottom of screen) ── */
.lead-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: #102a43;
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.lead-banner.visible {
    transform: translateY(0);
}
.lead-banner-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.lead-banner-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}
.lead-banner-cta {
    flex: none;
    padding: 8px 20px;
    background: #f0b429;
    color: #102a43;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.lead-banner-cta:hover {
    background: #f7c948;
}
.lead-banner-dismiss {
    flex: none;
    width: 28px;
    height: 28px;
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    padding: 0;
}
.lead-banner-dismiss:hover {
    border-color: #fff;
    color: #fff;
}

/* ── Hard Gate Overlay ── */
.lead-gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(16, 42, 67, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lead-gate-overlay.visible {
    opacity: 1;
}
.lead-gate-overlay.closing {
    opacity: 0;
}

.lead-gate-modal {
    background: #fff;
    border-radius: 16px;
    padding: 40px 36px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.lead-gate-overlay.visible .lead-gate-modal {
    transform: translateY(0);
}
.lead-gate-overlay.closing .lead-gate-modal {
    transform: translateY(20px);
}

.lead-gate-header {
    text-align: center;
    margin-bottom: 24px;
}
.lead-gate-icon {
    margin-bottom: 12px;
}
.lead-gate-title {
    font-size: 20px;
    font-weight: 700;
    color: #102a43;
    margin: 0 0 8px;
}
.lead-gate-subtitle {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* ── Form ── */
.lead-gate-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.lead-gate-email {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}
.lead-gate-email:focus {
    border-color: #102a43;
}
.lead-gate-email::placeholder {
    color: #94a3b8;
}

.lead-gate-error {
    font-size: 13px;
    color: #dc2626;
    line-height: 1.4;
    display: none;
}
.lead-gate-error.visible {
    display: block;
}

.lead-gate-submit {
    width: 100%;
    padding: 12px;
    background: #102a43;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}
.lead-gate-submit:hover {
    background: #243b53;
}
.lead-gate-submit:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.lead-gate-privacy {
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
    line-height: 1.5;
    margin: 0;
}
.lead-gate-privacy a {
    color: #64748b;
    text-decoration: underline;
}
.lead-gate-privacy a:hover {
    color: #102a43;
}

/* ── Mobile (LeadGate) ── */
@media (max-width: 600px) {
    .lead-banner-content {
        flex-wrap: wrap;
        gap: 10px;
    }
    .lead-banner-text {
        flex-basis: 100%;
    }
    .lead-gate-modal {
        padding: 28px 20px;
        border-radius: 12px;
    }
}
