.faq-section {
    padding: 40px 20px;
}

.faq-heading {
    max-width: 800px;
    margin: 0 auto;
}

.faq-section .faq-heading h1 {
    font-size: 28px !important;
    line-height: 1.2;
    margin-bottom: 10px;
}

.faq-section .faq-heading h2 {
    font-size: 22px !important;
    line-height: 1.3;
    margin-top: 15px;
    margin-bottom: 20px;
}

.faq-heading p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.faq-search-container {
    max-width: 800px;
    margin: 0 auto;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    gap: 10px;
    background: #fff;
    padding: 10px 0;
}

.faq-back-button {
    background: #FF6400;
    color: #fff;
    border: 1px solid #FF6400;
    border-radius: 8px;
    padding: 0 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 48px;
}

.faq-back-button:hover {
    background: #e55a00;
    border-color: #e55a00;
}

.faq-no-results {
    text-align: center;
    padding: 30px;
    font-size: 18px;
    color: #718096;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 15px;
}

#faq-search-input {
    flex: 1;
    width: 100%;
    padding: 15px 160px 15px 20px;
    font-size: 16px;
    background: #fff;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    height: 48px;
    box-sizing: border-box;
}

#faq-search-input::placeholder {
    color: #a0aec0;
    opacity: 1;
}

#faq-search-input:focus {
    border-color: #FF6400;
    box-shadow: 0 0 0 3px rgba(255, 100, 0, 0.1);
}

.ticket-filters.custom-dropdown-filters {
    flex: 1;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.custom-dropdown {
    position: relative;
    user-select: none;
    height: 48px;
    flex: 1;
}

.custom-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: #FF6400;
    color: #fff;
    border: 1px solid #FF6400;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    height: 48px;
    box-sizing: border-box;
}

.custom-dropdown-toggle:hover {
    background: #e55a00;
    border-color: #e55a00;
}

.custom-dropdown.open .custom-dropdown-toggle {
    background: #e55a00;
    border-color: #e55a00;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.custom-dropdown-arrow {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.custom-dropdown.open .custom-dropdown-arrow {
    transform: rotate(180deg);
}

.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: #ffffff;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 1000;
    display: none;
    flex-direction: column;
    padding: 8px;
}

.custom-dropdown.open .custom-dropdown-menu {
    display: flex;
}

div.ticket-filter-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: transparent;
    color: #4a5568;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

div.ticket-filter-btn:hover {
    background: #f7fafc;
}

div.ticket-filter-btn.active {
    background: #FF6400;
    color: #ffffff;
}

/* Checkmark for active dropdown items */
div.ticket-filter-btn::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 1px solid #cbd5e0;
    border-radius: 3px;
    margin-right: 10px;
    background: #fff;
    transition: all 0.2s ease;
}

div.ticket-filter-btn.active::before {
    background-color: #fff;
    border-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF6400' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 10px;
    background-position: center;
    background-repeat: no-repeat;
}

div.ticket-filter-reset {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    font-size: 14px;
    color: #a0aec0;
    cursor: pointer;
    line-height: 1;
    padding: 8px 16px;
    transition: color 0.2s ease;
    text-decoration: none;
}

div.ticket-filter-reset:hover {
    color: #FF6400;
}

.faq-search-controls {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-size: 14px;
    color: #718096;
}

#faq-search-clear {
    background: none;
    border: none;
    font-size: 14px;
    font-family: inherit;
    color: #FF6400;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.3s ease;
}

#faq-search-clear:hover {
    color: #e55a00;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    position: relative;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    scroll-margin-top: 68px;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background-color: transparent;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.faq-item:hover::before,
.faq-item.active::before {
    background-color: #FF6400;
}

.faq-item:hover {
    border-left-color: #FF6400;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.faq-item.active {
    border-left-color: #FF6400;
}

.faq-item-title {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    position: relative;
    padding-right: 50px;
    user-select: none;
    background: #fff;
    color: #FF6400;
    transition: background 0.3s ease, color 0.3s ease;
}

.faq-item.active .faq-item-title {
    background: #FF6400;
    color: #fff;
}

.faq-item-title::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 300;
    color: #000;
    transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item.active .faq-item-title::after {
    color: #fff;
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.fcc-faq-meta-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.fcc-faq-pdf-btn {
    background: transparent;
    color: #FF6400;
    border: 1px solid #FF6400;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fcc-faq-pdf-btn:hover {
    background: #FF6400;
    color: #fff;
}

.fcc-faq-last-updated {
    font-size: 13px;
    color: #718096;
    margin-bottom: 20px;
    font-style: italic;
}

.faq-item-content {
    display: none;
    padding: 20px 24px 24px 24px;
    color: #4a5568;
    font-size: 16px;
    line-height: 1.6;
}

/* Ensure text blocks don't get sliced in half horizontally when generating PDFs */
.faq-item-content p,
.faq-item-content h2,
.faq-item-content h3,
.faq-item-content li,
.faq-item-content ul,
.faq-item-content ol {
    page-break-inside: avoid;
    break-inside: avoid;
}

.faq-item-content h2 {
    font-size: 20px !important;
    line-height: 1.4 !important;
    margin-top: 24px !important;
    margin-bottom: 12px !important;
    font-weight: 600 !important;
    color: #2d3748 !important;
}

.faq-item-content h3 {
    font-size: 18px !important;
    line-height: 1.4 !important;
    margin-top: 20px !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    color: #2d3748 !important;
}

.faq-item-content h2:first-child,
.faq-item-content h3:first-child {
    margin-top: 0 !important;
}

.faq-item-content p:last-child {
    margin-bottom: 0;
}

.faq-item-content h2 {
    font-size: 1.5em !important;
    line-height: 1.2 !important;
    margin-top: 25px !important;
    margin-bottom: 15px !important;
    font-weight: 600;
}

.faq-item-content h3 {
    font-size: 1.2em !important;
    line-height: 1.2 !important;
    margin-top: 20px !important;
    margin-bottom: 10px !important;
    font-weight: 600;
}

.faq-item-content a,
.contact-section a {
    color: #FF6400;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.faq-item-content a:hover,
.contact-section a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.text-accent {
    color: #FF6400 !important;
}

/* FCC contact form select styling */
.contact-section select,
.contact-section select:focus,
.contact-section select:active {
    width: 100%;
    background: transparent;
    color: #fff;
    border: none;
    border-bottom: 1px solid #fff;
    padding: 0 0 12px 0;
    font-size: inherit;
    outline: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.contact-section select option {
    color: #000;
    background: #fff;
}

#faq-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #FF6400;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    display: none;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 8px;
}

#faq-back-to-top svg {
    width: 100%;
    height: 100%;
    display: block;
}

#faq-back-to-top:hover {
    background: #e55a00;
}



@media (max-width: 767px) {
    body {
        padding-top: 4rem !important;
    }

    .faq-section {
        padding: 0;
    }

    .faq-section .container {
        padding: 0 2rem;
    }

    .ticket-filters {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .ticket-filter-group {
        width: 100%;
    }
}

/* Mobile Layout Adjustments */
@media (max-width: 768px) {
    .ticket-filters.custom-dropdown-filters {
        gap: 8px;
    }
    
    .faq-back-button {
        min-height: 40px;
    }
    
    .custom-dropdown,
    .custom-dropdown-toggle {
        height: 40px;
    }
    
    #faq-search-input {
        height: 40px;
        padding: 10px 115px 10px 15px;
        font-size: 14px;
    }

    .faq-search-controls {
        right: 8px;
        gap: 4px;
    }

    .faq-search-controls span,
    #faq-search-clear {
        font-size: 12px !important;
    }
    
    .custom-dropdown {
        flex: 0 0 calc(50% - 4px);
    }
    
    .custom-dropdown-toggle {
        font-size: 13px;
    }
    
    .custom-dropdown:nth-child(even) .custom-dropdown-menu {
        left: auto;
        right: 0;
    }

    .faq-item {
        scroll-margin-top: 60px;
    }
}

/* Hide the floating reCAPTCHA badge */
.grecaptcha-badge { 
    visibility: hidden !important; 
}