/* Overlay do Popup */
.horus-pdf-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    animation: fadeIn 0.3s ease;
}

.horus-pdf-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Container do Popup */
.horus-pdf-popup {
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
}

/* Header */
.horus-pdf-popup-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.horus-pdf-popup-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #01301B;
    font-weight: 600;
    padding-right: 60px;
}

.horus-pdf-popup-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Botão Fechar */
.horus-pdf-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none !important;
    border: 1px solid #01301B !important;
    font-size: 28px;
    color: #01301B !important;
    cursor: pointer;
    line-height: 0;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.horus-pdf-close:hover {
    color: #333 !important;
}

/* Body */
.horus-pdf-popup-body {
    padding: 30px;
}

/* Formulário */
.horus-pdf-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.horus-pdf-form-group {
    display: flex;
    flex-direction: column;
}

.horus-pdf-form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.horus-pdf-form-group label .required {
    color: #e74c3c;
    margin-left: 3px;
}

.horus-pdf-form-group input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s;
    font-family: inherit;
}

.horus-pdf-form-group input:focus {
    outline: none;
    border-color: #B5904A;
    box-shadow: 0 0 0 3px rgba(181, 144, 74, 0.1);
}

.horus-pdf-form-group input.error {
    border-color: #e74c3c;
}

/* Botão Submit */
.horus-pdf-submit {
    background: transparent !important;
    color: #01301B !important;
    border: 1px solid #01301B !important;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.horus-pdf-submit:hover {
    background-color: #01301B !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 48, 27, 0.3);
}

.horus-pdf-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Mensagens */
.horus-pdf-message {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
    animation: slideDown 0.3s ease;
}

.horus-pdf-message.show {
    display: block;
}

.horus-pdf-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.horus-pdf-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading */
.horus-pdf-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsivo */
@media (max-width: 600px) {
    .horus-pdf-popup {
        width: 95%;
        margin: 20px;
    }
    
    .horus-pdf-popup-header,
    .horus-pdf-popup-body {
        padding: 20px;
    }
    
    .horus-pdf-popup-header h2 {
        font-size: 20px;
    }
}

/* reCAPTCHA Badge */
.grecaptcha-badge {
    z-index: 1000000 !important;
}

