/* Nitro Lead - Frontend Styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --nl-gradient: linear-gradient(135deg, #1d4ed8 0%, #2563eb 40%, #dc2626 100%);
    --nl-gradient-btn: linear-gradient(90deg, #1d4ed8 0%, #dc2626 100%);
    --nl-red: #e53e3e;
    --nl-bg: #fff;
    --nl-overlay: rgba(0, 0, 0, 0.55);
    --nl-radius: 14px;
    --nl-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

/* Excerpt block */
.nl-excerpt-block {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--nl-radius);
    padding: 28px 32px;
    margin-bottom: 24px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: box-shadow 0.2s;
}
.nl-excerpt-block:hover {
    box-shadow: 0 4px 24px rgba(79,70,229,0.08);
}
.nl-excerpt-header {
    display: flex;
    align-items: center;
    gap: 14px;
}
.nl-excerpt-icon {
    font-size: 28px;
    line-height: 1;
}
.nl-excerpt-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}
.nl-excerpt-content {
    margin-top: 18px;
    color: #374151;
    line-height: 1.7;
}
.nl-excerpt-locked {
    margin-top: 14px;
}
.nl-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: gap 0.2s;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.nl-read-more:hover { gap: 10px; color: #1d4ed8; text-decoration: none; }
.nl-arrow { font-size: 1rem; }

/* Overlay */
.nl-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--nl-overlay);
    z-index: 99998;
    backdrop-filter: blur(3px);
    animation: nlFadeIn 0.2s ease;
}
.nl-overlay.active { display: block; }

@keyframes nlFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal */
.nl-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 99999;
    width: 92%;
    max-width: 460px;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--nl-shadow);
    padding: 40px 36px 36px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    animation: nlSlideIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.nl-modal.active { display: block; }

@keyframes nlSlideIn {
    from { opacity: 0; transform: translate(-50%, -54%) scale(0.93); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.nl-modal-close {
    position: absolute;
    top: 16px; right: 18px;
    background: none; border: none;
    font-size: 22px; cursor: pointer;
    color: #9ca3af;
    line-height: 1;
    padding: 4px;
    transition: color 0.15s;
}
.nl-modal-close:hover { color: #111; }

.nl-modal-icon {
    font-size: 40px;
    text-align: center;
    margin-bottom: 10px;
}
.nl-modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin: 0 0 8px;
}
.nl-modal-subtitle {
    font-size: 0.88rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.5;
}
.nl-switch-link {
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.88rem;
    color: #6b7280;
}
.nl-switch-link a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}
.nl-switch-link a:hover { text-decoration: underline; }

/* Form fields */
.nl-field {
    margin-bottom: 16px;
}
.nl-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.nl-field label .nl-required {
    color: var(--nl-red);
    margin-left: 2px;
}
.nl-field input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #111827;
    background: #f9fafb;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.nl-field input:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.13);
}
.nl-field input.nl-error-field {
    border-color: var(--nl-red);
    box-shadow: 0 0 0 3px rgba(229,62,62,0.1);
}
.nl-field-error {
    font-size: 0.8rem;
    color: var(--nl-red);
    margin-top: 5px;
    display: none;
    font-weight: 500;
}
.nl-field-error.visible { display: block; }
.nl-field-error a { color: var(--nl-red); text-decoration: underline; cursor: pointer; }

/* General error */
.nl-general-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--nl-red);
    margin-bottom: 14px;
    display: none;
    font-weight: 500;
}
.nl-general-error.visible { display: block; }

/* Submit button */
.nl-btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0.01em;
    transition: opacity 0.15s, transform 0.1s;
    background: var(--nl-gradient-btn);
    color: #fff;
    margin-top: 4px;
}
.nl-btn:hover { opacity: 0.92; transform: translateY(-1px); }
.nl-btn:active { transform: translateY(0); }
.nl-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

/* Security notice */
.nl-security-note {
    text-align: center;
    font-size: 0.78rem;
    color: #9ca3af;
    margin-top: 14px;
}

/* Success state */
.nl-success-msg {
    text-align: center;
    padding: 16px 0 8px;
    display: none;
}
.nl-success-msg.visible { display: block; }
.nl-success-msg p {
    color: #065f46;
    font-weight: 600;
    font-size: 1rem;
    background: #ecfdf5;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 0;
}

/* Forgot password link */
.nl-forgot-link {
    text-align: right;
    margin-top: -8px;
    margin-bottom: 14px;
}
.nl-forgot-link a {
    font-size: 0.82rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}
.nl-forgot-link a:hover { text-decoration: underline; }

/* Expand / collapse */
.nl-arrow-up { display: inline-block; }
.nl-read-more.nl-open { color: #2563eb; }
.nl-excerpt-content { margin-top: 18px; color: #374151; line-height: 1.7; }
