/* FAQ page (project theme aligned) */
:root {
    --faq-primary: #008a8a;
    --faq-primary-dark: #006f6f;
    --faq-navy: #0f2742;
    --faq-text: #0f2742;
    --faq-muted: #627084;
    --faq-border: #dce4ef;
    --faq-bg-soft: #f4f8fc;
}

body {
    background: linear-gradient(135deg, rgba(0, 196, 255, 0.06), rgba(13, 34, 58, 0.08));
    min-height: 100vh;
}

.faq-hero {
    padding: 130px 20px 88px;
    background: radial-gradient(circle at top right, rgba(0, 196, 255, 0.25), transparent 45%),
        linear-gradient(135deg, #0f2742 0%, #123755 45%, #0e3150 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.faq-hero-inner {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.faq-hero h1 {
    margin: 0 0 12px;
    font-family: 'Playfair Display', Helvetica, serif;
    font-size: clamp(2.2rem, 5vw, 3rem);
    letter-spacing: -0.02em;
}

.faq-hero-subtitle {
    margin: 0 0 28px;
    font-size: 1.06rem;
    color: rgba(255, 255, 255, 0.86);
}

.faq-controls {
    position: absolute;
    top: 28px;
    right: 28px;
    display: flex;
    gap: 12px;
    z-index: 2;
}

.control-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    backdrop-filter: blur(6px);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.search-container {
    max-width: 620px;
    margin: 0 auto;
}

.search-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 14px;
    padding: 6px 18px;
    box-shadow: 0 14px 30px rgba(15, 39, 66, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.search-wrapper i {
    color: var(--faq-muted);
    font-size: 1rem;
}

.search-wrapper input {
    width: 100%;
    border: none;
    padding: 14px 0;
    font-size: 1rem;
    outline: none;
    color: var(--faq-text);
    background: transparent;
}

.faq-page {
    padding: 0 20px 80px;
}

.faq-container {
    max-width: 920px;
    margin: -42px auto 0;
    position: relative;
    z-index: 2;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--faq-border);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(15, 39, 66, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 39, 66, 0.12);
    border-color: rgba(0, 138, 138, 0.35);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.25rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--faq-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq-question span {
    flex: 1;
}

.faq-question .icon-box {
    width: 34px;
    height: 34px;
    background: var(--faq-bg-soft);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.faq-question i {
    color: var(--faq-primary);
    font-size: 0.85rem;
    transition: transform 0.25s ease;
}

.faq-item.active .icon-box {
    background: linear-gradient(135deg, var(--faq-primary), var(--faq-primary-dark));
}

.faq-item.active .faq-question i {
    color: #fff;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: #fafcfe;
}

.faq-content {
    padding: 0 1.5rem 1.35rem;
    color: var(--faq-muted);
    line-height: 1.7;
    font-size: 1rem;
}

.faq-content p {
    margin-bottom: 0.85rem;
}

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

.loading-spinner {
    text-align: center;
    padding: 36px 20px;
    background: #fff;
    border: 1px solid var(--faq-border);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(15, 39, 66, 0.08);
    color: var(--faq-muted);
}

.loading-spinner i {
    color: var(--faq-primary);
}

.no-results {
    text-align: center;
    padding: 48px 24px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--faq-border);
    box-shadow: 0 12px 28px rgba(15, 39, 66, 0.08);
    display: none;
}

.no-results i {
    color: #cbd5e1;
    margin-bottom: 12px;
}

.no-results h3 {
    margin: 0 0 8px;
    color: var(--faq-text);
}

.no-results p {
    margin: 0;
    color: var(--faq-muted);
}

.contact-widget {
    margin-top: 56px;
    background: #fff;
    border: 1px solid var(--faq-border);
    border-radius: 20px;
    padding: 40px 28px;
    text-align: center;
    box-shadow: 0 14px 34px rgba(15, 39, 66, 0.08);
}

.contact-widget h2 {
    margin: 0 0 10px;
    font-family: 'Playfair Display', Helvetica, serif;
    color: var(--faq-text);
    font-size: 2rem;
}

.contact-widget p {
    margin: 0 0 28px;
    color: var(--faq-muted);
    font-size: 1.05rem;
}

.contact-main-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}

.contact-box {
    background: var(--faq-bg-soft);
    border: 1px solid var(--faq-border);
    border-radius: 16px;
    padding: 24px;
    flex: 1 1 320px;
    max-width: 420px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-box:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 138, 138, 0.35);
    box-shadow: 0 10px 24px rgba(15, 39, 66, 0.1);
}

.contact-icon-large {
    width: 52px;
    height: 52px;
    background: #fff;
    border: 1px solid var(--faq-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--faq-primary);
    flex-shrink: 0;
}

.contact-box.email .contact-icon-large {
    color: #2563eb;
}

.contact-box.mobile .contact-icon-large {
    color: var(--faq-primary);
}

.contact-details h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    color: var(--faq-text);
}

.contact-details a,
.contact-details span {
    font-size: 1rem;
    color: #415a75;
    text-decoration: none;
    font-weight: 600;
}

.contact-details a:hover {
    color: var(--faq-primary);
}

.app-connect {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.app-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.app-btn.whatsapp { background: #22c55e; }
.app-btn.telegram { background: #0088cc; }
.app-btn.botim { background: #0084ff; }
.app-btn.call { background: var(--faq-primary); }

.app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(15, 39, 66, 0.18);
}

.faq-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 40px;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .faq-cta-buttons {
        flex-direction: row;
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .faq-controls {
        position: relative;
        top: auto;
        right: auto;
        justify-content: center;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

    .faq-hero {
        padding-top: 110px;
    }

    .contact-box {
        flex: 1 1 100%;
        max-width: none;
    }
}
