/* ===================================
   Frequently Asked Questions Section
   Professional Responsive Design
   Matches existing theme colors and styling
   =================================== */

/* Section Container */
.faq-section {
    padding: 90px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56, 182, 255, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.faq-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 74, 148, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Section Header */
.faq-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease-out;
}

.faq-main-title {
    font-size: 42px;
    font-weight: 700;
    color: #004a94;
    margin-bottom: 15px;
    line-height: 1.3;
    font-family: 'Exo', serif;
}

.faq-subtitle {
    font-size: 18px;
    color: #606060;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* FAQ Accordion */
.faq-accordion {
    margin-bottom: 60px;
}

/* FAQ Item */
.faq-item {
    background: #ffffff;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 2px solid #f1f5f9;
    transition: all 0.4s ease;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out backwards;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }
.faq-item:nth-child(6) { animation-delay: 0.6s; }
.faq-item:nth-child(7) { animation-delay: 0.7s; }

.faq-item:hover {
    border-color: #38b6ff;
    box-shadow: 0 6px 25px rgba(0, 74, 148, 0.1);
}

.faq-item.active {
    border-color: #004a94;
    box-shadow: 0 8px 30px rgba(0, 74, 148, 0.15);
}

/* FAQ Question Button */
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #004a94 0%, #38b6ff 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::before {
    transform: scaleY(1);
}

.faq-question:hover {
    background: rgba(56, 182, 255, 0.02);
}

.faq-question-text {
    font-size: 18px;
    font-weight: 600;
    color: #004a94;
    line-height: 1.5;
    padding-right: 20px;
    font-family: 'Exo', serif;
    transition: color 0.3s ease;
}

.faq-item.active .faq-question-text {
    color: #38b6ff;
}

.faq-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.faq-icon i {
    color: #004a94;
    font-size: 16px;
    transition: all 0.4s ease;
}

.faq-item.active .faq-icon {
    background: linear-gradient(135deg, #004a94 0%, #38b6ff 100%);
    transform: rotate(180deg);
}

.faq-item.active .faq-icon i {
    color: #ffffff;
}

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-answer-content {
    padding: 0 30px 30px 30px;
    border-top: 1px solid #f1f5f9;
}

.faq-answer-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #606060;
    margin-bottom: 15px;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-answer-content strong {
    color: #004a94;
    font-weight: 600;
}

.faq-answer-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.faq-answer-content ul li {
    padding: 12px 0;
    font-size: 15px;
    color: #606060;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid #f8f9fa;
}

.faq-answer-content ul li:last-child {
    border-bottom: none;
}

.faq-answer-content ul li i {
    color: #38b6ff;
    font-size: 16px;
    margin-top: 3px;
    flex-shrink: 0;
}

.faq-answer-content ul li strong {
    color: #004a94;
}

/* FAQ CTA */
.faq-cta {
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.faq-cta-content {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    border: 2px solid #f1f5f9;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.faq-cta-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #004a94 0%, #38b6ff 100%);
}

.faq-cta-content > i {
    font-size: 48px;
    color: #38b6ff;
    margin-bottom: 20px;
    display: inline-block;
}

.faq-cta-title {
    font-size: 32px;
    font-weight: 700;
    color: #004a94;
    margin-bottom: 15px;
    font-family: 'Exo', serif;
}

.faq-cta-text {
    font-size: 18px;
    color: #606060;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.faq-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.faq-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 35px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.faq-cta-btn.primary {
    background: linear-gradient(135deg, #004a94 0%, #38b6ff 100%);
    color: #ffffff;
}

.faq-cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 74, 148, 0.25);
}

.faq-cta-btn.secondary {
    background: #ffffff;
    color: #004a94;
    border: 2px solid #004a94;
}

.faq-cta-btn.secondary:hover {
    transform: translateY(-3px);
    background: #004a94;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 74, 148, 0.25);
}

.faq-cta-btn i {
    font-size: 18px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablet Landscape (max-width: 1024px) */
@media (max-width: 1024px) {
    .faq-container {
        max-width: 750px;
    }

    .faq-main-title {
        font-size: 36px;
    }

    .faq-subtitle {
        font-size: 17px;
    }

    .faq-question-text {
        font-size: 17px;
    }

    .faq-cta-title {
        font-size: 28px;
    }
}

/* Tablet Portrait (max-width: 768px) */
@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0;
    }

    .faq-container {
        max-width: 100%;
    }

    .faq-header {
        margin-bottom: 40px;
    }

    .faq-main-title {
        font-size: 30px;
    }

    .faq-subtitle {
        font-size: 16px;
    }

    .faq-item {
        margin-bottom: 15px;
        border-radius: 12px;
    }

    .faq-question {
        padding: 20px 25px;
    }

    .faq-question-text {
        font-size: 16px;
    }

    .faq-icon {
        width: 36px;
        height: 36px;
    }

    .faq-icon i {
        font-size: 14px;
    }

    .faq-answer-content {
        padding: 0 25px 25px 25px;
    }

    .faq-answer-content p {
        font-size: 15px;
    }

    .faq-answer-content ul li {
        font-size: 14px;
    }

    .faq-cta-content {
        padding: 40px 30px;
    }

    .faq-cta-content > i {
        font-size: 40px;
    }

    .faq-cta-title {
        font-size: 26px;
    }

    .faq-cta-text {
        font-size: 16px;
    }

    .faq-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .faq-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .faq-section {
        padding: 50px 0;
    }

    .faq-container {
        padding: 0 15px;
    }

    .faq-main-title {
        font-size: 26px;
    }

    .faq-subtitle {
        font-size: 15px;
    }

    .faq-item {
        border-radius: 10px;
    }

    .faq-question {
        padding: 18px 20px;
    }

    .faq-question-text {
        font-size: 15px;
        line-height: 1.4;
    }

    .faq-icon {
        width: 32px;
        height: 32px;
    }

    .faq-icon i {
        font-size: 12px;
    }

    .faq-answer-content {
        padding: 0 20px 20px 20px;
    }

    .faq-answer-content p {
        font-size: 14px;
        line-height: 1.7;
    }

    .faq-answer-content ul li {
        font-size: 13px;
        padding: 10px 0;
    }

    .faq-answer-content ul li i {
        font-size: 14px;
    }

    .faq-cta-content {
        padding: 35px 20px;
    }

    .faq-cta-content > i {
        font-size: 36px;
    }

    .faq-cta-title {
        font-size: 24px;
    }

    .faq-cta-text {
        font-size: 15px;
    }

    .faq-cta-btn {
        padding: 14px 25px;
        font-size: 15px;
    }

    .faq-cta-btn i {
        font-size: 16px;
    }
}

/* Extra Small Mobile (max-width: 360px) */
@media (max-width: 360px) {
    .faq-main-title {
        font-size: 24px;
    }

    .faq-question-text {
        font-size: 14px;
    }

    .faq-answer-content p {
        font-size: 13px;
    }

    .faq-answer-content ul li {
        font-size: 12px;
    }

    .faq-cta-title {
        font-size: 22px;
    }

    .faq-cta-content {
        padding: 30px 15px;
    }
}

/* Accessibility - Focus States */
.faq-question:focus {
    outline: 2px solid #38b6ff;
    outline-offset: 2px;
}

.faq-cta-btn:focus {
    outline: 2px solid #38b6ff;
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .faq-item,
    .faq-question,
    .faq-icon,
    .faq-answer,
    .faq-cta-btn {
        animation: none;
        transition: none;
    }
    
    .faq-item.active .faq-icon {
        transform: rotate(0deg);
    }
}

/* Print Styles */
@media print {
    .faq-section {
        padding: 20px 0;
    }

    .faq-item {
        box-shadow: none;
        border: 1px solid #e5e5e5;
        page-break-inside: avoid;
        margin-bottom: 15px;
    }

    .faq-answer {
        max-height: none !important;
    }

    .faq-icon {
        display: none;
    }

    .faq-cta {
        display: none;
    }
}
