/* ============================================================
   EmailsWave — Inner pages premium treatment (contact + faq)
   Layers on theme.css. Scoped to body.page-contact / body.page-faq.
   Adds animated hero glow, scroll reveals, and card polish.
   ============================================================ */

body.page-contact, body.page-faq {
    --i-primary: #6C3CEC;
    --i-primary-2: #A362F0;
    --i-accent: #FF6B9D;
    --i-ink: #1A1538;
    --i-muted: #5C587A;
    --i-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Animated page hero ---------- */
body.page-contact .page-hero,
body.page-faq .page-hero {
    position: relative;
    overflow: hidden;
    padding: 160px 0 70px;
    text-align: left;
    background: none;
}
body.page-contact .page-hero::before,
body.page-faq .page-hero::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 82% 18%, rgba(163,98,240,0.14), transparent 55%),
        radial-gradient(circle at 12% 88%, rgba(255,107,157,0.10), transparent 52%);
    pointer-events: none;
}
/* floating blob accent */
body.page-contact .page-hero::after,
body.page-faq .page-hero::after {
    content: "";
    position: absolute; top: 40px; right: 8%;
    width: 220px; height: 220px;
    background: linear-gradient(135deg, var(--i-primary), var(--i-accent));
    opacity: 0.16; filter: blur(10px);
    border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
    animation: iBlob 12s infinite ease-in-out, iDrift 16s infinite ease-in-out;
    pointer-events: none;
}
@keyframes iBlob {
    0%,100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
    50% { border-radius: 58% 42% 37% 63% / 56% 59% 41% 44%; }
}
@keyframes iDrift {
    0%,100% { transform: translate(0,0) rotate(0deg); }
    50% { transform: translate(-12px,10px) rotate(3deg); }
}
body.page-contact .page-hero .container,
body.page-faq .page-hero .container { position: relative; z-index: 1; }
body.page-contact .page-title,
body.page-faq .page-title {
    font-size: 48px; line-height: 54px; font-weight: 700; text-align: left;
    max-width: 16ch; margin-bottom: 14px;
}
body.page-contact .page-title .grad,
body.page-faq .page-title .grad {
    background: linear-gradient(135deg, var(--i-primary), var(--i-accent));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
body.page-contact .page-subtitle,
body.page-faq .page-subtitle {
    text-align: left; margin: 0; max-width: 52ch; color: var(--i-muted);
    font-size: 18px; line-height: 28px;
}
body.page-contact .i-eyebrow,
body.page-faq .i-eyebrow {
    font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--i-primary); margin-bottom: 14px;
}

/* ---------- Contact form + info cards ---------- */
body.page-contact .contact-form-wrapper,
body.page-contact .contact-info-card {
    background: #fff !important; border: none !important;
    border-radius: 16px; box-shadow: 0 4px 24px rgba(107,60,236,0.06);
    padding: 32px;
}
body.page-contact .contact-form-wrapper { padding: 36px; }
body.page-contact .contact-info-card { transition: transform .26s var(--i-ease), box-shadow .26s var(--i-ease); }
body.page-contact .contact-info-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(107,60,236,0.12); }
body.page-contact .contact-info-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; }
body.page-contact .contact-info-item svg { color: var(--i-primary); flex-shrink: 0; margin-top: 2px; }
body.page-contact .contact-info-item strong { color: var(--i-ink); display: block; }
body.page-contact .contact-info-item p { color: var(--i-muted); margin: 2px 0 0; }
body.page-contact .contact-links a { color: var(--i-primary); }
body.page-contact .required { color: var(--i-accent); }

/* ---------- FAQ accordion polish ---------- */
body.page-faq .faq-content { max-width: 820px; }
body.page-faq .faq-item {
    background: #fff !important; border: none !important;
    border-radius: 14px; box-shadow: 0 4px 24px rgba(107,60,236,0.06);
    margin-bottom: 14px; overflow: hidden;
    transition: box-shadow .22s var(--i-ease);
}
body.page-faq .faq-item.open { box-shadow: 0 12px 32px rgba(107,60,236,0.12); }
body.page-faq .faq-question {
    width: 100%; text-align: left; background: none; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 24px; font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 17px; font-weight: 600; color: var(--i-ink);
}
body.page-faq .faq-toggle {
    width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px;
    background: rgba(108,60,236,0.10); color: var(--i-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; line-height: 1; transition: transform .3s var(--i-ease), background .2s var(--i-ease);
}
body.page-faq .faq-item.open .faq-toggle {
    transform: rotate(45deg);
    background: linear-gradient(135deg, var(--i-primary), var(--i-primary-2)); color: #fff;
}
body.page-faq .faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height .35s var(--i-ease), padding .35s var(--i-ease);
    padding: 0 24px;
}
body.page-faq .faq-item.open .faq-answer { max-height: 400px; padding: 0 24px 22px; }
body.page-faq .faq-answer p { color: var(--i-muted); font-size: 16px; line-height: 26px; margin: 0; padding: 0; }
body.page-faq .faq-answer a { color: var(--i-primary); font-weight: 600; }

/* ---------- Scroll reveal ---------- */
body.page-contact .ewh-reveal, body.page-faq .ewh-reveal {
    opacity: 0; transform: translateY(24px);
    transition: opacity .6s var(--i-ease), transform .6s var(--i-ease);
}
body.page-contact .ewh-reveal.in, body.page-faq .ewh-reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    body.page-contact .page-title, body.page-faq .page-title { font-size: 36px; line-height: 42px; }
    body.page-contact .page-hero, body.page-faq .page-hero { padding: 120px 0 50px; }
    body.page-contact .page-hero::after, body.page-faq .page-hero::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    body.page-contact *, body.page-faq * { animation: none !important; }
    body.page-contact .ewh-reveal, body.page-faq .ewh-reveal { opacity: 1; transform: none; transition: none; }
}
