/* PrinterSetupGuideCo /search page */

.search-page {
  font-family: "HP Simplified", "Segoe UI", Arial, sans-serif;
}

.printer-search-hero,
.setup-choice-modal {
  font-family: "HP Simplified", "Segoe UI", Arial, sans-serif;
}

.printer-search-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #fff;
}

.printer-search-art {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 60px;
  width: 50%;
  height: 100%;
  background-image: url('../images/printer-search-hero.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  pointer-events: none;
}

.printer-search-content {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.printer-search-copy {
  width: 50%;
  max-width: 600px;
  margin-left: 0;
  margin-right: 0;
  padding: 64px 0;
  text-align: center;
  transform: translateX(-60px);
}

.search-eyebrow {
  color: #009bd5;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 2.4px;
  margin-bottom: 22px;
}

.printer-search-copy h1 {
  color: #071f3d;
  font-size: clamp(38px, 4vw, 52px);
  line-height: 1.06;
  font-weight: 650;
  letter-spacing: -1.15px;
  margin: 0 auto 22px;
  max-width: 620px;
}

.printer-search-copy > p {
  color: #294c70;
  font-size: 18px;
  line-height: 1.62;
  letter-spacing: -.1px;
  margin: 0 auto 28px;
  max-width: 600px;
}

.printer-search-form {
  display: flex;
  width: 100%;
  max-width: 600px;
  min-height: 64px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(255, 255, 255, .98);
  border: 1px solid #d7e1ea;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(12, 45, 72, .10);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  overflow: hidden;
}

.printer-search-form input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 21px;
  color: #183c5e;
  font-size: 16px;
  font-weight: 500;
}

.printer-search-form input::placeholder {
  color: #9aaabd;
}

.printer-search-form input:focus {
  box-shadow: inset 0 0 0 2px rgba(0, 155, 213, .16);
}

.printer-search-form button {
  flex: 0 0 114px;
  border: 0;
  background: #079bd5;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .1px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.printer-search-form:focus-within {
  border-color: #8dcde7;
  box-shadow: 0 14px 34px rgba(12, 45, 72, .13), 0 0 0 3px rgba(0, 155, 213, .08);
}

.printer-search-form button:hover,
.printer-search-form button:focus {
  background: #0788ba;
  transform: translateX(-1px);
}

.search-secondary-link {
  position: relative;
  display: inline-block;
  margin-top: 20px;
}

.search-secondary-link a {
  color: #009bd5;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.search-secondary-link a:hover,
.search-secondary-link a:focus {
  color: #0788ba;
  text-decoration: underline;
}

.search-secondary-link .ti-help-alt {
  margin-right: 8px;
}

.model-help-tooltip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  width: 320px;
  padding: 13px 16px;
  border-radius: 10px;
  background: #202023;
  color: #fff;
  font-size: 14px;
  line-height: 1.55;
  box-shadow: 0 10px 25px rgba(0,0,0,.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  pointer-events: none;
}

.model-help-tooltip::after {
  content: '';
  position: absolute;
  left: 28px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: #202023;
  transform: rotate(45deg);
}

.search-secondary-link:hover .model-help-tooltip,
.search-secondary-link:focus-within .model-help-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


.psg-logo {
  display: inline-block;
  color: #071f3d;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.3px;
  text-decoration: none;
}

.psg-logo:hover { color: #009bd5; text-decoration: none; }

@media (max-width: 991px) {
  .printer-search-hero {
    min-height: 100vh;
  }

  .printer-search-art {
    width: 100%;
    height: 430px;
    top: auto;
    bottom: 0;
    background-position: center bottom;
    right: 0;
    background-size: contain;
    opacity: .9;
  }

  .printer-search-content {
    width: min(700px, calc(100% - 48px));
    min-height: 100vh;
    align-items: flex-start;
  }

  .printer-search-copy {
    width: 100%;
    max-width: 700px;
    margin-left: 0;
    padding: 68px 0 0;
    text-align: center;
    transform: none;
  }
}

@media (max-width: 575px) {
  .printer-search-hero { min-height: 100vh; }
  .printer-search-content { width: calc(100% - 36px); min-height: 100vh; }
  .printer-search-copy { padding-top: 50px; }
  .search-eyebrow { font-size: 15px; }
  .printer-search-copy h1 { font-size: 38px; }
  .printer-search-copy > p { font-size: 17px; }
  .printer-search-form { min-height: 60px; }
  .printer-search-form button { flex-basis: 90px; }
  .model-help-tooltip { width: min(290px, calc(100vw - 36px)); }
}

/* Setup choice popup */
body.setup-modal-open { overflow: hidden; }

.setup-choice-modal[hidden] { display: none; }

.setup-choice-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.setup-choice-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 31, 61, .48);
  opacity: 0;
  transition: opacity .18s ease;
}

.setup-choice-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(7, 31, 61, .22);
  opacity: 0;
  transform: translateY(12px) scale(.985);
  transition: opacity .18s ease, transform .18s ease;
}

.setup-choice-modal.is-open .setup-choice-backdrop { opacity: 1; }
.setup-choice-modal.is-open .setup-choice-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.setup-choice-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 24px 20px;
  border-bottom: 1px solid #e8edf2;
}

.setup-choice-header h2 {
  margin: 0 0 6px;
  color: #151d2d;
  font-size: 27px;
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -.5px;
}

.setup-choice-header p {
  margin: 0;
  color: #6f7b8f;
  font-size: 15px;
}

.setup-choice-close {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f2f4f7;
  color: #111827;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.setup-choice-close:hover,
.setup-choice-close:focus { background: #e8ebef; outline: none; }

.setup-choice-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 22px 24px 26px;
}

.setup-choice-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid #dfe5eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(12, 45, 72, .08);
  transform: translateY(0) scale(1);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  will-change: transform;
}

.setup-choice-card:hover {
  transform: translateY(-5px) scale(1.018);
  box-shadow: 0 16px 30px rgba(12, 45, 72, .15);
  border-color: #c9d7e5;
}

.setup-choice-card:focus-within {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 16px 34px rgba(12, 45, 72, .14);
}

.setup-choice-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: #eef6ff;
  font-size: 25px;
}

.setup-choice-card h3 {
  margin: 0 0 8px;
  color: #151d2d;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -.3px;
}

.setup-choice-card p {
  margin: 0;
  color: #6f7b8f;
  font-size: 14px;
  line-height: 1.5;
}

.setup-choice-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.setup-choice-links a {
  color: #0788ba;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.setup-choice-links a:hover,
.setup-choice-links a:focus { color: #05698f; }

@media (max-width: 700px) {
  .setup-choice-modal { padding: 14px; }
  .setup-choice-dialog { max-height: calc(100vh - 28px); border-radius: 18px; }
  .setup-choice-header { padding: 20px 18px 18px; }
  .setup-choice-header h2 { font-size: 24px; }
  .setup-choice-header p { font-size: 14px; }
  .setup-choice-body { grid-template-columns: 1fr; padding: 18px; gap: 14px; }
  .setup-choice-card { min-height: 0; padding: 18px; }
  .setup-choice-card h3 { font-size: 20px; }
}

/* Final visual balance: move the complete two-column composition slightly right. */
@media (min-width: 992px) {
  .printer-search-content {
    width: min(1200px, calc(100% - 48px));
    /*transform: translateX(70px);*/
  }

  .printer-search-copy {
    width: 50%;
    max-width: 600px;
    margin-left: 0;
    margin-right: 0;
    text-align: center;
  }

  .printer-search-art {
    width: 50%;
    right: 113px;
    background-position: right center;
  }
}
