/* --- General Text Color --- */
#ai-response-content,
#food-safety-ai-form input,
#food-safety-ai-form select {
    color: #2B3338;
}

/* --- Form Styling --- */
#food-safety-ai-form label {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

/* NEW: Shared styles for both input and select to ensure same height */
#food-safety-ai-form input,
#food-safety-ai-form select {
    box-sizing: border-box;
    /* Ensures padding and border are included in the height */
    width: 100%;
    height: 48px;
    /* Sets an explicit, identical height */
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    border-radius: 0.5rem;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

/* Custom Styling ONLY for the Dropdown Menu arrow */
#food-safety-ai-form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 2.5rem;
    /* Add space on the right for the arrow */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232B3338'%3e%3cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd' /%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.5em 1.5em;
}

/* Styling for the options inside the dropdown */
#food-safety-ai-form select option {
    background: #ffffff;
    color: #2B3338;
}

/* Style for when a user clicks into a field */
#food-safety-ai-form input:focus,
#food-safety-ai-form select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    outline: none;
}

/* Styling for the Generate Button */
#food-safety-ai-form button {
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

#food-safety-ai-form button:active {
    transform: scale(0.98);
}


/* --- Styling for AI Recipe Output --- */
#ai-response-content {
    line-height: 1.6;
}

#ai-response-content h3 {
    font-size: 1.5em;
    font-weight: 600;
    margin-top: 2em;
    margin-bottom: 0.75em;
    border-bottom: 1px solid #03A9F4;
    padding-bottom: 0.4em;
    color: #000;
}

#ai-response-content h3:first-child {
    margin-top: 0;
}

#ai-response-content h4 {
    font-size: 1.2em;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #413939;
}

#ai-response-content p {
    margin-bottom: 1em;
}

#ai-response-content ul,
#ai-response-content ol {
    list-style-position: inside;
    margin-left: 0.5em;
    margin-bottom: 1em;
}

#ai-response-content li {
    padding-left: 0.5em;
    margin-bottom: 0.5em;
}

#ai-response-content strong {
    background-color: #eef7ff;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    color: #1d4ed8;
}