/* 
 * Shared Form Styles - Clean and Simple
 */

/* Form Field Styling */
.form-field {
    margin-bottom: 1rem;
}

.form-field .rz-label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: var(--rz-text-color);
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

/* Switch Group */
.switch-group {
    margin-bottom: 1rem;
}

.switch-group .form-field {
    margin-bottom: 0.75rem;
}

/* Default Fieldset - Simple like Avaliacao Geral */
.rz-fieldset {
    margin-bottom: 1.5rem;
}

.rz-fieldset .rz-fieldset-legend {
    color: var(--rz-primary);
    font-weight: bold;
    border: none !important;
}

/* Remove all fieldset borders by default */
.rz-fieldset .rz-fieldset-legend,
.rz-fieldset legend,
fieldset legend {
    border-bottom: none !important;
}

/* Section Cards - Only for special types */
.summary-card {
    background: linear-gradient(135deg, #e0f4f8 0%, #c5eaf0 100%);
    border: 1px solid #85d4e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    color: #014f68;
}

.summary-card .rz-fieldset-legend {
    color: #016B8A;
    font-weight: 600;
    margin-bottom: 1rem;
    border: none;
}

.highlight-card {
    background: linear-gradient(135deg, #e1f5e1 0%, #c8e6c9 100%);
    border: 1px solid #81c784;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.highlight-card .rz-fieldset-legend {
    color: #2e7d32;
    font-weight: 600;
    margin-bottom: 1rem;
    border: none;
}

.warning-card {
    background: linear-gradient(135deg, #fff4e1 0%, #ffebcd 100%);
    border: 1px solid #ffd89b;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.warning-card .rz-fieldset-legend {
    color: #cc8800;
    font-weight: 600;
    margin-bottom: 1rem;
    border: none;
}

.info-card {
    background: linear-gradient(135deg, #e0f9f9 0%, #b8f0f0 100%);
    border: 1px solid #2AC6C9;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-card .rz-fieldset-legend {
    color: #016B8A;
    font-weight: 600;
    margin-bottom: 1rem;
    border: none;
}

.success-card {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #81c784;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.success-card .rz-fieldset-legend.success-legend {
    color: #2e7d32;
    font-weight: 600;
    margin-bottom: 1rem;
    border: none;
    font-size: 1.1rem;
}

.danger-card {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border: 2px solid #e57373;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.danger-card .rz-fieldset-legend.danger-legend {
    color: #c62828;
    font-weight: 600;
    margin-bottom: 1rem;
    border: none;
    font-size: 1.1rem;
}

/* Section descriptions */
.section-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    border-left: 3px solid currentColor;
    font-style: italic;
}

/* Summary item styling */
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

/* Alert for "Outras Condições" */
.alert {
    border-radius: 8px;
    margin: 1.5rem 0;
}

.alert-info {
    background: linear-gradient(135deg, #e0f4f8 0%, #c5eaf0 100%);
    border: 1px solid #016B8A;
    color: #014f68;
}

.alert-heading {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .rz-button {
        width: 100%;
    }
}