/* =====================================================================
   Popup Lead Capture v1.1 – Frontend Styles
   ===================================================================== */

/* Overlay */
.plc-overlay {
    position: fixed;
    inset: 0;
    background: var(--plc-overlay, rgba(0,0,0,0.6));
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    animation: plcFadeIn .25s ease;
}

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

/* Popup box */
.plc-popup {
    background: var(--plc-bg, #fff);
    color: var(--plc-text, #333);
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    max-width: 480px;
    width: 100%;
    position: relative;
    overflow: hidden;
    animation: plcSlideUp .3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes plcSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Close button */
.plc-close {
    position: sticky;
    top: 10px;
    float: right;
    margin: 10px 14px 0 0;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: .45;
    padding: 2px 6px;
    z-index: 2;
    transition: opacity .15s;
}
.plc-close:hover { opacity: 1; }

/* Banner image */
.plc-image img {
    width: 100%;
    display: block;
    max-height: 220px;
    object-fit: cover;
}

/* Content */
.plc-content {
    padding: 10px 32px 32px;
    clear: both;
}

.plc-headline {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--plc-text, #333);
}

.plc-subheadline {
    margin: 0 0 12px;
    font-size: 15px;
    opacity: .75;
}

.plc-body {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.6;
}

/* Form */
.plc-form { margin: 0; }

.plc-field { margin-bottom: 14px; }

.plc-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--plc-text, #333);
}

.plc-req { color: #e74c3c; }

.plc-field input,
.plc-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    background: #fafafa;
    box-sizing: border-box;
    transition: border-color .2s;
    outline: none;
}

.plc-field input:focus,
.plc-field textarea:focus {
    border-color: var(--plc-btn, #e74c3c);
    background: #fff;
}

.plc-field textarea {
    resize: vertical;
    min-height: 80px;
}

/* Error */
.plc-error {
    color: #c0392b;
    font-size: 13px;
    margin-bottom: 10px;
    min-height: 18px;
}

/* Submit */
.plc-submit {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--plc-btn, #e74c3c);
    color: var(--plc-btn-text, #fff);
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: filter .2s, transform .1s;
    letter-spacing: .02em;
}
.plc-submit:hover   { filter: brightness(1.1); }
.plc-submit:active  { transform: scale(.98); }
.plc-submit:disabled { opacity: .6; cursor: not-allowed; }

/* Success */
.plc-success {
    text-align: center;
    padding: 20px 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #27ae60;
}

/* ── Mobile ─────────────────────────────────────────────────────────── */
@media (max-width: 520px) {
    .plc-content  { padding: 10px 18px 24px; }
    .plc-headline { font-size: 18px; }
}
