/* Modern UI Design */
#kidney-food-checker {
    padding: 2rem;
    border: none;
    border-radius: 12px;
    max-width: 90vw;
    width: 100%;
    margin: 2rem auto;
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    box-sizing: border-box;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

#kidney-food-checker h3 {
    text-align: center;
    color: #424242;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
}

#kidney-food-checker h3::before {
    content: "🥦";
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.intro {
    text-align: center;
    color: #616161;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

#food-checker-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 1rem;
    color: #616161;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
    outline: none;
}

.cf-turnstile {
    display: flex;
    justify-content: center;
}

button[type="submit"] {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #007cba, #005a87);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.4);
}

#kidney-food-checker #result {
    text-align: center;
    font-size: 1rem;
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

/* Result styling */
#kidney-food-checker #result.yes,
#kidney-food-checker #result.no,
#kidney-food-checker #result.limit,
#kidney-food-checker #result.error {
    font-weight: bold;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    animation: fadeIn 0.5s ease-in;
}

#kidney-food-checker #result.yes {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
#kidney-food-checker #result.no {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
#kidney-food-checker #result.limit {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}
#kidney-food-checker #result.error {
    background-color: #ffebee;
    color: #b71c1c;
    border: 1px solid #ffcdd2;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    #kidney-food-checker {
        padding: 1rem;
        margin: 1rem auto;
        max-width: 95vw;
    }

    #kidney-food-checker h3 {
        font-size: 1.25rem;
    }

    .intro {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    button[type="submit"] {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    #result {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    #kidney-food-checker {
        padding: 0.75rem;
        margin: 0.75rem auto;
    }

    #kidney-food-checker h3 {
        font-size: 1.1rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    button[type="submit"] {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    #result {
        font-size: 0.85rem;
    }
}
