/* ===== HERO ===== */

.faq-hero{
    padding:clamp(110px, 12vw, 140px) 20px clamp(56px, 8vw, 80px);
    text-align:center;
    background:
        linear-gradient(135deg, rgba(47,133,90,0.08), transparent 42%),
        linear-gradient(180deg,#f7f7f7,#ffffff);
}

.faq-hero h1{
    font-size:clamp(2rem, 5vw, 2.625rem);
    margin-bottom:10px;
}

.faq-hero p{
    color:#555;
    max-width:680px;
    margin:0 auto;
    line-height:1.7;
}

/* ===== FAQ LIST ===== */

.faq-section{
    padding:clamp(56px, 8vw, 80px) 20px clamp(72px, 10vw, 120px);
}

.faq-list{
    max-width:800px;
    margin:auto;
    display:flex;
    flex-direction:column;
    gap:14px;
}

/* ITEM */

.faq-item{
    border-radius:8px;
    background:#fff;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
    overflow:hidden;
    transition:0.3s;
    border:1px solid rgba(141,33,35,0.08);
}

.faq-item:hover{
    transform:translateY(-4px);
}

/* QUESTION */

.faq-question{
    width:100%;
    padding:20px 24px;
    border:none;
    background:#fff;
    font-weight:600;
    display:flex;
    justify-content:space-between;
    align-items:center;
    cursor:pointer;
    gap:18px;
    line-height:1.35;
    text-align:left;
    color:#1a1a1a;
}

/* ICON */

.faq-icon{
    width:34px;
    height:34px;
    border-radius:50%;
    background:#8d2123;
    position:relative;
    transition:0.3s;
    flex:0 0 34px;
}

.faq-icon::before,
.faq-icon::after{
    content:"";
    position:absolute;
    background:white;
    transition:0.3s;
}

.faq-icon::before{
    width:14px;
    height:2px;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
}

.faq-icon::after{
    width:2px;
    height:14px;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
}

.faq-item.active .faq-icon{
    background:#6f1a1c;
    transform:rotate(45deg);
}

/* ANSWER */

.faq-answer{
    max-height:0;
    overflow:hidden;
    transition:max-height 0.5s ease, opacity 0.3s ease;
    opacity:0;
    padding:0 24px;
}

.faq-answer p{
    padding:15px 0 20px;
    color:#555;
    line-height:1.7;
}

.faq-item.active .faq-answer{
    max-height:300px;
    opacity:1;
}

/* ===== ASK SECTION ===== */

.faq-ask{
    margin-top:60px;
    display:flex;
    justify-content:center;
}

.faq-ask-card{
    background:#fff;
    padding:40px;
    border-radius:8px;
    max-width:650px;
    width:100%;
    text-align:center;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
    border:1px solid rgba(141,33,35,0.08);
}

.faq-ask-card h3{
    font-size:24px;
    margin-bottom:5px;
}

.faq-ask-card p{
    color:#666;
    margin-bottom:20px;
}

.faq-ask-card textarea{
    width:100%;
    height:120px;
    padding:15px;
    border-radius:8px;
    border:1px solid #ddd;
    resize:none;
    margin-bottom:20px;
    box-sizing:border-box;
}

.faq-ask-card button{
    background:#8d2123;
    color:#fff;
    border:none;
    padding:12px 24px;
    border-radius:8px;
    cursor:pointer;
}

@media(max-width:600px){
    .faq-question{
        padding:18px;
    }

    .faq-ask-card{
        padding:28px 18px;
    }

    .faq-ask-card button{
        width:100%;
    }
}

.faq-ask-card button:hover{
    background:#6f1a1c;
}


@keyframes popupFade{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* animation */

@keyframes popupIn{
    to{
        transform:scale(1);
        opacity:1;
    }
}

/* ===== FAQ MASCOT ===== */
.faq-mascot-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 40px;
    justify-content: center;
    flex-shrink: 0;
}

.faq-mascot {
    max-height: 160px;
    width: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.08));
    animation: floatFaqMascot 4s ease-in-out infinite;
}

.mascot-bubble {
    margin-top: 15px;
    background: white;
    border: 1px solid #eee;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    font-size: 13.5px;
    color: #555;
    max-width: 220px;
    text-align: center;
    position: relative;
    line-height: 1.4;
}

.mascot-bubble::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent white transparent;
}

@keyframes floatFaqMascot {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (max-width: 768px) {
    .faq-ask {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .faq-mascot-container {
        margin-right: 0;
    }
}
