#lp-ff-modal,
#lp-ff-upload-modal {
    position: fixed;
    z-index: 100000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 24px 28px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
    width: 90%;
    max-width: 900px;
    height: auto;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 14px;
}

#lp-ff-upload-modal {
    max-width: 540px;
}

#lp-ff-upload-modal h3 {
    font-size: 18px;
    margin-bottom: 18px;
}

#lp-ff-modal h3,
#lp-ff-upload-modal h3 {
    margin-bottom: 15px;
}

#lp-ff-modal select,
#lp-ff-upload-modal input {
    width: 100%;
    margin-bottom: 15px;
}

#lp-ff-upload-modal .lp-ff-upload-dropzone {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    border: 2px dashed #b6c4f7;
    background: #f8faff;
    border-radius: 14px;
    padding: 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#lp-ff-upload-modal .lp-ff-upload-dropzone:hover {
    border-color: #4f6ef7;
    box-shadow: 0 10px 25px rgba(79, 110, 247, 0.15);
    background: #f1f5ff;
}

#lp-ff-upload-modal .lp-ff-upload-dropzone.is-dragover {
    border-color: #0b6efc;
    box-shadow: 0 12px 30px rgba(11, 110, 252, 0.2);
    background: #eef4ff;
}

#lp-ff-upload-modal .lp-ff-upload-dropzone-text {
    text-align: center;
    color: #5b6b8b;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}

#lp-ff-upload-modal .lp-ff-upload-dropzone-text em {
    font-style: normal;
    font-weight: 500;
    color: #8a97b6;
}

#lp-ff-upload-modal #lp-ff-pdf-file {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    margin: 0;
}

.lp-ff-upload-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lp-ff-upload-error {
    display: none;
    font-size: 12px;
    font-weight: 600;
    color: #b42318;
    background: #fef3f2;
    border: 1px solid #fecdca;
    padding: 8px 10px;
    border-radius: 10px;
}

.lp-ff-upload-has-error .lp-ff-upload-error {
    display: block;
}

.lp-ff-upload-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

#lp-ff-upload-btn {
    background: #fff;
    border-color: #fff;
    color: #0b6efc;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 600;
}

#lp-ff-upload-btn:hover {
    background: #fff;
    border-color: #fff;
}

.lp-ff-documentation {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #e1e4e8;
    background: #fff;
    border-radius: 8px;
}

.lp-ff-documentation__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.lp-ff-documentation__heading h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.lp-ff-documentation__line {
    flex: 1;
    height: 1px;
    background: #0b6efc;
    margin-left: 16px;
}

.lp-ff-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

.lp-ff-modal-title {
    font-weight: 600;
    font-size: 16px;
}

.lp-ff-modal-exit {
    border-radius: 8px;
    background: #fff;
    color: #0b6efc;
    border: 1px solid #0b6efc;
    padding: 6px 14px;
    font-weight: 600;
}

.lp-ff-modal-exit:hover {
    background: #0b6efc;
    color: #fff;
}

.lp-ff-select-form {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fff;
    min-width: 150px;
}

.lp-ff-documentation__actions {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.lp-ff-documentation__actions .button {
    border-radius: 8px;
    background: #fff;
    color: #0b6efc;
    border: 1px solid #0b6efc;
    padding: 8px 22px;
    font-weight: 600;
}

.lp-ff-documentation__actions .button:hover {
    background: #0b6efc;
    color: #fff;
}

.lp-ff-documents-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lp-ff-doc-item {
    background: #f7f9fc;
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 6px rgba(15, 40, 97, 0.08);
}

.lp-ff-doc-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 14px;
    width: 100%;
}

.lp-ff-doc-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e6edf6;
    overflow: hidden;
    flex: 0 0 44px;
}

.lp-ff-doc-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lp-ff-doc-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lp-ff-doc-content strong {
    font-size: 16px;
}

.lp-ff-doc-content span {
    font-size: 14px;
    color: #47536a;
}

.lp-ff-no-documents {
    font-style: italic;
    color: #666;
}


/* Aumentar tamaño del campo de firma en el modal */
#lp-ff-modal .signature-pad {
    width: 100% !important;
    height: 400px !important; /* Tamaño más grande para la firma */
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
}

#lp-ff-modal .fluentform-signature-pad-wrapper canvas {
    width: 422px !important;
    height: 202px !important; 
}