/* Contact Us V2. Scoped to the contact pages so other layouts stay unchanged. */
body[data-sg-contact] { overflow-x: clip; }

.sg-contact-main {
  padding-top: 4rem;
}

.sg-contact-layout {
  display: grid;
  gap: 1.25rem;
  grid-template-areas:
    "intro"
    "benefits"
    "form"
    "cards"
    "preview";
}

.sg-contact-intro { grid-area: intro; }
.sg-contact-benefits { grid-area: benefits; }
.sg-contact-form { grid-area: form; }
.sg-contact-cards { grid-area: cards; }
.sg-contact-preview { grid-area: preview; }

@media (min-width: 1024px) {
  .sg-contact-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    grid-template-areas:
      "intro form"
      "benefits form"
      "preview form"
      "cards form";
    column-gap: 2.5rem;
    row-gap: 1.25rem;
    align-items: start;
  }

  .sg-contact-form {
    position: sticky;
    top: 5.25rem;
  }
}

.sg-contact-shot {
  width: 100%;
  height: auto;
  display: block;
  background: #191c1e;
}

.sg-phone {
  display: flex;
  align-items: stretch;
  direction: ltr;
  background: #f2f4f6;
  border-radius: 0.5rem;
  min-height: 2.75rem;
}

.sg-phone:focus-within {
  background: #fff;
  box-shadow: 0 0 0 2px #65b71e;
}

.sg-phone select,
.sg-phone input {
  background: transparent;
  border: 0;
  color: #191c1e;
  font: inherit;
  min-height: 2.75rem;
}

.sg-phone select {
  width: 7.25rem;
  padding: 0 0.35rem 0 0.6rem;
  cursor: pointer;
}

.sg-phone input {
  flex: 1;
  min-width: 0;
  padding: 0 0.85rem;
  outline: none;
}

.sg-field.is-invalid .sg-control,
.sg-field.is-invalid .sg-phone {
  box-shadow: 0 0 0 2px #ba1a1a;
}

.sg-control {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.9rem;
  border: 0;
  border-radius: 0.5rem;
  background: #f2f4f6;
  color: #191c1e;
  font: inherit;
}

textarea.sg-control {
  min-height: 6.5rem;
  resize: vertical;
}

.sg-control:focus {
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 2px #65b71e;
}

.sg-select-wrap {
  position: relative;
}

.sg-select-wrap select {
  appearance: none;
  padding-inline-end: 2.4rem;
}

.sg-select-wrap .material-symbols-outlined {
  position: absolute;
  inset-inline-end: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #717a66;
}

.sg-error {
  display: none;
  margin: 0.3rem 0 0;
  color: #ba1a1a;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

.sg-field.is-invalid .sg-error { display: block; }

.sg-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

footer a.sg-ltr { overflow-wrap: anywhere; }

.sg-status[hidden],
.sg-success[hidden],
.sg-form-fields[hidden] { display: none !important; }

.sg-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: sg-spin 0.7s linear infinite;
}

@keyframes sg-spin { to { transform: rotate(360deg); } }

.sg-faq details summary { cursor: pointer; }
.sg-faq details summary::-webkit-details-marker { display: none; }
.sg-faq details .material-symbols-outlined { transition: transform 0.2s ease; }
.sg-faq details[open] .material-symbols-outlined { transform: rotate(180deg); }
.sg-faq .sg-faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}
.sg-faq details[open] .sg-faq-panel { grid-template-rows: 1fr; }
.sg-faq .sg-faq-panel > div { overflow: hidden; }

.sg-ltr { direction: ltr; unicode-bidi: isolate; }

@media (prefers-reduced-motion: reduce) {
  .sg-spinner,
  .sg-faq details .material-symbols-outlined,
  .sg-faq .sg-faq-panel { animation: none; transition: none; }
}
