/* Estilos base para formulários dinâmicos */
.form_dynamic-form {
    width: 100%;
}

.form_form-container {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
}

.form_form-group {
    margin-bottom: 20px;
}

.form_form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffffff;
}

.form_form-input, .form_form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    color: black;  // cor do texto do form-----
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form_form-input:focus, .form_form-textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form_submit-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
}

.form_submit-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.form_submit-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form_response {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
}

.form_success {
    background-color: #d4edda;
    color: #155724;
}

.form_error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Popup Styles */
.form_popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
}

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

.form_popup-content {
    background: white;
    width: 400px;
    height: 100vh;
    padding: 30px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s;
    position: relative;
}

.form_popup-overlay.active .form_popup-content {
    transform: translateX(0);
}

.form_close-popup {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #7f8c8d;
    cursor: pointer;
    width: auto;
    padding: 5px;
}

.form_close-popup:hover {
    color: #34495e;
    transform: none;
}

.form_btn-popup {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin: 20px 0;
}

.form_btn-popup:hover {
    background: #c0392b;
}

/* Responsividade */
@media (max-width: 768px) {
    .form_popup-content {
        width: 100%;
    }
    
    .form_form-input, .form_form-textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .form_submit-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}
