/* Shared Inquiry panel + homepage hero CTA */

.st-inq-open {
  overflow: hidden;
}

.st-inq-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10040;
  background: rgba(18, 24, 28, 0.48);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.st-inq-backdrop.is-open {
  opacity: 1;
}

.st-inq-backdrop.is-reduced,
.st-inq-panel.is-reduced {
  transition: none;
}

.st-inq-panel {
  position: fixed;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  color: #263238;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  padding: 20px 18px 24px;
  max-height: min(92vh, 720px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
  .st-inq-panel {
    top: 0;
    right: 0;
    width: min(420px, 100vw);
    height: 100vh;
    max-height: none;
    border-radius: 0;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  .st-inq-panel.is-open {
    transform: translateX(0);
  }
}

@media (max-width: 767.98px) {
  .st-inq-panel {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
    transition: transform 0.25s ease;
  }
  .st-inq-panel.is-open {
    transform: translateY(0);
  }
}

/* Centered modal (opt-in via #st-inquiry-root.is-layout-center) */
#st-inquiry-root.is-layout-center {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  pointer-events: none;
}

#st-inquiry-root.is-layout-center .st-inq-backdrop {
  pointer-events: auto;
}

#st-inquiry-root.is-layout-center .st-inq-panel,
#st-inquiry-root.is-layout-center .st-inq-panel.is-open {
  pointer-events: auto;
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  bottom: auto;
  width: min(440px, 100%);
  height: auto;
  max-height: min(92vh, 720px);
  border-radius: 4px;
  transform: none;
  opacity: 1;
}

@media (max-width: 767.98px) {
  #st-inquiry-root.is-layout-center .st-inq-panel,
  #st-inquiry-root.is-layout-center .st-inq-panel.is-open {
    width: min(100%, 440px);
    border-radius: 8px;
  }
}

.st-inq-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.st-inq-panel__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.st-inq-panel__close {
  border: 0;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: #607d8b;
  padding: 0 4px;
}

.st-inq-product {
  padding: 10px 12px;
  background: #f4f7f8;
  border: 1px solid #e0e6ea;
  font-size: 12pt;
  line-height: 1.45;
}

.st-inq-product__url {
  margin-top: 4px;
  font-size: 12pt;
  color: #78909c;
  word-break: break-all;
}

.st-inq-status {
  min-height: 1.2em;
  font-size: 12pt;
}

.st-inq-status--ok {
  color: #1b5e20;
}

.st-inq-status--err {
  color: #b71c1c;
}

.st-inq-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.st-inq-intents {
  border: 0;
  margin: 0;
  padding: 0;
}

.st-inq-intents legend {
  font-size: 12pt;
  font-weight: 600;
  margin-bottom: 8px;
}

.st-inq-intent-row,
.st-inq-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.st-inq-intent,
.st-inq-quick button {
  border: 1px solid #cfd8dc;
  background: #fff;
  color: #37474f;
  padding: 8px 12px;
  font-size: 12pt;
  cursor: pointer;
  border-radius: 2px;
}

.st-inq-intent.is-active,
.st-inq-quick button.is-active,
[data-intent-option].is-active {
  border-color: #212121;
  background: #212121;
  color: #fff;
}

.st-inq-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12pt;
  font-weight: 600;
}

.st-inq-field input,
.st-inq-field textarea,
.st-contact-form [name="intent"] {
  font-weight: 400;
  font-size: 12pt;
  padding: 10px 12px;
  border: 1px solid #cfd8dc;
  border-radius: 2px;
  width: 100%;
  box-sizing: border-box;
}

.st-inq-submit,
.st-contact-form .st-btn--dark[type="submit"] {
  margin-top: 4px;
}

.st-inq-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  background: #212121;
  color: #fff;
  border: 0;
  cursor: pointer;
  font-size: 12pt;
}

.st-inq-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.st-inq-privacy {
  margin: 12px 0 0;
  font-size: 12pt;
  line-height: 1.45;
  color: #78909c;
}

.st-inq-next {
  margin: 0;
  font-size: 12pt;
  color: #546e7a;
  line-height: 1.5;
}

/* Contact: product summary + quick inquiry aside */
.st-inquiry-product-summary {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #f4f7f8;
  border: 1px solid #e0e6ea;
  font-size: 12pt;
}

.st-chat-panel.st-quick-inquiry {
  position: sticky;
  top: 88px;
  align-self: start;
}

.st-chat-panel.st-quick-inquiry .st-chat-quick {
  padding-bottom: 16px;
}

/* Homepage CTA — solid strip under banner (no overlay / ghost text) */
.st-home-hero-cta {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 28px 16px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  background: #f7f7f5;
  border-bottom: 1px solid #e8e8e4;
}

.st-home-hero-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 720px;
}

.st-home-hero-cta__primary,
.st-home-hero-cta__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 12pt;
  font-weight: 600;
  border-radius: 2px;
}

.st-home-hero-cta__primary {
  background: #212121;
  color: #fff;
  border: 1px solid #212121;
}

.st-home-hero-cta__primary:hover {
  background: #000;
  color: #fff;
}

.st-home-hero-cta__secondary {
  background: #fff;
  color: #212121;
  border: 1px solid #c8c8c4;
}

.st-home-hero-cta__secondary:hover {
  background: #fff;
  color: #000;
  border-color: #212121;
}

.st-home-hero-cta__link {
  color: #4a4a46;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 12pt;
}

.st-home-hero-cta__link:hover {
  color: #212121;
}

@media (max-width: 767.98px) {
  .st-home-hero-cta {
    padding: 22px 16px 26px;
  }
  .st-home-hero-cta__actions {
    width: 100%;
  }
  .st-home-hero-cta__primary,
  .st-home-hero-cta__secondary {
    flex: 1 1 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .st-inq-backdrop,
  .st-inq-panel {
    transition: none;
  }
}
