/**
 * Support / Contact — modern enterprise UX (single-page bundle for contact.php).
 */

.support-page-body {
  background: #f8fafc;
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
}

/* Home page: full Support block without repainting the whole document body */
.support-page-embed {
  background: #f8fafc;
  scroll-margin-top: calc(70px + env(safe-area-inset-top, 0px));
}

.support-page {
  overflow-x: clip;
}

/* ----- Hero ----- */
.sp-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(5.25rem, 14vw, 7.5rem) 0 clamp(2.75rem, 6vw, 4rem);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background:
    radial-gradient(ellipse 90% 70% at 100% -10%, rgba(59, 130, 246, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(14, 165, 233, 0.1), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f1f5f9 55%, #f8fafc 100%);
}

.sp-hero__mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.42;
  pointer-events: none;
  background: url("../media/bcom-hero-mesh.svg") no-repeat 92% 18% / min(110%, 980px);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, black 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, black 20%, transparent 72%);
}

.sp-hero__gridlines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, black 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, black 25%, transparent 78%);
}

.sp-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.sp-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #2563eb;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.sp-hero h1 {
  font-family: var(--shell-display, "DM Sans", system-ui, sans-serif);
  font-size: clamp(2.15rem, 5vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin: 0 0 1rem;
  color: #0f172a;
}

.sp-hero__lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.65;
  color: #475569;
  margin: 0 auto;
  max-width: 52ch;
}

.sp-hero__metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.sp-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 8rem;
}

.sp-metric strong {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.sp-metric span {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

/* ----- Main split ----- */
.sp-body {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem);
  position: relative;
}

.sp-body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 960px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.35), transparent);
}

.sp-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.sp-aside__title {
  font-family: var(--shell-display, "DM Sans", system-ui, sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 1rem;
}

.sp-channels {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sp-channel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.sp-channel:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.sp-channel--primary {
  border-color: rgba(37, 99, 235, 0.22);
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.sp-channel__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.08));
  color: #1d4ed8;
}

.sp-channel__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.sp-channel__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.sp-channel__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  word-break: break-word;
}

.sp-channel__chev {
  color: #94a3b8;
  font-size: 0.85rem;
}

.sp-channel:hover .sp-channel__chev {
  color: #2563eb;
}

.sp-location {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px dashed rgba(148, 163, 184, 0.45);
}

.sp-location .sp-channel__icon {
  background: rgba(148, 163, 184, 0.15);
  color: #475569;
}

.sp-topics {
  margin-top: 2rem;
}

.sp-topics__title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 0.85rem;
}

.sp-topics__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sp-chip {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #334155;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.sp-chip:hover {
  border-color: rgba(37, 99, 235, 0.45);
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.06);
}

.sp-note {
  margin-top: 1.75rem;
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.sp-note i {
  color: #2563eb;
  margin-top: 0.15rem;
}

.sp-note p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #64748b;
}

@media (min-width: 1024px) {
  .sp-aside {
    position: sticky;
    top: calc(5.5rem + 1rem);
  }
}

/* ----- Form panel ----- */
.sp-form-panel {
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 4px 6px -1px rgba(15, 23, 42, 0.06),
    0 24px 48px -12px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.sp-form-panel__head h2 {
  font-family: var(--shell-display, "DM Sans", system-ui, sans-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
  color: #0f172a;
}

.sp-form-panel__head p {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.55;
}

.support-page .sp-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .support-page .sp-field-row {
    grid-template-columns: 1fr;
  }
}

.support-page .support-field.sp-field label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #334155;
}

.support-page .support-field input,
.support-page .support-field textarea {
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.9rem 1rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.support-page .support-field input:focus,
.support-page .support-field textarea:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.support-page .support-field textarea {
  min-height: 140px;
}

.support-page .support-submit.sp-submit {
  width: 100%;
  margin-top: 0.25rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 1rem;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.support-page .support-submit.sp-submit:hover {
  transform: translateY(-1px);
}

/* ----- Newsletter band ----- */
.sp-newsletter-band {
  padding: clamp(2.25rem, 5vw, 3.25rem) 0;
  background:
    radial-gradient(ellipse 80% 120% at 50% 120%, rgba(59, 130, 246, 0.12), transparent 55%),
    linear-gradient(180deg, #0f172a 0%, #1e293b 48%, #0f172a 100%);
  color: #f1f5f9;
}

.sp-newsletter-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.sp-newsletter-band__copy strong {
  display: block;
  font-family: var(--shell-display, "DM Sans", system-ui, sans-serif);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.sp-newsletter-band__copy span {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.5;
}

.support-page .support-newsletter-form.sp-nl-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: stretch;
}

.support-page .sp-nl-form input[type="email"] {
  min-width: min(280px, 100%);
  flex: 1;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: #f8fafc;
  font-size: 0.95rem;
}

.support-page .sp-nl-form input::placeholder {
  color: #94a3b8;
}

.support-page .sp-nl-form input:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.7);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.support-page .sp-nl-form button {
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.support-page .sp-nl-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45);
}

@media (max-width: 900px) {
  .sp-split {
    grid-template-columns: 1fr;
  }

  .sp-newsletter-band__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .support-page .support-newsletter-form.sp-nl-form {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  /* Keep <24h / Secure / EAT in one horizontal row on phones */
  .sp-hero__metrics {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.35rem 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }

  .sp-metric {
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
  }

  .sp-metric strong {
    font-size: clamp(0.82rem, 3.2vw, 1rem);
    line-height: 1.15;
    text-align: center;
  }

  .sp-metric span {
    font-size: clamp(0.58rem, 2.4vw, 0.72rem);
    text-align: center;
    line-height: 1.25;
  }
}

/* ----- Floating WhatsApp: pulsing icon + chat bubble ----- */
.sp-wa-float {
  position: fixed;
  z-index: 100;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 0.75rem;
  pointer-events: none;
}

.sp-wa-float__bubble,
.sp-wa-float__btn {
  pointer-events: auto;
}

.sp-wa-float__bubble {
  position: relative;
  max-width: 220px;
  padding: 0.65rem 1rem 0.75rem;
  background: #fff;
  border-radius: 16px;
  box-shadow:
    0 4px 6px -1px rgba(15, 23, 42, 0.08),
    0 18px 38px -12px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(15, 23, 42, 0.06);
  animation: sp-wa-bubble-pop 2.4s ease-in-out infinite;
}

.sp-wa-float__bubble::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: 14px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 10px;
  border-color: transparent transparent transparent #fff;
  filter: drop-shadow(2px 2px 2px rgba(15, 23, 42, 0.06));
}

.sp-wa-float__hello {
  display: block;
  font-family: var(--shell-display, "DM Sans", system-ui, sans-serif);
  font-weight: 700;
  font-size: 1.05rem;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sp-wa-float__cta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #25d366;
}

.sp-wa-float__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 1.85rem;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
  animation: sp-wa-icon-pop 2.4s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sp-wa-float__btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 36px rgba(37, 211, 102, 0.65);
}

.sp-wa-float__btn:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.55);
  outline-offset: 3px;
}

@keyframes sp-wa-icon-pop {
  0%,
  100% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.15);
  }

  55% {
    transform: scale(1.08);
  }

  70% {
    transform: scale(1.12);
  }
}

@keyframes sp-wa-bubble-pop {
  0%,
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }

  45% {
    transform: scale(1.04) translateY(-3px);
    opacity: 1;
  }

  55% {
    transform: scale(1.02) translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-wa-float__bubble,
  .sp-wa-float__btn {
    animation: none;
  }
}

@media (max-width: 480px) {
  .sp-wa-float {
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 0.5rem;
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  }

  .sp-wa-float__bubble {
    max-width: 200px;
    padding: 0.55rem 0.85rem 0.65rem;
  }

  .sp-wa-float__bubble::after {
    display: none;
  }

  .sp-wa-float__hello {
    font-size: 0.98rem;
  }

  .sp-wa-float__cta {
    font-size: 0.82rem;
  }

  .sp-wa-float__btn {
    width: 54px;
    height: 54px;
    font-size: 1.65rem;
  }
}
