/* ========================================
   KARMAVYAA — FAQ Page CSS
   ======================================== */

body.page-slug-faq { background: #FAFAFA; }

/* ── Hero ────────────────────────────── */
.faq-page-hero {
    height: 100dvh; max-height: 100dvh; overflow: hidden;
    padding-top: clamp(80px, 10vh, 100px);
    padding-bottom: clamp(32px, 5vh, 56px);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.7)),
                url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?q=80&w=2670&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
}

.faq-page-hero .hero-content { max-width: 800px; padding: 0 20px; }

.faq-page-hero .hero-badge {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--space-4);
    color: rgba(255, 255, 255, 0.95);
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(6px);
}

.faq-page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: var(--text-5xl);
    margin-bottom: clamp(28px, 4vh, 44px);
    line-height: 1.1;
    color: var(--white);
}

.faq-page-hero h1 span { color: var(--accent); font-style: italic; }

.faq-page-hero p {
    font-size: var(--text-xl);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

/* ── FAQ Container ───────────────────── */
.faq-page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px;
}

.filter-heading {
    text-align: center;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: var(--space-2) var(--space-4);
    border-radius: 50px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-600);
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-family: inherit;
}

.tab-btn.active, .tab-btn:hover {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

.faq-group {
    display: none;
    animation: faqFadeIn 0.5s ease-out;
}

.faq-group.active { display: block; }

@keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── FAQ Items ───────────────────────── */
.faq-page-item {
    background: var(--white);
    margin-bottom: var(--space-4);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.faq-page-item:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.faq-page-header {
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--dark);
    font-family: inherit;
}

.faq-page-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s ease;
    color: var(--gray-400);
    flex-shrink: 0;
}

.faq-page-item.open { border-color: var(--primary); }
.faq-page-item.open .faq-page-icon { transform: rotate(180deg); color: var(--primary); }
.faq-page-item.open .faq-page-content { max-height: 2000px; }

.faq-page-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--gray-50);
    border-radius: 0 0 20px 20px;
}

.faq-page-inner {
    padding: 0 32px 24px;
    color: var(--gray-600);
    font-size: var(--text-md);
    line-height: 1.8;
}

/* Ripple */
.faq-page-ripple {
    position: absolute;
    background: rgba(79, 70, 229, 0.05);
    border-radius: 50%;
    transform: scale(0);
    animation: faqRipple 0.6s linear;
    pointer-events: none;
}

@keyframes faqRipple { to { transform: scale(4); opacity: 0; } }

/* ── Contact (FAQ page version) ──────── */
.faq-contact { background: var(--gray-50); padding-top: 80px; padding-bottom: 0; margin-bottom: -105px; }
.faq-contact .contact-hero { text-align: center; padding-bottom: 160px; background: linear-gradient(135deg, var(--gray-50), #f1f5f9); }
.faq-contact .contact-hero-container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.faq-contact .contact-hero h1 { font-size: var(--text-3xl); font-weight: 300; color: var(--dark); margin-bottom: 16px; }
.faq-contact .contact-hero h1 span { color: var(--primary); font-weight: 500; }
.faq-contact .contact-hero p { font-size: var(--text-md); color: var(--dark); max-width: 500px; margin: 0 auto; }

.faq-contact .contact-card-wrapper { max-width: 1280px; margin: -120px auto 0; padding: 0 40px; position: relative; z-index: 10; }
.faq-contact .contact-card { background: var(--white); border-radius: 24px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15); overflow: hidden; display: flex; min-height: 500px; }
.faq-contact .contact-info-side { width: 42%; background: var(--primary); position: relative; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; color: var(--white); }
.faq-contact .contact-info-side::before { content: ''; position: absolute; inset: 0; background: url('https://images.unsplash.com/photo-1516387938699-a93567ec168e?w=800&fit=crop') no-repeat center; background-size: cover; opacity: 0.3; mix-blend-mode: multiply; }
.faq-contact .contact-info-content { position: relative; z-index: 1; }
.faq-contact .contact-info-side h3 { font-size: var(--text-xl); font-weight: 300; margin-bottom: 8px; color: var(--white); }
.faq-contact .contact-info-side .info-subtitle { font-size: var(--text-base); opacity: 0.8; font-weight: 300; margin-bottom: 40px; }

.faq-contact .contact-details { display: flex; flex-direction: column; gap: 24px; }
.faq-contact .contact-detail-item { display: flex; align-items: center; gap: 16px; }
.faq-contact .contact-detail-icon { width: 44px; height: 44px; background: rgba(255, 255, 255, 0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.faq-contact .contact-detail-item span { font-size: var(--text-md); font-weight: 300; }

.faq-contact .contact-info-side h3,
.faq-contact .contact-info-side .info-subtitle,
.faq-contact .contact-info-side .contact-detail-item span {
    font-family: "Times New Roman", Times, serif;
    font-weight: 600;
}

.faq-contact .contact-socials { display: flex; gap: var(--space-3); margin-top: 40px; position: relative; z-index: 1; }
.faq-contact .social-link { width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); text-decoration: none; transition: all 0.3s; }
.faq-contact .social-link:hover { background: var(--white); color: var(--primary); }

.faq-contact .contact-form-side { width: 58%; padding: 48px; }
.faq-contact .contact-form { display: flex; flex-direction: column; gap: 24px; }
.faq-contact .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.faq-contact .form-group { display: flex; flex-direction: column; gap: 8px; }
.faq-contact .form-group label { font-size: var(--text-base); font-weight: 300; color: var(--dark); }
.faq-contact .form-group input,
.faq-contact .form-group textarea { padding: 14px 18px; border: 1px solid var(--gray-200); border-radius: 10px; font-size: var(--text-md); font-family: inherit; transition: all 0.3s; font-weight: 300; }
.faq-contact .form-group input:focus,
.faq-contact .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); }
.faq-contact .form-group textarea { min-height: 120px; resize: none; }

.faq-contact .contact-form-side,
.faq-contact .contact-form-side .form-group label,
.faq-contact .contact-form-side .form-group input,
.faq-contact .contact-form-side .form-group textarea,
.faq-contact .contact-form-side .checkbox-label,
.faq-contact .contact-form-side .form-submit {
    font-family: "Times New Roman", Times, serif;
    font-weight: 600;
}

.faq-contact .form-group label .required { color: #EF4444; font-weight: 600; }
.faq-contact .form-group label .optional { color: var(--gray-400); font-size: var(--text-xs); }

.faq-contact .service-checkboxes { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.faq-contact .checkbox-label {
    position: relative; display: flex; align-items: center; cursor: pointer;
    font-size: var(--text-base); font-weight: 500; color: var(--dark);
    padding: 12px 16px; background: linear-gradient(135deg, var(--gray-50) 0%, #f8fafc 100%);
    border-radius: 12px; border: 1px solid var(--gray-200); transition: all 0.25s ease; user-select: none;
}
.faq-contact .checkbox-label input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.faq-contact .checkbox-label:has(input[type="checkbox"]:checked) {
    border-color: #ffbf00; background: #ffbf00; box-shadow: 0 8px 20px rgba(255, 191, 0, 0.28); color: #4a3600;
}

.faq-contact .checkbox-label:hover {
    border-color: var(--gray-300);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: translateY(-1px);
}

.faq-contact .checkbox-label:has(input[type="checkbox"]:focus-visible) {
    outline: 2px solid rgba(255, 191, 0, 0.55);
    outline-offset: 2px;
}

.faq-contact .checkbox-label input[type="checkbox"] {
    pointer-events: none;
}

.faq-contact .service-opt--marketing { --accent-rgb: 14, 165, 233; }
.faq-contact .service-opt--learning  { --accent-rgb: 16, 185, 129; }
.faq-contact .service-opt--product   { --accent-rgb: 249, 115, 22; }
.faq-contact .service-opt--other     { --accent-rgb: 139, 92, 246; }

.faq-contact .form-submit {
    width: 100%; padding: 16px 28px; min-height: 52px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--blue) 100%);
    color: var(--white); border: none; border-radius: 10px;
    font-size: var(--text-md); font-weight: 600; cursor: pointer;
    transition: all 0.3s; margin-top: 12px;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    letter-spacing: 0.5px; position: relative; overflow: hidden;
}
.faq-contact .form-submit:hover {
    transform: translateY(-3px); box-shadow: 0 8px 25px rgba(79, 70, 229, 0.45);
    background: linear-gradient(135deg, #5B54E8 0%, #4F9CF9 100%);
}

.faq-contact .form-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.faq-contact .form-submit:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.faq-contact .form-submit:active::before {
    width: 300px;
    height: 300px;
}

.faq-contact .form-submit.success {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%) !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.faq-contact .form-submit.success:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.faq-contact .form-group input::placeholder,
.faq-contact .form-group textarea::placeholder {
    color: var(--gray-400);
}

/* ── Responsive ──────────────────────── */
@media (max-width: 768px) {
    .faq-page-hero { padding-top: clamp(100px, 14vh, 120px); padding-bottom: clamp(48px, 6vh, 64px); padding-left: 24px; padding-right: 24px; background-attachment: scroll; }
    .faq-page-container { padding: 40px 24px; }
    .faq-contact { margin-bottom: -60px !important; padding-top: 36px; }
    .faq-contact .contact-hero { padding-bottom: 80px; }
    .faq-contact .contact-card-wrapper { padding: 0 24px; margin-top: -80px; }
    .faq-contact .contact-card { flex-direction: column; border-radius: 20px; }
    .faq-contact .contact-info-side { width: 100%; padding: 28px 24px; text-align: center; }
    .faq-contact .contact-details { align-items: center; }
    .faq-contact .contact-detail-item { justify-content: center; }
    .faq-contact .contact-socials { justify-content: center; }
    .faq-contact .contact-form-side { width: 100%; padding: 28px 24px; }
    .faq-contact .form-row { grid-template-columns: 1fr; gap: 16px; }
    .faq-contact .service-checkboxes { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .faq-page-hero { padding-top: clamp(88px, 13vh, 108px); padding-bottom: clamp(40px, 5vh, 56px); padding-left: 20px; padding-right: 20px; background-attachment: scroll; }
    .faq-page-hero h1 { font-size: var(--text-3xl); line-height: 1.2; }
    .faq-page-hero .hero-badge { padding: var(--space-2) var(--space-3); }
    .faq-page-container { padding: 50px 20px; }
    .faq-page-header { padding: 20px 16px; }
    .faq-page-inner { padding: 0 16px 16px; }
    .faq-contact .contact-card-wrapper { padding: 0 20px; }
    .faq-contact .contact-info-side { padding: 24px 20px; }
    .faq-contact .contact-form-side { padding: 24px 20px; }
}

@media (max-width: 375px) {
    .faq-page-hero { padding-top: clamp(80px, 12vh, 100px); padding-bottom: clamp(36px, 5vh, 48px); padding-left: 16px; padding-right: 16px; background-attachment: scroll; }
    .faq-page-hero h1 { font-size: var(--text-2xl); letter-spacing: -0.5px; }
    .faq-page-container { padding: 40px 16px; }
    .faq-page-header { padding: 18px 14px; }
    .faq-page-inner { padding: 0 14px 14px; }
    .faq-contact .contact-card-wrapper { padding: 0 16px; }
    .faq-contact .contact-info-side { padding: 24px 16px; }
    .faq-contact .contact-form-side { padding: 24px 16px; }
}

@media (orientation: landscape) and (max-height: 500px) {
    .faq-page-hero {
        height: auto; min-height: 100dvh; max-height: none;
        overflow-y: visible;
        padding-top: clamp(58px, 14vh, 72px);
        padding-bottom: clamp(12px, 3vh, 20px);
        background-attachment: scroll;
    }
}
