/**
 * satello Contact & SEO Edition.
 * Consultation modal, managed Contact page and form components.
 */

html.satello-contact-open,
html.satello-contact-open body {
  overflow: hidden !important;
  overscroll-behavior: contain;
}

.satello-contact-modal[hidden] {
  display: none !important;
}

.satello-contact-modal {
  position: fixed;
  z-index: 120000;
  inset: 0;
  display: grid;
  min-height: 100dvh;
  padding: clamp(16px, 3vw, 42px);
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.satello-contact-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.satello-contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 20, 39, 0.76);
  cursor: pointer;
  backdrop-filter: blur(10px) saturate(115%);
}

.satello-contact-modal__dialog {
  --satello-modal-radius: clamp(22px, 2.5vw, 34px);
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1120px, 100%);
  max-height: calc(100dvh - clamp(32px, 6vw, 84px));
  grid-template-columns: minmax(320px, 0.82fr) minmax(480px, 1.18fr);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--satello-modal-radius);
  background: #fff;
  box-shadow: 0 44px 120px rgba(1, 20, 39, 0.42);
  opacity: 0;
  overflow: hidden;
  isolation: isolate;
  clip-path: inset(0 round var(--satello-modal-radius));
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.satello-contact-modal.is-open .satello-contact-modal__dialog {
  opacity: 1;
  transform: none;
}

.satello-contact-modal__close {
  position: absolute;
  z-index: 4;
  top: 16px;
  right: 16px;
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--sat-primary), transparent 84%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--sat-primary);
  box-shadow: 0 10px 26px rgba(4, 36, 73, 0.12);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  place-items: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.satello-contact-modal__close:hover,
.satello-contact-modal__close:focus-visible {
  background: var(--sat-accent-pale);
  transform: rotate(4deg) scale(1.04);
}

.satello-contact-modal__copy,
.satello-contact-panel__copy {
  position: relative;
  isolation: isolate;
  display: flex;
  min-width: 0;
  align-items: center;
  padding: clamp(40px, 5vw, 72px);
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 15%, rgba(8, 171, 168, 0.3), transparent 30%),
    radial-gradient(circle at 10% 88%, rgba(8, 171, 168, 0.14), transparent 34%),
    linear-gradient(145deg, var(--sat-dark), var(--sat-primary));
  color: #fff;
}

.satello-contact-modal__copy,
.satello-contact-modal__form {
  min-height: 0;
}

.satello-contact-modal__copy::before,
.satello-contact-panel__copy::before {
  position: absolute;
  z-index: -1;
  right: -115px;
  bottom: -155px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 56px rgba(8, 171, 168, 0.07), 0 0 0 112px rgba(255, 255, 255, 0.025);
  content: "";
}

.satello-contact-modal__form,
.satello-contact-panel__form {
  min-width: 0;
  padding: clamp(36px, 4.5vw, 64px);
  background:
    radial-gradient(circle at 96% 0%, color-mix(in srgb, var(--sat-accent), transparent 92%), transparent 28%),
    #fff;
}

.satello-contact-modal__form {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.satello-contact-copy {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.satello-contact-modal__copy .satello-contact-copy,
.satello-contact-modal__copy .satello-contact-copy > * {
  min-width: 0;
  max-width: 100%;
}

.satello-contact-copy h2 {
  max-width: 540px;
  margin-bottom: 22px;
  color: #fff;
  font-family: var(--sat-heading-font, "Quicksand", Arial, sans-serif);
  font-size: clamp(2rem, 3.2vw, 3.45rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.satello-contact-copy__text,
.satello-contact-copy__text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--sat-body-size, 16px) !important;
  line-height: 1.72;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.satello-contact-phone,
.satello-contact-phone span,
.satello-contact-phone strong,
.satello-contact-phone em {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* Polish headings are naturally longer; keep the modal's two-column rhythm. */
html[lang^="pl"] .satello-contact-modal__copy {
  padding: clamp(34px, 4.2vw, 62px);
}

html[lang^="pl"] .satello-contact-modal__copy h2 {
  font-size: clamp(1.78rem, 2.7vw, 3.05rem);
}

.satello-contact-phone {
  display: flex;
  max-width: 470px;
  align-items: center;
  gap: 16px;
  margin-top: clamp(28px, 4vw, 46px);
  padding: 17px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff !important;
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.satello-contact-phone:hover,
.satello-contact-phone:focus-visible {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.satello-contact-phone__icon {
  display: inline-grid;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 16px;
  background: var(--sat-accent);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  place-items: center;
}

.satello-contact-phone__icon svg {
  width: 28px;
  height: 28px;
}

.satello-contact-phone > span:last-child {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.satello-contact-phone small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.satello-contact-phone strong {
  color: #fff;
  font-family: var(--sat-heading-font, "Quicksand", Arial, sans-serif);
  font-size: clamp(1.18rem, 1.8vw, 1.5rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.satello-contact-phone em {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  font-style: normal;
}

.satello-contact-form-wrap {
  width: 100%;
}

.satello-contact-form__heading {
  padding-right: 42px;
}

.satello-contact-form__heading h3 {
  margin-bottom: 10px;
  color: var(--sat-text);
  font-family: var(--sat-heading-font, "Quicksand", Arial, sans-serif);
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
}

.satello-contact-form__heading p {
  margin-bottom: 24px;
  color: var(--sat-muted);
  font-size: var(--sat-body-size, 16px) !important;
  line-height: 1.65;
}

.satello-contact-form__status {
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--sat-primary), transparent 84%);
  border-radius: 14px;
  background: var(--sat-surface);
  color: var(--sat-text);
  font-weight: 700;
}

.satello-contact-form__status strong,
.satello-contact-form__status span {
  display: block;
}

.satello-contact-form__status strong {
  margin-bottom: 2px;
  font-family: var(--sat-heading-font, "Quicksand", Arial, sans-serif);
  font-size: 1rem;
}

.satello-contact-form__status span {
  font-weight: 500;
}

.satello-contact-form__status.is-success {
  border-color: color-mix(in srgb, var(--sat-accent), transparent 55%);
  background: color-mix(in srgb, var(--sat-accent), #fff 92%);
  color: color-mix(in srgb, var(--sat-accent), #002f37 45%);
}

.satello-contact-form__status.is-error {
  border-color: rgba(176, 37, 52, 0.3);
  background: #fff4f5;
  color: #8e1e2d;
}

.satello-contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.satello-contact-field {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.satello-contact-field--wide {
  grid-column: 1 / -1;
}

.satello-contact-field > span {
  color: var(--sat-text);
  font-size: 0.82rem;
  font-weight: 800;
}

.satello-contact-field > span span,
.satello-contact-consent > span > span {
  color: var(--sat-accent-dark);
}

.satello-contact-field input {
  width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid color-mix(in srgb, var(--sat-primary), transparent 80%);
  border-radius: 13px;
  outline: 0;
  background: #fff;
  color: var(--sat-text);
  box-shadow: 0 0 0 0 transparent;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.satello-contact-field input:hover {
  border-color: color-mix(in srgb, var(--sat-primary), transparent 64%);
}

.satello-contact-field input:focus {
  border-color: var(--sat-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--sat-accent), transparent 84%);
}

.satello-contact-field input[aria-invalid="true"] {
  border-color: #b02534;
  box-shadow: 0 0 0 4px rgba(176, 37, 52, 0.11);
}

.satello-contact-consent {
  display: grid;
  align-items: start;
  gap: 11px;
  grid-template-columns: 22px minmax(0, 1fr);
  margin-top: 20px;
  color: var(--sat-muted);
  cursor: pointer;
  font-size: 0.86rem;
  line-height: 1.55;
}

.satello-contact-consent input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  border-radius: 6px;
  accent-color: var(--sat-accent);
}

.satello-contact-consent a {
  color: var(--sat-primary);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--sat-accent), transparent 40%);
  text-underline-offset: 3px;
}

.satello-altcha {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 20px;
  padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--sat-primary), transparent 84%);
  border-radius: 15px;
  background: linear-gradient(135deg, var(--sat-surface), #fff);
  color: var(--sat-text);
}

.satello-altcha--hidden,
.satello-altcha[hidden] {
  display: none !important;
}

.satello-altcha__icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--sat-accent), #fff 88%);
  color: var(--sat-primary);
  place-items: center;
}

.satello-altcha__icon svg {
  width: 24px;
  height: 24px;
}

.satello-altcha strong,
.satello-altcha span {
  display: block;
}

.satello-altcha strong {
  font-family: var(--sat-heading-font, "Quicksand", Arial, sans-serif);
  font-size: 0.92rem;
}

.satello-altcha span {
  color: var(--sat-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.satello-altcha.is-verifying .satello-altcha__icon {
  animation: satello-altcha-pulse 1s ease-in-out infinite;
}

.satello-altcha.is-verified {
  border-color: color-mix(in srgb, var(--sat-accent), transparent 48%);
  background: color-mix(in srgb, var(--sat-accent), #fff 94%);
}

.satello-altcha.is-error {
  border-color: rgba(176, 37, 52, 0.26);
  background: #fff4f5;
}

@keyframes satello-altcha-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.satello-calendly {
  width: 100%;
  margin-top: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.satello-calendly__intro {
  display: grid;
  align-items: center;
  gap: 14px;
  grid-template-columns: 48px minmax(0, 1fr);
  padding: 18px;
}

.satello-calendly__icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--sat-accent);
  color: #fff;
  place-items: center;
}

.satello-calendly__icon svg {
  width: 27px;
  height: 27px;
}

.satello-calendly h3 {
  margin-bottom: 5px;
  color: #fff;
  font-family: var(--sat-heading-font, "Quicksand", Arial, sans-serif);
  font-size: 1.08rem;
  line-height: 1.2;
}

.satello-calendly p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1.5;
}

.satello-calendly__link {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 800;
}

.satello-calendly__frame {
  display: block;
  width: 100%;
  min-width: 320px;
  height: 520px;
  border: 0;
  background: #fff;
}

.satello-calendly--page .satello-calendly__frame {
  height: 680px;
}

.satello-contact-modal__form .satello-calendly,
.satello-contact-page-section .satello-calendly {
  margin-top: 0;
  border-color: var(--sat-border);
  background: #fff;
  box-shadow: 0 18px 44px rgba(4, 36, 73, 0.08);
}

.satello-contact-modal__form .satello-calendly h3,
.satello-contact-page-section .satello-calendly h3 {
  color: var(--sat-text);
}

.satello-contact-modal__form .satello-calendly p,
.satello-contact-page-section .satello-calendly p {
  color: var(--sat-muted);
}

.satello-contact-modal__form .satello-calendly__link,
.satello-contact-page-section .satello-calendly__link {
  background: var(--sat-primary);
  color: #fff !important;
}

.satello-contact-tabs {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 28px;
  padding: 5px;
  border: 1px solid var(--sat-border);
  border-radius: 16px;
  background: var(--sat-surface);
}

.satello-contact-tabs__button {
  min-height: 44px;
  padding: 9px 13px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--sat-muted);
  cursor: pointer;
  font-family: var(--sat-heading-font, "Quicksand", Arial, sans-serif);
  font-size: 0.92rem;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.satello-contact-tabs__button.is-active,
.satello-contact-tabs__button:hover,
.satello-contact-tabs__button:focus-visible {
  outline: 0;
  background: #fff;
  color: var(--sat-primary);
  box-shadow: 0 4px 14px rgba(4, 36, 73, 0.1);
}

.satello-contact-tabs__panel[hidden] {
  display: none !important;
}

.satello-contact-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
}

.satello-contact-form__footer > p {
  margin: 0;
  color: var(--sat-muted);
  font-size: 0.76rem;
}

.satello-contact-form__submit {
  min-width: 210px;
  border: 0;
  cursor: pointer;
}

.satello-contact-form__submit svg {
  width: 19px;
  height: 19px;
}

.satello-contact-form__submit[disabled] {
  cursor: wait;
  opacity: 0.68;
}

.satello-contact-form__honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  margin: -1px !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

.satello-contact-page__hero {
  padding-bottom: clamp(44px, 6vw, 78px);
}

.satello-contact-page-section {
  position: relative;
  padding: clamp(72px, 8vw, 118px) 0;
  background:
    radial-gradient(circle at 8% 12%, color-mix(in srgb, var(--sat-accent), transparent 89%), transparent 28%),
    linear-gradient(180deg, #fff, var(--sat-surface));
}

.satello-contact-page__lead {
  display: grid;
  align-items: end;
  gap: clamp(28px, 6vw, 84px);
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  margin-bottom: clamp(30px, 5vw, 56px);
}

.satello-contact-page__lead-copy {
  max-width: 730px;
}

.satello-contact-page__lead-copy h2 {
  margin: 14px 0 18px;
  color: var(--sat-text);
  font-family: var(--sat-heading-font, "Quicksand", Arial, sans-serif);
  font-size: clamp(2rem, 3.8vw, 3.7rem);
  line-height: 1.08;
}

.satello-contact-page__lead-copy > div {
  color: var(--sat-muted);
  font-size: var(--sat-body-size, 16px);
  line-height: 1.72;
}

.satello-contact-page__lead-copy > div p:last-child {
  margin-bottom: 0;
}

.satello-contact-page__phone {
  display: grid;
  gap: 4px;
  padding: 26px;
  border: 1px solid color-mix(in srgb, var(--sat-accent), transparent 55%);
  border-radius: 22px;
  background: linear-gradient(145deg, var(--sat-dark), var(--sat-primary));
  color: #fff !important;
  box-shadow: 0 20px 45px rgba(4, 36, 73, 0.18);
}

.satello-contact-page__phone > span {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: var(--sat-accent);
  place-items: center;
}

.satello-contact-page__phone svg { width: 25px; height: 25px; }
.satello-contact-page__phone small { color: rgba(255, 255, 255, 0.68); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.satello-contact-page__phone strong { color: #fff; font-family: var(--sat-heading-font, "Quicksand", Arial, sans-serif); font-size: clamp(1.2rem, 2vw, 1.56rem); line-height: 1.25; overflow-wrap: anywhere; }
.satello-contact-page__phone em { color: rgba(255, 255, 255, 0.74); font-size: 0.84rem; font-style: normal; }

.satello-contact-page__form-card {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid var(--sat-border);
  border-radius: clamp(22px, 3vw, 30px);
  background: #fff;
  box-shadow: 0 24px 60px rgba(4, 36, 73, 0.09);
}

.satello-contact-page-section > .satello-container > .satello-calendly--page {
  width: min(100%, 920px);
  margin: clamp(30px, 5vw, 56px) auto 0;
}

.satello-contact-panel {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(480px, 1.18fr);
  border: 1px solid var(--sat-border);
  border-radius: clamp(24px, 3vw, 36px);
  background: #fff;
  box-shadow: var(--sat-shadow-hover);
  overflow: hidden;
}

.satello-contact-page__editor-content {
  min-height: 0;
  padding-bottom: 0;
}

.satello-contact-page__editor-content:empty {
  display: none;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  margin: -1px !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  word-wrap: normal !important;
}

@media (max-width: 900px) {
  .satello-contact-modal {
    align-items: start;
    padding: 12px;
    overflow-y: auto;
  }

  .satello-contact-modal__dialog,
  .satello-contact-panel {
    max-height: none;
    grid-template-columns: 1fr;
  }

  .satello-contact-modal__copy,
  .satello-contact-panel__copy {
    min-height: 360px;
  }

  .satello-contact-modal__form,
  .satello-contact-panel__form {
    padding-top: 46px;
  }

  .satello-contact-modal__close {
    position: fixed;
    top: 24px;
    right: 24px;
  }

  .satello-contact-page__lead {
    align-items: start;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .satello-contact-modal {
    padding: 0;
  }

  .satello-contact-modal__dialog {
    width: 100%;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .satello-contact-modal__copy,
  .satello-contact-panel__copy {
    min-height: 330px;
    padding: 64px 24px 42px;
  }

  .satello-contact-modal__form,
  .satello-contact-panel__form {
    padding: 38px 24px 44px;
  }

  .satello-contact-modal__close {
    top: 14px;
    right: 14px;
  }

  .satello-contact-form__grid {
    grid-template-columns: 1fr;
  }

  .satello-contact-field--wide {
    grid-column: auto;
  }

  .satello-contact-form__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .satello-contact-form__submit {
    width: 100%;
  }

  .satello-contact-panel {
    width: min(calc(100% - 32px), var(--sat-container));
    border-radius: 24px;
  }

  .satello-contact-tabs {
    grid-template-columns: 1fr;
  }

  .satello-contact-page__phone,
  .satello-contact-page__form-card {
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .satello-contact-modal,
  .satello-contact-modal__dialog,
  .satello-contact-modal__close,
  .satello-contact-phone {
    transition: none !important;
  }
}
