/* Home contact actions: match the existing UPO accent. */
.spiral-contact {
  display: contents;
  --spiral-contact-size: 58px;
  --spiral-contact-right: calc(max(24px, env(safe-area-inset-right)) + var(--spiral-viewport-right, 0px));
  --spiral-contact-bottom: calc(88px + env(safe-area-inset-bottom));
}
.spiral-contact-call,
.spiral-callback-submit {
  background: var(--blue, #2dcdf8);
  color: var(--dark, #1b1c21);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  border: 0;
  border-radius: var(--radius, 10px);
  min-height: 48px;
  padding: 14px 18px;
  cursor: pointer;
  transition: background-color .18s ease;
}
.spiral-contact-call {
  position: fixed;
  right: var(--spiral-contact-right);
  bottom: calc(var(--spiral-contact-bottom) + var(--spiral-contact-size) + 12px);
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--spiral-contact-size);
  height: var(--spiral-contact-size);
  padding: 0;
  border-radius: 50%;
  box-shadow: 0 5px 18px rgb(0 0 0 / 16%);
}
.spiral-contact-call svg { width: 26px; height: 26px; flex-shrink: 0; }
.spiral-contact-call:hover,
.spiral-callback-submit:hover:not(:disabled) { background: #67dcfa; }
.spiral-contact-whatsapp {
  position: fixed;
  right: var(--spiral-contact-right);
  bottom: var(--spiral-contact-bottom);
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--spiral-contact-size);
  height: var(--spiral-contact-size);
  color: #fff;
  background: #128c48;
  border-radius: 50%;
  box-shadow: 0 5px 18px rgb(0 0 0 / 16%);
  transition: background-color .18s ease;
}
.spiral-contact-whatsapp:hover { color: #fff; background: #0b753b; }
.spiral-contact-whatsapp svg { width: 32px; height: 32px; }
.spiral-callback-panel {
  position: fixed;
  right: calc(var(--spiral-contact-right) + var(--spiral-contact-size) + 16px);
  top: calc(var(--spiral-viewport-top, 0px) + var(--spiral-viewport-height, 100dvh) / 2);
  transform: translateY(-50%);
  z-index: 120;
  width: min(360px, calc(100vw - 80px));
  max-height: calc(var(--spiral-viewport-height, 100dvh) - 32px);
  overscroll-behavior: contain;
  overflow-y: auto;
  padding: 28px;
  color: var(--text, #1c1c22);
  background: #fff;
  border-radius: var(--radius-lg, 17px);
  box-shadow: 0 12px 42px rgb(0 0 0 / 20%);
  scrollbar-color: #138fae #f8f8f8;
  scrollbar-width: thin;
}
.spiral-callback-panel[hidden], .spiral-callback-form[hidden] { display: none; }
.spiral-callback-panel h2 { margin: 0 30px 12px 0; font-size: 23px; line-height: 1.2; }
.spiral-callback-intro { font-size: 14px; line-height: 1.5; color: var(--text-muted, #45475c); margin: 0 0 22px; }
.spiral-callback-close { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 6px; }
.spiral-callback-close:hover { background: #f0f3f4; }
.spiral-callback-close svg { width: 20px; height: 20px; }
.spiral-callback-form label { display: block; font-size: 14px; font-weight: 700; margin: 0 0 7px; }
.spiral-callback-form label span { font-size: 12px; font-weight: 400; color: var(--text-muted, #45475c); }
.spiral-callback-form input {
  display: block;
  width: 100%;
  min-height: 46px;
  margin: 0 0 17px;
  padding: 10px 12px;
  border: 1px solid #9499a2;
  border-radius: 6px;
  font: inherit;
  font-size: 16px;
  color: var(--text, #1c1c22);
  background: #fff;
  caret-color: #138fae;
}
.spiral-callback-form input:user-invalid { border-color: #b42318; }
.spiral-callback-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.spiral-callback-privacy { font-size: 12px; line-height: 1.5; color: var(--text-muted, #45475c); margin: 0 0 18px; }
.spiral-callback-privacy a { color: #08738e; text-decoration: underline; text-underline-offset: 3px; }
.spiral-callback-submit { width: 100%; }
.spiral-callback-submit:disabled { opacity: .65; cursor: wait; }
.spiral-callback-status { font-size: 14px; line-height: 1.5; margin: 14px 0 0; }
.spiral-callback-status:empty { margin: 0; }
.spiral-callback-status.is-error { color: #b42318; }
.spiral-contact :focus-visible { outline: 3px solid #08738e; outline-offset: 3px; }
.spiral-contact ::selection { background: #2dcdf8; color: #1b1c21; }
@media (max-width: 600px) {
  .spiral-contact {
    --spiral-contact-size: 52px;
    --spiral-contact-right: calc(max(16px, env(safe-area-inset-right)) + var(--spiral-viewport-right, 0px));
  }
  .spiral-callback-panel { right: 16px; width: calc(100vw - 32px); padding: 24px; }
  .spiral-callback-panel:not([hidden]) ~ .spiral-contact-call { visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .spiral-contact-call, .spiral-contact-whatsapp, .spiral-callback-submit { transition: none; }
}