/* Calculadora de Dieta Feminina - Estilos */

.cdf-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header */
.cdf-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%);
    border-radius: 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(233, 30, 99, 0.3);
}

.cdf-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.cdf-icon svg {
    color: white;
    width: 40px;
    height: 40px;
}

.cdf-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cdf-subtitle {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
}

/* Formulário */
.cdf-form {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Seções */
.cdf-section {
    padding: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.cdf-section:last-child {
    border-bottom: none;
}

.cdf-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #2c3e50;
}

.cdf-section-icon {
    font-size: 1.2rem;
}

.cdf-section-description {
    color: #666;
    margin: 0 0 25px 0;
    font-size: 0.95rem;
}

/* Campos */
.cdf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.cdf-field {
    margin-bottom: 20px;
}

.cdf-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 0.95rem;
}

.cdf-field input,
.cdf-field select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafbfc;
    box-sizing: border-box;
}

.cdf-field input:focus,
.cdf-field select:focus {
    outline: none;
    border-color: #e91e63;
    background: white;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.cdf-field input.error,
.cdf-field select.error {
    border-color: #e74c3c;
    background: #fdf2f2;
}

/* Radio Group */
.cdf-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.cdf-radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.cdf-radio-option:hover {
    border-color: #e91e63;
    background: white;
}

.cdf-radio-option input[type="radio"] {
    display: none;
}

.cdf-radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.cdf-radio-option input[type="radio"]:checked + .cdf-radio-custom {
    border-color: #e91e63;
    background: #e91e63;
}

.cdf-radio-option input[type="radio"]:checked + .cdf-radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.cdf-radio-text {
    font-weight: 500;
    color: #2c3e50;
}

.cdf-radio-option input[type="radio"]:checked ~ .cdf-radio-text {
    color: #e91e63;
}

/* Botão Submit */
.cdf-submit-section {
    padding: 30px;
    text-align: center;
    background: #f8f9fa;
}

.cdf-submit-btn {
    background: linear-gradient(135deg, #e91e63 0%, #9c27b0 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
    min-width: 200px;
}

.cdf-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
}

.cdf-submit-btn:active {
    transform: translateY(0);
}

.cdf-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Mensagens de Erro */
.cdf-error {
    display: block;
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: 500;
}

.cdf-general-error {
    background: #fdf2f2;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    font-weight: 500;
}

/* Resultados */
.cdf-results {
    margin-top: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.cdf-results-header {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    padding: 25px 30px;
    text-align: center;
}

.cdf-results-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.cdf-results-content {
    padding: 30px;
}

.cdf-result-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.cdf-result-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cdf-result-section h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cdf-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.cdf-result-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid #e91e63;
}

.cdf-result-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.cdf-result-label {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.cdf-macro-chart {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.cdf-macro-item {
    flex: 1;
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.cdf-macro-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: 0 auto 10px;
}

.cdf-macro-protein .cdf-macro-color { background: #e74c3c; }
.cdf-macro-carbs .cdf-macro-color { background: #3498db; }
.cdf-macro-fat .cdf-macro-color { background: #f39c12; }

.cdf-macro-percentage {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
}

.cdf-macro-grams {
    color: #666;
    font-size: 0.9rem;
    margin-top: 5px;
}

.cdf-macro-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

/* Dicas */
.cdf-tips {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin-top: 20px;
}

.cdf-tips h4 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
}

.cdf-tips ul {
    margin: 0;
    padding-left: 20px;
}

.cdf-tips li {
    margin-bottom: 8px;
}

/* Responsividade */
@media (max-width: 768px) {
    .cdf-container {
        padding: 15px;
    }
    
    .cdf-title {
        font-size: 2rem;
    }
    
    .cdf-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cdf-section {
        padding: 20px;
    }
    
    .cdf-result-grid {
        grid-template-columns: 1fr;
    }
    
    .cdf-macro-chart {
        flex-direction: column;
    }
    
    .cdf-radio-group {
        gap: 10px;
    }
    
    .cdf-radio-option {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .cdf-header {
        padding: 20px 15px;
    }
    
    .cdf-title {
        font-size: 1.8rem;
    }
    
    .cdf-subtitle {
        font-size: 1rem;
    }
    
    .cdf-section {
        padding: 15px;
    }
    
    .cdf-submit-section {
        padding: 20px;
    }
    
    .cdf-submit-btn {
        width: 100%;
        padding: 14px 20px;
    }
}

