/* ===== FAQS PAGE STYLES ===== */

/* Import base variables */
:root {
    --primary-color: #325D53;
    --primary-hover: #285446;
    --text-dark: #333;
    --text-light: #666;
}

/* Page Spacing */
.page-id-146 .faq-section {
    padding: 150px 0 120px;
    min-height: 100vh;
    background: #ffffff;
}

/* Fade-in animation */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Container */
.faq-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* FAQ Header */
.faq-header {
    max-width: 1000px;
    margin: 0 auto 80px;
    text-align: left;
}

.faq-main-title {
    font-family: 'Geist', sans-serif;
    font-size: 64px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.faq-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-light);
    max-width: 600px;
}

/* ===== DESKTOP FAQ STYLES ===== */
/* Show only on Desktop (> 768px) */
@media (min-width: 769px) {
    
    .faq-list {
        max-width: 1000px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .faq-item {
        background: #ffffff;
        border: 2px solid #E5E5E5;
        border-radius: 50px;
        overflow: visible;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
    }

    .faq-item.active {
        background: var(--primary-color);
        border-color: var(--primary-color);
        box-shadow: 0 10px 40px rgba(50, 93, 83, 0.15);
    }

    .faq-item:not(.active):hover {
        border-color: var(--primary-color);
        box-shadow: 0 5px 20px rgba(50, 93, 83, 0.1);
    }

    .faq-question {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 28px 40px;
        background: none;
        border: none;
        cursor: pointer;
        text-align: left;
        transition: all 0.3s ease;
        gap: 30px;
    }

    .faq-item:not(.active):hover .faq-question {
        background: #F8F8F8;
    }

    .faq-question-text {
        font-family: 'Inter', sans-serif;
        font-size: 18px;
        font-weight: 500;
        color: var(--text-dark);
        line-height: 1.4;
        transition: color 0.3s ease;
    }

    .faq-item.active .faq-question-text {
        color: #ffffff;
    }

    .faq-icon {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        background: var(--primary-color);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .faq-item.active .faq-icon {
        background: #ffffff;
    }

    .faq-icon svg {
        transition: all 0.3s ease;
    }

    .faq-item:not(.active) .faq-icon svg path {
        stroke: #ffffff;
    }

    .faq-item.active .faq-icon svg path {
        stroke: var(--primary-color);
    }

    /* Hide answer content - we'll use modal instead */
    .faq-answer {
        display: none;
    }
}

/* ===== MOBILE FAQ STYLES - IMPROVED iOS PICKER STYLE ===== */
/* Show only on Mobile (≤ 768px) */
@media (max-width: 768px) {
    
    .page-id-146 .faq-section {
        padding: 110px 0 60px;
        min-height: 100vh;
        overflow: hidden;
    }

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

    .faq-header {
        margin-bottom: 40px;
        text-align: center;
        padding: 0 20px;
    }

    .faq-main-title {
        font-size: 40px;
    }

    .faq-subtitle {
        font-size: 16px;
        max-width: 100%;
        margin: 0 auto;
    }

    /* BEAUTIFUL MOBILE HINT STYLING */
    .faq-mobile-hint {
        text-align: center;
        padding: 20px;
        margin-bottom: 10px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-radius: 20px;
        margin-left: 20px;
        margin-right: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        animation: fadeInHint 1s ease-in-out;
    }

    @keyframes fadeInHint {
        0% {
            opacity: 0;
            transform: translateY(-10px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .faq-mobile-hint-content {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        color: #6c757d;
    }

    .faq-hint-item {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 16px;
        background: white;
        border-radius: 50px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
    }

    .faq-hint-item i {
        color: var(--primary-color);
        font-size: 16px;
    }

    .faq-hint-item span {
        font-weight: 500;
        color: #495057;
    }

    /* iOS Picker Container - NATURAL SMOOTH SCROLLING */
    .faq-list {
        position: relative;
        height: auto;
        max-height: 650px;
        min-height: 550px;
        overflow-y: scroll;
        scroll-snap-type: none; /* REMOVED: No snap for smooth scrolling */
        -webkit-overflow-scrolling: touch;
        padding: 200px 0;
        scroll-behavior: smooth;
        /* IMPROVED: Better gradient for visibility */
        mask-image: linear-gradient(
            to bottom,
            transparent 0%,
            black 20%,
            black 80%,
            transparent 100%
        );
        -webkit-mask-image: linear-gradient(
            to bottom,
            transparent 0%,
            black 20%,
            black 80%,
            transparent 100%
        );
    }

    /* Hide scrollbar */
    .faq-list::-webkit-scrollbar {
        display: none;
    }

    .faq-list {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    /* FAQ Item - NO SNAP - SMOOTH NATURAL SCROLL */
    .faq-item {
        scroll-snap-align: none; /* REMOVED: No snap alignment */
        padding: 35px;
        margin: 15px 20px;
        min-height: 75px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        transition: all 0.2s ease; /* REDUCED: Faster transition */
        transform: scale(0.88);
        opacity: 0.6;
        transform-origin: center center;
        cursor: pointer;
        background: rgba(229, 229, 229, 0.3);
        border-radius: 20px;
    }

    /* Active Item - Center - MORE PROMINENT */
    .faq-item.active {
        transform: scale(1);
        opacity: 1;
        background: var(--primary-color);
        border-radius: 30px;
        box-shadow: 0 10px 30px rgba(50, 93, 83, 0.25);
        cursor: pointer;
        min-height: auto;
    }

    /* Question Button */
    .faq-question {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0;
        background: none;
        border: none;
        cursor: pointer;
        text-align: left;
        gap: 15px;
    }

    .faq-question-text {
        font-family: 'Inter', sans-serif;
        font-size: 15px;
        font-weight: 500;
        color: var(--text-dark);
        line-height: 1.4;
        transition: all 0.3s ease;
    }

    .faq-item.active .faq-question-text {
        color: #ffffff;
        font-size: 18px;
        font-weight: 600;
    }

    /* Icon - ALWAYS VISIBLE FOR ACTIVE ITEMS */
    .faq-icon {
        flex-shrink: 0;
        width: 28px;
        height: 28px;
        background: var(--primary-color);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0;
    }

    .faq-item.active .faq-icon {
        background: #ffffff;
        opacity: 1;
        width: 32px;
        height: 32px;
    }

    .faq-icon svg {
        width: 18px;
        height: 18px;
        transition: all 0.3s ease;
    }

    .faq-item.active .faq-icon svg {
        width: 20px;
        height: 20px;
    }

    .faq-item:not(.active) .faq-icon svg path {
        stroke: #ffffff;
    }

    .faq-item.active .faq-icon svg path {
        stroke: var(--primary-color);
    }

    /* Hide answer - use modal instead */
    .faq-answer {
        display: none;
    }
}

/* ===== MODAL STYLES ===== */
.faq-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
}

.faq-modal-content {
    background: white;
    border-radius: 30px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-modal.active .faq-modal-content {
    transform: scale(1);
}

/* Modal Header */
.faq-modal-header {
    background: var(--primary-color);
    padding: 30px;
    border-radius: 30px 30px 0 0;
    position: relative;
}

.faq-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
}

.faq-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.faq-modal-close svg {
    width: 24px;
    height: 24px;
}

.faq-modal-close svg path {
    stroke: white;
    stroke-width: 2;
}

.faq-modal-question {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: white;
    line-height: 1.4;
    padding-right: 50px;
    margin: 0;
}

/* Modal Body */
.faq-modal-body {
    padding: 40px 30px;
}

.faq-modal-answer {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
}

.faq-modal-answer p {
    margin-bottom: 15px;
}

.faq-modal-answer p:last-child {
    margin-bottom: 0;
}

/* Modal Footer - Navigation */
.faq-modal-footer {
    padding: 20px 30px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-top: 1px solid #e5e5e5;
}

.faq-modal-nav {
    display: flex;
    gap: 10px;
}

.faq-modal-nav-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #e5e5e5;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.faq-modal-nav-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.faq-modal-nav-btn:hover:not(:disabled) svg path {
    stroke: white;
}

.faq-modal-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.faq-modal-nav-btn svg {
    width: 24px;
    height: 24px;
}

.faq-modal-nav-btn svg path {
    stroke: var(--text-dark);
    stroke-width: 2;
    transition: stroke 0.3s ease;
}

.faq-modal-counter {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

/* Mobile Modal Adjustments */
@media (max-width: 768px) {
    .faq-modal-content {
        max-width: 100%;
        max-height: 85vh;
        border-radius: 25px;
    }

    .faq-modal-header {
        padding: 25px 20px;
        border-radius: 25px 25px 0 0;
    }

    .faq-modal-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
    }

    .faq-modal-question {
        font-size: 20px;
        padding-right: 45px;
    }

    .faq-modal-body {
        padding: 30px 20px;
    }

    .faq-modal-answer {
        font-size: 15px;
        line-height: 1.7;
    }

    .faq-modal-footer {
        padding: 15px 20px 25px;
    }

    .faq-modal-nav-btn {
        width: 45px;
        height: 45px;
    }
}

/* Empty State */
.faq-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.faq-empty-state p {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: var(--text-light);
}

/* ===== RESPONSIVE STYLES FOR DESKTOP ===== */

@media (min-width: 769px) and (max-width: 1200px) {
    .faq-main-title {
        font-size: 54px;
    }

    .faq-subtitle {
        font-size: 17px;
    }

    .faq-question {
        padding: 25px 35px;
    }

    .faq-question-text {
        font-size: 17px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .page-id-146 .faq-section {
        padding: 130px 0 100px;
    }

    .faq-header {
        margin-bottom: 60px;
    }

    .faq-main-title {
        font-size: 48px;
    }

    .faq-question {
        padding: 22px 30px;
        gap: 20px;
    }

    .faq-question-text {
        font-size: 16px;
    }

    .faq-icon {
        width: 36px;
        height: 36px;
    }
}

/* Mobile Small (480px) */
@media (max-width: 480px) {
    .page-id-146 .faq-section {
        padding: 100px 0 60px;
    }

    .faq-main-title {
        font-size: 34px;
    }

    .faq-subtitle {
        font-size: 15px;
    }

    .faq-mobile-hint {
        margin-bottom: 15px;
        padding: 15px;
    }

    .faq-mobile-hint-content {
        gap: 15px;
    }

    .faq-hint-item {
        padding: 6px 12px;
        font-size: 13px;
    }

    .faq-hint-item i {
        font-size: 14px;
    }

    .faq-list {
        max-height: 580px;
        min-height: 500px;
        padding: 180px 0;
    }

    .faq-item {
        margin: 12px 15px;
        padding: 35px;
        min-height: 70px;
    }

    .faq-question-text {
        font-size: 14px;
    }

    .faq-item.active .faq-question-text {
        font-size: 17px;
    }
}