/**
 * Performance Marketing 4U - Unified FAQs & CTA Form Section Stylesheet
 * High-Converting 2-Column Responsive Layout with Glassmorphism, 3D Floating Icons & Canvas Particles
 */

:root {
  --faq-cta-primary: #ea580c;
  --faq-cta-secondary: #f59e0b;
  --faq-cta-rgb: 234, 88, 12;
  --faq-cta-glow: rgba(234, 88, 12, 0.38);
  --faq-cta-glow-soft: rgba(234, 88, 12, 0.14);
}

/* Service-Specific Theme Tokens */
.sec-faq-cta-unified[data-theme="amazon"] {
  --faq-cta-primary: #ea580c;
  --faq-cta-secondary: #f59e0b;
  --faq-cta-rgb: 234, 88, 12;
  --faq-cta-glow: rgba(234, 88, 12, 0.38);
  --faq-cta-glow-soft: rgba(234, 88, 12, 0.14);
}

.sec-faq-cta-unified[data-theme="flipkart"] {
  --faq-cta-primary: #2874f0;
  --faq-cta-secondary: #00d2ff;
  --faq-cta-rgb: 40, 116, 240;
  --faq-cta-glow: rgba(40, 116, 240, 0.38);
  --faq-cta-glow-soft: rgba(40, 116, 240, 0.14);
}

.sec-faq-cta-unified[data-theme="shopify"] {
  --faq-cta-primary: #008060;
  --faq-cta-secondary: #10b981;
  --faq-cta-rgb: 0, 128, 96;
  --faq-cta-glow: rgba(16, 185, 129, 0.38);
  --faq-cta-glow-soft: rgba(16, 185, 129, 0.14);
}

.sec-faq-cta-unified[data-theme="meesho"] {
  --faq-cta-primary: #f43397;
  --faq-cta-secondary: #fb7185;
  --faq-cta-rgb: 244, 51, 151;
  --faq-cta-glow: rgba(244, 51, 151, 0.38);
  --faq-cta-glow-soft: rgba(244, 51, 151, 0.14);
}

.sec-faq-cta-unified[data-theme="myntra"] {
  --faq-cta-primary: #ff3f6c;
  --faq-cta-secondary: #f43f5e;
  --faq-cta-rgb: 255, 63, 108;
  --faq-cta-glow: rgba(255, 63, 108, 0.38);
  --faq-cta-glow-soft: rgba(255, 63, 108, 0.14);
}

.sec-faq-cta-unified[data-theme="etsy"] {
  --faq-cta-primary: #f16521;
  --faq-cta-secondary: #fb923c;
  --faq-cta-rgb: 241, 101, 33;
  --faq-cta-glow: rgba(241, 101, 33, 0.38);
  --faq-cta-glow-soft: rgba(241, 101, 33, 0.14);
}

.sec-faq-cta-unified[data-theme="ecommerce"] {
  --faq-cta-primary: #6366f1;
  --faq-cta-secondary: #38bdf8;
  --faq-cta-rgb: 99, 102, 241;
  --faq-cta-glow: rgba(99, 102, 241, 0.38);
  --faq-cta-glow-soft: rgba(99, 102, 241, 0.14);
}

/* Main Section Wrapper */
.sec-faq-cta-unified {
  position: relative;
  background: radial-gradient(circle at 15% 20%, #0f172a 0%, #080c16 55%, #020617 100%);
  padding: 90px 0;
  color: #ffffff;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Canvas Particles */
.faq-particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.65;
}

/* Ambient Animated Glow Orbs */
.sec-faq-cta-unified .faq-glow-orb {
  position: absolute;
  width: 580px;
  height: 580px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  opacity: 0.2;
  z-index: 1;
  animation: faqOrbFloat 8s ease-in-out infinite alternate;
}

.sec-faq-cta-unified .faq-glow-orb.orb-left {
  top: -120px;
  left: -160px;
  background: radial-gradient(circle, var(--faq-cta-primary) 0%, transparent 70%);
}

.sec-faq-cta-unified .faq-glow-orb.orb-right {
  bottom: -140px;
  right: -160px;
  background: radial-gradient(circle, var(--faq-cta-secondary) 0%, transparent 70%);
  animation-delay: -4s;
}

@keyframes faqOrbFloat {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.12) translateY(25px); }
}

/* 3D Floating Background Icons */
.faq-floating-icons-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.faq-3d-float-icon {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  transition: all 0.5s ease;
}

.faq-icon-sphere {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 
              inset 0 1px 0 rgba(255, 255, 255, 0.22),
              0 0 24px var(--faq-cta-glow-soft);
  backdrop-filter: blur(10px);
  color: var(--faq-cta-secondary);
  font-size: 24px;
  opacity: 0.85;
}

/* Float Positions & Custom Animations */
.faq-3d-float-icon.float-icon-1 {
  top: 7%;
  left: 2.5%;
  animation: faqFloatAnim1 7.5s ease-in-out infinite alternate;
}

.faq-3d-float-icon.float-icon-2 {
  top: 48%;
  left: 1.5%;
  animation: faqFloatAnim2 9s ease-in-out infinite alternate;
}

.faq-3d-float-icon.float-icon-3 {
  bottom: 8%;
  left: 3%;
  animation: faqFloatAnim3 8.2s ease-in-out infinite alternate;
}

.faq-3d-float-icon.float-icon-4 {
  top: 9%;
  right: 2.5%;
  animation: faqFloatAnim2 8.6s ease-in-out infinite alternate;
}

.faq-3d-float-icon.float-icon-5 {
  top: 50%;
  right: 1.8%;
  animation: faqFloatAnim1 7.8s ease-in-out infinite alternate;
}

.faq-3d-float-icon.float-icon-6 {
  bottom: 7%;
  right: 3%;
  animation: faqFloatAnim3 9.4s ease-in-out infinite alternate;
}

@keyframes faqFloatAnim1 {
  0% { transform: translateY(0px) rotate(0deg) scale(1); }
  50% { transform: translateY(-18px) rotate(8deg) scale(1.06); }
  100% { transform: translateY(-8px) rotate(-6deg) scale(0.96); }
}

@keyframes faqFloatAnim2 {
  0% { transform: translateY(0px) rotate(0deg) scale(0.95); }
  50% { transform: translateY(20px) rotate(-10deg) scale(1.08); }
  100% { transform: translateY(6px) rotate(6deg) scale(1); }
}

@keyframes faqFloatAnim3 {
  0% { transform: translateY(0px) rotate(0deg) scale(1); }
  50% { transform: translateY(-16px) rotate(-8deg) scale(1.06); }
  100% { transform: translateY(14px) rotate(10deg) scale(0.95); }
}

@media (max-width: 1200px) {
  .faq-3d-float-icon {
    display: none;
  }
}

.sec-faq-cta-unified .container {
  position: relative;
  z-index: 2;
}

/* Left Column - FAQ Hub */
.faq-hub-wrap {
  padding-right: 15px;
}

/* Frequently Asked Questions Single Line Heading */
.faq-title {
  font-family: var(--font-outfit, 'Outfit', sans-serif);
  font-size: clamp(1.85rem, 2.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

@media (min-width: 992px) {
  .faq-title {
    white-space: nowrap;
  }
}

.faq-gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--faq-cta-secondary) 55%, var(--faq-cta-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

/* Interactive FAQ Accordion List */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
}

/* Active vertical neon accent stripe on left */
.faq-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--faq-cta-primary) 0%, var(--faq-cta-secondary) 100%);
  opacity: 0;
  transform: scaleY(0);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top;
  z-index: 3;
}

.faq-item:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.faq-item.is-open {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--faq-cta-primary);
  box-shadow: 0 12px 35px var(--faq-cta-glow-soft);
  transform: translateX(6px);
}

.faq-item.is-open::before {
  opacity: 1;
  transform: scaleY(1);
}

.faq-btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 22px;
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 15.5px;
  font-weight: 700;
  color: #f1f5f9;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: color 0.25s ease;
}

.faq-btn:hover {
  color: #ffffff;
}

.faq-item.is-open .faq-btn {
  color: #ffffff;
}

.faq-btn-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #cbd5e1;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.is-open .faq-btn-icon {
  background: linear-gradient(135deg, var(--faq-cta-primary) 0%, var(--faq-cta-secondary) 100%);
  color: #ffffff;
  transform: rotate(180deg);
  box-shadow: 0 4px 14px var(--faq-cta-glow);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.is-open .faq-answer {
  max-height: 400px;
}

.faq-answer-inner {
  padding: 0 22px 20px 22px;
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 14.5px;
  line-height: 1.75;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 14px;
}

/* Right Column - Elevated CTA Form Card */
.cta-form-card {
  position: relative;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 38px 34px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

/* Animated Flowing Top Neon Accent Stripe */
.cta-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, 
    var(--faq-cta-primary) 0%, 
    var(--faq-cta-secondary) 50%, 
    var(--faq-cta-primary) 100%);
  background-size: 200% 100%;
  animation: faqCtaBorderFlow 4s linear infinite;
  z-index: 2;
}

@keyframes faqCtaBorderFlow {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

.cta-form-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.65), 0 0 30px var(--faq-cta-glow-soft);
  transform: translateY(-3px);
}

.form-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--faq-cta-glow-soft);
  color: var(--faq-cta-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-outfit, 'Outfit', sans-serif);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.form-header-title {
  font-family: var(--font-outfit, 'Outfit', sans-serif);
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.form-header-desc {
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Form Inputs */
.cta-form-group {
  margin-bottom: 16px;
}

.cta-form-control {
  width: 100%;
  background: rgba(11, 15, 25, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 14px !important;
  transition: all 0.25s ease !important;
}

.cta-form-control:focus {
  background: rgba(15, 23, 42, 0.95) !important;
  border-color: var(--faq-cta-primary) !important;
  box-shadow: 0 0 0 3px var(--faq-cta-glow), 0 8px 20px rgba(0, 0, 0, 0.3) !important;
  transform: translateY(-1px);
  outline: none !important;
}

.cta-form-control::placeholder {
  color: #64748b !important;
}

.cta-form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 14px 10px !important;
  padding-right: 38px !important;
}

.cta-form-select option {
  background: #0b0f19;
  color: #ffffff;
}

/* Animated Submit Button */
.cta-submit-btn {
  position: relative;
  width: 100%;
  padding: 15px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--faq-cta-primary) 0%, var(--faq-cta-secondary) 100%);
  color: #ffffff;
  border: none;
  font-family: var(--font-outfit, 'Outfit', sans-serif);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px var(--faq-cta-glow);
  margin-top: 6px;
  overflow: hidden;
}

/* Light Sweep Shimmer Keyframes */
.cta-submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-22deg);
  animation: btnShimmerSweep 3.5s infinite;
}

@keyframes btnShimmerSweep {
  0%, 70% { left: -100%; }
  100% { left: 200%; }
}

.cta-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--faq-cta-glow);
  color: #ffffff;
}

.cta-submit-btn i {
  transition: transform 0.25s ease;
}

.cta-submit-btn:hover i {
  transform: translateX(5px);
}

/* Form Trust Badges */
.cta-trust-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-inter, 'Inter', sans-serif);
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
}

.cta-trust-item i {
  color: var(--faq-cta-secondary);
  font-size: 13px;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .sec-faq-cta-unified {
    padding: 70px 0;
  }
  
  .faq-hub-wrap {
    padding-right: 0;
    margin-bottom: 40px;
  }
  
  .cta-form-card {
    padding: 30px 24px;
    border-radius: 20px;
  }
}

@media (max-width: 576px) {
  .cta-trust-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
