/* Estilos para o popup de formulário */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    width: 90%;
    max-width: 500px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s ease;
}

.popup-overlay.active .popup-container {
    transform: translateY(0);
    opacity: 1;
}

.popup-header {
    background: var(--primary-green, #234022);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.popup-header h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.popup-close:hover {
    transform: rotate(90deg);
}

.popup-body {
    padding: 30px;
}

.popup-form .form-group {
    margin-bottom: 20px;
}

.popup-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.popup-form input[type="text"],
.popup-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.popup-form input[type="text"]:focus,
.popup-form input[type="email"]:focus {
    border-color: var(--primary-green, #234022);
    outline: none;
}

.popup-form .checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-top: 25px;
}

.popup-form input[type="checkbox"] {
    margin-top: 5px;
    margin-right: 10px;
}

.popup-form .checkbox-label {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.popup-footer {
    padding: 0 30px 30px;
    text-align: center;
}

.popup-btn {
    background-color: var(--primary-green, #234022);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.popup-btn:hover {
    background-color: #1a301a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(35, 64, 34, 0.3);
}

.popup-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Mensagem de sucesso */
.success-message {
    text-align: center;
    padding: 30px;
    display: none;
}

.success-message i {
    font-size: 4rem;
    color: var(--primary-green, #234022);
    margin-bottom: 20px;
    display: block;
}

.success-message h3 {
    margin-bottom: 15px;
    color: var(--primary-green, #234022);
}

.success-message p {
    margin-bottom: 30px;
    color: #666;
}

/* Responsivo */
@media (max-width: 768px) {
    .popup-container {
        width: 95%;
    }
    
    .popup-header h3 {
        font-size: 1.5rem;
    }
    
    .popup-body {
        padding: 20px;
    }
    
    .popup-footer {
        padding: 0 20px 20px;
    }
}

/* Animação de loading */
.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
    vertical-align: middle;
}

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

.btn-with-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}
