/* =========================================================
   QTP Contact + FAQ — FULL CSS (Full-Width Nebula BG + Mock Match)
   Replace entire /assets/qtp-contact-faq.css with this.
   ========================================================= */

/* -----------------------------
   FULL-BLEED BACKGROUND WRAP
   (Astra + Elementor safe)
   ----------------------------- */

.entry-content > .qtp-cf-wrap,
.qtp-cf-wrap{
  /* Break out of theme containers */
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;

  /* Background image */
  background: url("https://quadtrendpro.com/wp-content/uploads/2026/02/Nebula-Aboutus-BG-1.png")
    center center / cover no-repeat !important;

  /* Spacing */
  padding: 72px 20px 92px;
  position: relative;
  overflow: hidden;

  /* Stacking context for overlay */
  isolation: isolate;

  /* Typography baseline */
  color: rgba(255,255,255,0.92);
}

/* Dark overlay for readability (match site vibe) */
.qtp-cf-wrap::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.58),
    rgba(0,0,0,0.34),
    rgba(0,0,0,0.58)
  );
  z-index:0;
}

/* Ensure all content sits above overlay */
.qtp-cf-wrap > *{
  position: relative;
  z-index: 1;
}

/* Use site global font */
.qtp-cf-wrap,
.qtp-cf-wrap *{
  font-family: inherit !important;
}

/* -----------------------------
   HERO
   ----------------------------- */

.qtp-cf-hero{
  max-width: 1180px;
  margin: 0 auto 26px;
}

.qtp-cf-title{
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  font-weight: 800;
  color: rgba(255,255,255,0.96);
  text-shadow: 0 10px 40px rgba(0,0,0,0.55);
}

.qtp-cf-sub{
  margin: 0;
  max-width: 860px;
  font-size: 18px;
  font-weight: 500;
  color: rgba(255,255,255,0.78);
}

/* -----------------------------
   GRID
   ----------------------------- */

.qtp-cf-grid{
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 980px){
  .qtp-cf-grid{
    grid-template-columns: 1fr;
  }
}

/* -----------------------------
   CARDS (glass)
   ----------------------------- */

.qtp-cf-card{
  border-radius: 18px;
  background: rgba(10,12,18,0.62);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 24px;
}

.qtp-cf-cardtitle{
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
  color: rgba(255,255,255,0.94);
}

.qtp-cf-muted{
  margin: -6px 0 14px;
  font-size: 14px;
  color: rgba(255,255,255,0.70);
}

/* -----------------------------
   FORM
   ----------------------------- */

.qtp-cf-form{
  display: grid;
  gap: 14px;
  justify-items: stretch; /* prevents skinny inputs */
}

.qtp-cf-label{
  width: 100%;
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
}

.qtp-cf-input,
.qtp-cf-textarea{
  width: 100%;
  display: block;
  margin-top: 8px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.38);
  color: rgba(255,255,255,0.92);
  outline: none;
  box-shadow: none;
}

.qtp-cf-input{
  height: 44px;
}

.qtp-cf-textarea{
  resize: vertical;
  min-height: 160px;
}

.qtp-cf-input::placeholder,
.qtp-cf-textarea::placeholder{
  color: rgba(255,255,255,0.45);
}

.qtp-cf-input:focus,
.qtp-cf-textarea:focus{
  border-color: rgba(72,232,164,0.55);
  box-shadow: 0 0 0 3px rgba(72,232,164,0.16);
}

/* -----------------------------
   reCAPTCHA v2 (checkbox) styling
   ----------------------------- */

.qtp-recaptcha-wrap{
  margin-top: 8px;
  margin-bottom: 8px;
  max-width: 100%;
}

.qtp-recaptcha-wrap iframe{
  max-width: 100% !important;
}

@media (max-width: 480px){
  /* Helps avoid overflow on very small screens */
  .qtp-recaptcha-wrap{
    transform-origin: left top;
  }
}

/* -----------------------------
   BUTTON (match mock)
   ----------------------------- */

.qtp-cf-btn{
  -webkit-appearance: none;
  appearance: none;

  width: auto;                 /* not full width */
  min-width: 220px;
  justify-self: start;         /* left aligned */

  margin-top: 10px;
  padding: 12px 20px;
  border-radius: 10px;

  background: #2fbf88;
  background-image: none;
  border: 1px solid rgba(255,255,255,0.10);

  color: rgba(255,255,255,0.92);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;

  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,0.45);
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}

.qtp-cf-btn:hover{
  background: #35c892;
  background-image: none;
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 14px 30px rgba(0,0,0,0.52);
}

.qtp-cf-btn:active{
  transform: translateY(0);
}

.qtp-cf-btn:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(72,232,164,0.18), 0 14px 30px rgba(0,0,0,0.52);
}

/* -----------------------------
   ALERTS
   ----------------------------- */

.qtp-cf-alert{
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.35);
}

.qtp-cf-alert--success{
  border-color: rgba(72,232,164,0.35);
}

.qtp-cf-alert--error{
  border-color: rgba(255,95,95,0.35);
}

.qtp-cf-alert ul{
  margin: 0;
  padding-left: 18px;
}

/* -----------------------------
   FAQ ACCORDION
   ----------------------------- */

.qtp-cf-accordion{
  display: grid;
  gap: 10px;
}

.qtp-cf-accitem{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.30);
  overflow: hidden;
}

.qtp-cf-acctoggle{
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;

  color: rgba(255,255,255,0.88);
  font-weight: 700;
}

.qtp-cf-plus{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(72,232,164,0.45);
  color: rgba(72,232,164,0.95);
}

.qtp-cf-accbody{
  padding: 0 14px 14px;
}

.qtp-cf-acca{
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.74);
}

/* Empty state */
.qtp-cf-empty{
  opacity: .8;
  font-size: 14px;
  padding: 10px 2px;
}
