/* Lead capture form styles */
.wc-pdf-catalog-form {
    max-width: 720px;
    background: #fff;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    direction: ltr;
    text-align: left;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.wc-pdf-catalog-form .wc-pdf-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
    margin-bottom: 20px;
}

.wc-pdf-catalog-form .wc-pdf-field {
    margin: 0;
}

.wc-pdf-catalog-form .wc-pdf-field-full {
    grid-column: 1 / -1;
}

.wc-pdf-catalog-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 15px;
}

.wc-pdf-required {
    color: #d63638;
    font-weight: 700;
}

.wc-pdf-catalog-form input[type="text"],
.wc-pdf-catalog-form input[type="email"],
.wc-pdf-catalog-form input[type="tel"],
.wc-pdf-catalog-form input[type="number"],
.wc-pdf-catalog-form select,
.wc-pdf-catalog-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 15px;
}

.wc-pdf-catalog-form input.wc-pdf-field-error,
.wc-pdf-catalog-form textarea.wc-pdf-field-error {
    border-color: #d63638 !important;
    box-shadow: 0 0 0 1px rgba(214, 54, 56, 0.3);
}

.wc-pdf-form-errors {
    display: none;
    background: #fcf0f1;
    border: 1px solid #d63638;
    border-radius: 6px;
    color: #8a1f21;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 13px;
}

.wc-pdf-form-errors ul {
    margin: 0;
    padding-left: 18px;
}

.wc-pdf-catalog-form .wc-pdf-actions {
    margin-top: 8px;
}

.wc-pdf-catalog-form .wc-pdf-submit {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.wc-pdf-catalog-form .wc-pdf-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success box shown after a completed submission */
.wc-pdf-success-box {
    direction: ltr;
    text-align: left;
}

.wc-pdf-success-message {
    font-size: 14px;
    color: #007a3d;
    margin: 0 0 10px;
}

.wc-pdf-download-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.wc-pdf-download-link {
    display: inline-block;
    background: #0073aa;
    color: #fff !important;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 3px;
    font-weight: 600;
}

.wc-pdf-share-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.wc-pdf-share-label {
    color: #666;
    font-size: 13px;
    width: 100%;
    margin-bottom: 2px;
}

.wc-pdf-share {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    background: #f1f1f1;
    color: #222;
    text-decoration: none;
    cursor: pointer;
    font-size: 13px;
}

.wc-pdf-share.whatsapp {
    background: #25d366;
    color: #fff;
}

.wc-pdf-share.telegram {
    background: #0088cc;
    color: #fff;
}

.wc-pdf-share.email {
    background: #555;
    color: #fff;
}

/* ------------------------------------------------------------------
 * Lead form popup (modal): floating overlay with a smooth fade + scale effect
 * ------------------------------------------------------------------ */

body.wc-pdf-modal-open {
    overflow: hidden;
}

.wc-pdf-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(20, 20, 20, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease;
    box-sizing: border-box;
}

.wc-pdf-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.wc-pdf-modal {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 85vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    transform: translateY(-16px) scale(0.96);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.wc-pdf-modal-body {
    padding-top: 34px;
}

.wc-pdf-modal-overlay.is-open .wc-pdf-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.wc-pdf-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    line-height: 1;
    background: transparent;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    color: #444;
    cursor: pointer;
    padding: 0;
}

.wc-pdf-modal-close:hover {
    background: #f1f1f1;
    color: #222;
}

.wc-pdf-modal-body .wc-pdf-catalog-form {
    max-width: 100%;
    padding: 0;
    border: none;
    box-shadow: none;
}
