/* McDonald's brand colors */
:root {
    --mcdonalds-red: #DA291C;
    --mcdonalds-yellow: #FFC72C;
}

.mcdonalds-faq {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.faq-header {
    text-align: center;
    margin-bottom: 2rem;
}

.faq-header h2 {
    color: var(--mcdonalds-red);
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.faq-header p {
    color: #666;
    font-size: 1.1rem;
}

.search-container { /* Styles for the search container */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

#search-box { /* Styles for the search input */
    padding: 0.8rem 1.2rem; 
    border-radius: 20px; 
    border: 2px solid #e2e8f0;
    width: 350px; 
    font-size: 1rem; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
    transition: all 0.2s ease; 
}

#search-box:hover {
    border-color: var(--mcdonalds-yellow); 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px); 
}

#search-box:focus {
    outline: none;
    border-color: var(--mcdonalds-red); 
    box-shadow: 0 0 0 3px rgba(218, 41, 28, 0.2); 
}

#category-select { /* Styles for the category dropdown */
    padding: 0.8rem 1rem; 
    border-radius: 20px; 
    border: 2px solid #e2e8f0; 
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z' clip-rule='evenodd' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    transition: all 0.2s ease;
}

#category-select:hover {
    border-color: var(--mcdonalds-yellow);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); 
}

#category-select:focus {
    outline: none; 
    border-color: var(--mcdonalds-red);
    box-shadow: 0 0 0 3px rgba(218, 41, 28, 0.2); 
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: none;
    background-color: #f3f4f6;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: capitalize;
}

.filter-btn:hover {
    background-color: var(--mcdonalds-yellow);
}

.filter-btn.active {
    background-color: var(--mcdonalds-red);
    color: white; 
    padding: 0.6rem 1.3rem; /* Increased padding for active state */
}

.faq-container {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    padding: 1.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-weight: 500;
    color: #111827;
}

/* Hover state styles */
.faq-question:hover {
    background-color: #fff9e6; /* Yellow background on hover */
    color: #000000; /* Black text on hover */
}

.faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--mcdonalds-red);
    transition: transform 0.2s;
}

.faq-question.active svg {
    transform: rotate(180deg);
}

.faq-answer {
    color: #4b5563;
    display: none;
    padding: 1rem;
    border-radius: 5px;
    background-color: white;
}

.faq-answer.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
#category-select { 
    /* ... other styles ... */
    padding-right: 3rem; /* Add more right padding */
}