/* ===== PDF Lead Capture v3 — Widget Front-End ===== */

.plc-widget {
    --plc-color: #2563eb;
    max-width: 460px;
    margin: 2rem auto;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 18px;
    padding: 2.5rem 2rem;
    box-shadow: 0 6px 40px rgba(0,0,0,.09);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    text-align: center;
    box-sizing: border-box;
}

.plc-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: .6rem;
    animation: plc-bounce .5s ease both;
}

@keyframes plc-bounce {
    0%   { transform: scale(.7); opacity: 0 }
    70%  { transform: scale(1.1) }
    100% { transform: scale(1);  opacity: 1 }
}

.plc-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 .5rem;
    line-height: 1.3;
}

.plc-desc {
    font-size: .95rem;
    color: #6b7280;
    margin: 0 0 1.25rem;
    line-height: 1.55;
}

.plc-form-group {
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.plc-email-input {
    width: 100%;
    padding: .8rem 1rem;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    background: #fafafa;
}

.plc-email-input:focus {
    border-color: var(--plc-color);
    background: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--plc-color) 15%, transparent);
}

.plc-btn {
    display: inline-block;
    padding: .85rem 1.5rem;
    background: var(--plc-color);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: filter .2s, transform .15s;
    line-height: 1.4;
}

.plc-btn:hover  { filter: brightness(1.1); transform: translateY(-1px); }
.plc-btn:active { filter: brightness(.95); transform: translateY(0); }

.plc-privacy {
    font-size: .8rem;
    color: #9ca3af;
    margin: .85rem 0 0;
}

.plc-error {
    font-size: .88rem;
    color: #dc2626;
    margin: .5rem 0 0;
    min-height: 1.2em;
}

.plc-step-success .plc-icon {
    animation: plc-pop .45s cubic-bezier(.175,.885,.32,1.275) both;
}

@keyframes plc-pop {
    0%   { transform: scale(0); opacity: 0 }
    100% { transform: scale(1); opacity: 1 }
}

.plc-btn-download { background: #16a34a; margin-top: .5rem; }
.plc-btn-download:hover { filter: brightness(1.08); }

.plc-btn.is-loading {
    pointer-events: none;
    opacity: .75;
}

.plc-btn.is-loading::after {
    content: '';
    display: inline-block;
    width: 13px; height: 13px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: plc-spin .65s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes plc-spin { to { transform: rotate(360deg); } }

@media (max-width: 500px) {
    .plc-widget { padding: 1.75rem 1.1rem; }
    .plc-title  { font-size: 1.1rem; }
}
