body.phyflow-catalog-modal-open {
  overflow: hidden;
}

#phyflow-catalog-gate[hidden],
#phyflow-catalog-gate [hidden] {
  display: none !important;
}

#phyflow-catalog-gate {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(8, 23, 53, 0.68);
  backdrop-filter: blur(5px);
}

#phyflow-catalog-gate,
#phyflow-catalog-gate * {
  box-sizing: border-box;
}

#phyflow-catalog-gate .phyflow-catalog-dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(460px, 1.35fr);
  width: min(1040px, 100%);
  min-height: 650px;
  margin: auto;
  overflow: hidden;
  color: #172033;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(8, 23, 53, 0.32);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#phyflow-catalog-gate .phyflow-catalog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #667085;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

#phyflow-catalog-gate .phyflow-catalog-close:hover,
#phyflow-catalog-gate .phyflow-catalog-close:focus-visible {
  color: #172033;
  background: #f1f5f9;
}

#phyflow-catalog-gate .phyflow-catalog-product {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 34px;
  background: linear-gradient(145deg, #eef6ff, #e7f2ef);
  border-right: 1px solid #d8e0ea;
}

#phyflow-catalog-gate .phyflow-catalog-product img {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  margin-inline: auto;
  border-radius: 10px;
  box-shadow: 0 18px 36px rgba(8, 23, 53, 0.2);
}

#phyflow-catalog-gate .phyflow-catalog-product-meta {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

#phyflow-catalog-gate .phyflow-catalog-file-icon,
#phyflow-catalog-gate .phyflow-catalog-success-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #ffffff;
  background: #1649d8;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

#phyflow-catalog-gate .phyflow-catalog-product-meta strong {
  display: block;
  margin-bottom: 5px;
  color: #172033;
  font-size: 18px;
  line-height: 1.35;
}

#phyflow-catalog-gate .phyflow-catalog-product-meta span:last-child {
  color: #667085;
  line-height: 1.5;
}

#phyflow-catalog-gate .phyflow-catalog-form-panel {
  padding: 42px 40px 34px;
}

#phyflow-catalog-gate h2 {
  margin: 0 42px 9px 0;
  color: #172033;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

#phyflow-catalog-gate .phyflow-catalog-intro {
  max-width: 590px;
  margin: 0 0 26px;
  color: #667085;
  line-height: 1.55;
}

#phyflow-catalog-gate .phyflow-catalog-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

#phyflow-catalog-gate .phyflow-catalog-fields label {
  display: grid;
  gap: 7px;
  color: #172033;
  font-weight: 600;
}

#phyflow-catalog-gate input,
#phyflow-catalog-gate select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: #172033;
  background: #f8fafc;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  outline: none;
  font: inherit;
  font-weight: 400;
}

#phyflow-catalog-gate input:focus,
#phyflow-catalog-gate select:focus {
  border-color: #1649d8;
  box-shadow: 0 0 0 3px rgba(22, 73, 216, 0.14);
}

#phyflow-catalog-gate .phyflow-catalog-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 20px 0;
  color: #344054;
  cursor: pointer;
  line-height: 1.45;
}

#phyflow-catalog-gate .phyflow-catalog-consent input {
  flex: 0 0 auto;
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin-top: 2px;
  padding: 0;
  accent-color: #1649d8;
}

#phyflow-catalog-gate .phyflow-catalog-consent a {
  color: #1649d8;
  text-decoration: underline;
}

#phyflow-catalog-gate .phyflow-catalog-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

#phyflow-catalog-gate .phyflow-catalog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

#phyflow-catalog-gate .phyflow-catalog-primary,
#phyflow-catalog-gate .phyflow-catalog-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 19px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

#phyflow-catalog-gate .phyflow-catalog-primary {
  color: #ffffff;
  background: #1649d8;
  border: 1px solid #1649d8;
}

#phyflow-catalog-gate .phyflow-catalog-primary:hover,
#phyflow-catalog-gate .phyflow-catalog-primary:focus-visible {
  background: #103bb7;
  border-color: #103bb7;
}

#phyflow-catalog-gate .phyflow-catalog-primary:disabled {
  cursor: wait;
  opacity: 0.65;
}

#phyflow-catalog-gate .phyflow-catalog-secondary {
  color: #172033;
  background: #ffffff;
  border: 1px solid #d8e0ea;
}

#phyflow-catalog-gate .phyflow-catalog-file-note,
#phyflow-catalog-gate .phyflow-catalog-privacy {
  color: #667085;
}

#phyflow-catalog-gate .phyflow-catalog-privacy {
  margin: 13px 0 0;
  font-size: 13px;
}

#phyflow-catalog-gate .phyflow-catalog-error {
  margin: 12px 0 0;
  color: #b42318;
  font-weight: 600;
}

#phyflow-catalog-gate .phyflow-catalog-success {
  display: flex;
  min-height: 540px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 15px;
}

#phyflow-catalog-gate .phyflow-catalog-success-icon {
  background: #58bd45;
  font-size: 22px;
}

#phyflow-catalog-gate .phyflow-catalog-success h2,
#phyflow-catalog-gate .phyflow-catalog-success p {
  margin-top: 0;
  margin-bottom: 0;
}

@media (max-width: 820px) {
  #phyflow-catalog-gate {
    padding: 12px;
  }

  #phyflow-catalog-gate .phyflow-catalog-dialog {
    grid-template-columns: 1fr;
    min-height: 0;
    margin: 0 auto;
  }

  #phyflow-catalog-gate .phyflow-catalog-product {
    padding: 22px;
    border-right: 0;
    border-bottom: 1px solid #d8e0ea;
  }

  #phyflow-catalog-gate .phyflow-catalog-product img {
    max-width: 330px;
  }

  #phyflow-catalog-gate .phyflow-catalog-form-panel {
    padding: 36px 22px 28px;
  }

  #phyflow-catalog-gate .phyflow-catalog-fields {
    grid-template-columns: 1fr;
  }

  #phyflow-catalog-gate .phyflow-catalog-success {
    min-height: 420px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #phyflow-catalog-gate *,
  #phyflow-catalog-gate *::before,
  #phyflow-catalog-gate *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
