/* =====================================================
   PDF Lead Capture – Modal Styles
   ===================================================== */

#plc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

#plc-overlay.plc-active {
    display: flex;
}

#plc-modal {
    background: #ffffff;
    padding: 40px 36px 32px;
    border-radius: 12px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.22);
    position: relative;
    font-family: inherit;
    box-sizing: border-box;
}

#plc-modal h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    color: #1a1a1a;
}

#plc-modal p {
    margin: 0 0 24px;
    color: #666;
    font-size: 0.93rem;
    line-height: 1.5;
}

#plc-modal label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    letter-spacing: 0.02em;
}

#plc-modal input[type="text"],
#plc-modal input[type="email"] {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #ddd;
    border-radius: 7px;
    font-size: 0.95rem;
    margin-bottom: 4px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    outline: none;
}

#plc-modal input[type="text"]:focus,
#plc-modal input[type="email"]:focus {
    border-color: #c0392b;
}

#plc-modal input.plc-invalid {
    border-color: #e74c3c;
}

.plc-error {
    display: block;
    font-size: 0.8rem;
    color: #e74c3c;
    margin-bottom: 14px;
    min-height: 1em;
}

#plc-modal button[type="submit"] {
    width: 100%;
    padding: 13px;
    background: #c0392b;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
    letter-spacing: 0.02em;
}

#plc-modal button[type="submit"]:hover {
    background: #a93226;
}

#plc-modal button[type="submit"]:disabled {
    background: #aaa;
    cursor: not-allowed;
}

#plc-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

#plc-close:hover {
    color: #333;
}

@media (max-width: 480px) {
    #plc-modal {
        padding: 32px 20px 24px;
    }
}
