/* Homepage Specific Styles */
[hidden] { display: none !important; }

/* Header Section */
header {
    padding: 120px 20px 40px;
    text-align: center;
}

header h1 {
    font-size: 36px;
    font-weight: 600;
    color: #1e1e1e;
}

header p {
    font-size: 18px;
    color: #555;
    margin-top: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Calculator Form */
#calculator {
    max-width: 600px;
    margin: auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#calorieForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#calorieForm label {
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    width: 100%;
    max-width: 400px;
}

#calorieForm input, #calorieForm select {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    text-align: center;
}

#calorieForm button {
    width: 33%;
    max-width: 400px;
    padding: 12px;
    background: black;
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 20px;
    font-size: 16px;
}

#calorieForm button:hover {
    background: #333333;
}

/* Results Section */
#results {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#results p {
    font-size: 18px;
    font-weight: 500;
    margin: 10px 0;
}

.primary-result { text-align: center; }
.calorie-result { font-size: 30px !important; font-weight: 600 !important; }
.goal-plan { border-top: 1px solid #ddd; margin-top: 20px; padding-top: 20px; }
.pace-control { margin: 16px 0; }
.pace-control label { display: block; font-weight: 600; margin-bottom: 6px; }
.pace-control select { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 8px; font-size: 16px; }
.macro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.macro-grid p { background: #f5f5f5; border-radius: 8px; padding: 12px; text-align: center; }
.macro-grid span { display: block; margin-top: 4px; }
.form-error { color: #a32020; font-size: 15px !important; min-height: 1.2em; }
.disclaimer { color: #555; font-size: 14px !important; font-weight: 400 !important; border-top: 1px solid #ddd; padding-top: 14px; }

/* Responsive */
@media (max-width: 768px) {
    #calculator, #results {
        width: 90%;
    }
    .macro-grid { grid-template-columns: 1fr; }
    #calorieForm button { width: 100%; }
}
