/* Nuvium Lead Capture — Modal */
#nlc-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 12, 20, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 16px;
    opacity: 0;
    animation: nlcFadeIn 0.35s ease forwards;
}

#nlc-overlay.nlc-hidden {
    animation: nlcFadeOut 0.3s ease forwards;
    pointer-events: none;
}

@keyframes nlcFadeIn  { from { opacity: 0 } to { opacity: 1 } }
@keyframes nlcFadeOut { from { opacity: 1 } to { opacity: 0 } }

#nlc-modal {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.22), 0 2px 8px rgba(0,0,0,0.08);
    transform: translateY(24px) scale(0.97);
    animation: nlcSlideUp 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes nlcSlideUp {
    to { transform: translateY(0) scale(1); }
}

.nlc-modal-deco {
    height: 5px;
    background: linear-gradient(90deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #533483 100%);
}

.nlc-modal-inner {
    padding: 36px 36px 32px;
    text-align: center;
}

.nlc-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ecff 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a2e;
}

#nlc-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #0d0f1a;
    margin: 0 0 10px;
    line-height: 1.3;
    letter-spacing: -0.3px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.nlc-sub {
    font-size: 0.93rem;
    color: #5a6175;
    margin: 0 0 26px;
    line-height: 1.55;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#nlc-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nlc-field-wrap input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 16px;
    font-size: 0.93rem;
    border: 1.5px solid #e2e5ef;
    border-radius: 10px;
    background: #f8f9fc;
    color: #0d0f1a;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-appearance: none;
}

.nlc-field-wrap input::placeholder { color: #a0a9c0; }

.nlc-field-wrap input:focus {
    border-color: #1a1a2e;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.08);
}

.nlc-field-wrap input.nlc-error {
    border-color: #e53e3e;
    background: #fff5f5;
}

#nlc-msg {
    font-size: 0.85rem;
    min-height: 0;
    transition: all 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#nlc-msg.error { color: #c53030; }
#nlc-msg.success { color: #276749; }

#nlc-submit {
    position: relative;
    width: 100%;
    padding: 15px 20px;
    font-size: 0.97rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    border: none;
    border-radius: 11px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    color: #fff;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s;
    box-shadow: 0 4px 20px rgba(15, 52, 96, 0.35);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin-top: 2px;
    -webkit-appearance: none;
}

#nlc-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(15, 52, 96, 0.45);
}

#nlc-submit:active:not(:disabled) { transform: translateY(0); }

#nlc-submit:disabled {
    opacity: 0.75;
    cursor: default;
}

.nlc-btn-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: nlcSpin 0.7s linear infinite;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes nlcSpin { to { transform: translateY(-50%) rotate(360deg); } }

#nlc-submit.nlc-loading .nlc-btn-loader { display: block; }
#nlc-submit.nlc-loading .nlc-btn-text { opacity: 0.6; }

.nlc-privacy {
    font-size: 0.78rem;
    color: #a0a9c0;
    margin: 14px 0 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (max-width: 480px) {
    .nlc-modal-inner { padding: 28px 22px 24px; }
    #nlc-title { font-size: 1.25rem; }
}
