/*
 * Printbox AI site customizations.
 *
 * Modern service-page UX. The component is activated by the presence of
 * .pb-service-hero in page content, so it can be reused for additional
 * services without editing the parent Flatsome theme.
 */

.pb-service-hero {
  margin: 0 0 28px;
  padding: 34px 36px;
  border: 1px solid #e6ebf0;
  border-radius: 18px;
  background: linear-gradient(135deg, #f6f9fc 0%, #ffffff 72%);
  box-shadow: 0 10px 32px rgba(15, 35, 55, 0.06);
}

.pb-service-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.pb-service-hero__lead {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.55;
  color: #465465;
}

.pb-service-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 24px;
}

.pb-service-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef3f7;
  color: #344454;
  font-size: 14px;
  font-weight: 600;
}

.pb-service-points span::before {
  content: "✓";
  margin-right: 7px;
  color: var(--primary-color, #1e73be);
  font-weight: 800;
}

.pb-service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.pb-service-actions .button,
.pb-service-quote .button {
  min-height: 48px;
  margin: 0;
  padding: 0 22px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: none;
  letter-spacing: 0;
  font-size: 16px;
  font-weight: 700;
}

.pb-service-actions .pb-service-secondary {
  background: #fff;
  border: 1px solid #d6dee6;
  color: #263746;
  box-shadow: none;
}

.pb-service-anchor {
  scroll-margin-top: 110px;
}

.pb-service-quote {
  margin: 36px 0 8px;
  padding: 28px 30px;
  border: 1px solid #e1e8ef;
  border-radius: 16px;
  background: #f7f9fb;
  text-align: center;
}

.pb-service-quote h2 {
  margin: 0 0 8px;
}

.pb-service-quote p {
  max-width: 680px;
  margin: 0 auto 18px;
  color: #526170;
  font-size: 16px;
  line-height: 1.55;
}

/* Give order/detail sections comfortable separation from the hero. */
.pb-service-anchor + .divider {
  margin-top: 8px;
}

/* Self-adhesive print calculator used by the Russian quote page. */
.pb-quote-calculator {
  max-width: 880px;
  margin: 10px auto 32px;
  padding: 32px;
  border: 1px solid #e2e8ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(15, 35, 55, 0.07);
}

.pb-quote-calculator__header {
  margin-bottom: 24px;
}

.pb-quote-calculator__header h2 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.15;
}

.pb-quote-calculator__header p {
  max-width: 700px;
  margin: 0;
  color: #556474;
  font-size: 16px;
  line-height: 1.55;
}

.pb-quote-calculator__fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.pb-quote-calculator__field {
  display: block;
  margin: 0;
  color: #263746;
  font-size: 14px;
  font-weight: 700;
}

.pb-quote-calculator__field input {
  width: 100%;
  height: 50px;
  margin: 7px 0 0;
  padding: 0 14px;
  border: 1px solid #ccd6e0;
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
  font-size: 18px;
  font-weight: 600;
}

.pb-quote-calculator__field input:focus {
  border-color: var(--primary-color, #1e73be);
  box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.12);
}

.pb-quote-calculator__result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #e0e7ee;
  border-radius: 14px;
  background: #e0e7ee;
}

.pb-quote-calculator__metric {
  min-height: 88px;
  padding: 18px 20px;
  background: #f8fafc;
}

.pb-quote-calculator__metric span {
  display: block;
  margin-bottom: 6px;
  color: #647383;
  font-size: 13px;
  font-weight: 600;
}

.pb-quote-calculator__metric strong {
  color: #203040;
  font-size: 22px;
  line-height: 1.2;
}

/* Keep internal pricing mechanics hidden from customers. */
.pb-quote-calculator__metric:has([data-pb-area]),
.pb-quote-calculator__metric:has([data-pb-rate]) {
  display: none;
}

.pb-quote-calculator__metric--total {
  grid-column: 1 / -1;
  background: #eef6fc;
}

.pb-quote-calculator__metric--total strong {
  color: var(--primary-color, #1e73be);
  font-size: 34px;
}

.pb-quote-calculator__minimum {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff7e6;
  color: #75520a;
  font-size: 13px;
  font-weight: 600;
}

.pb-quote-calculator__note {
  margin: 16px 0 0;
  color: #647383;
  font-size: 13px;
  line-height: 1.5;
}

/* Request form connected to the calculator result. */
.pb-quote-request {
  max-width: 880px;
  margin: -14px auto 36px;
  padding: 30px 32px;
  border: 1px solid #dce5ed;
  border-radius: 18px;
  background: #f8fafc;
}

.pb-quote-request__header {
  margin-bottom: 22px;
}

.pb-quote-request__header h3 {
  margin: 0 0 7px;
  font-size: 25px;
  line-height: 1.2;
}

.pb-quote-request__header p {
  max-width: 720px;
  margin: 0;
  color: #5c6b79;
  font-size: 15px;
  line-height: 1.55;
}

.pb-quote-request__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pb-quote-request label {
  display: block;
  margin: 0;
  color: #263746;
  font-size: 14px;
  font-weight: 700;
}

.pb-quote-request input[type="text"],
.pb-quote-request input[type="email"],
.pb-quote-request input[type="tel"],
.pb-quote-request textarea {
  width: 100%;
  margin: 7px 0 0;
  padding: 11px 13px;
  border: 1px solid #ccd6e0;
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
  font-size: 16px;
  font-weight: 400;
}

.pb-quote-request input[type="text"],
.pb-quote-request input[type="email"],
.pb-quote-request input[type="tel"] {
  height: 48px;
}

.pb-quote-request input:focus,
.pb-quote-request textarea:focus {
  border-color: var(--primary-color, #1e73be);
  box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.12);
}

.pb-quote-request__comment,
.pb-quote-request__file {
  margin-top: 16px !important;
}

.pb-quote-request__file input[type="file"] {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px dashed #bdc9d4;
  border-radius: 9px;
  background: #fff;
  font-weight: 400;
}

.pb-quote-request__file small {
  display: block;
  margin-top: 6px;
  color: #6b7886;
  font-size: 12px;
  font-weight: 400;
}

.pb-quote-request__footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.pb-quote-request__footer .button {
  min-height: 48px;
  margin: 0;
  padding: 0 24px;
  border-radius: 9px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 16px;
  font-weight: 700;
}

.pb-quote-request__footer .button[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.pb-quote-request__status {
  min-height: 22px;
  color: #536270;
  font-size: 14px;
  line-height: 1.45;
}

.pb-quote-request__status.is-success {
  color: #24733d;
  font-weight: 600;
}

.pb-quote-request__status.is-error {
  color: #b42318;
  font-weight: 600;
}

.pb-quote-request__trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

@media (max-width: 849px) {
  /* :has() keeps the sidebar change scoped only to pages using the new UX. */
  body:has(.pb-service-hero) .page-wrapper.page-right-sidebar > .row {
    display: block;
  }

  body:has(.pb-service-hero) .page-wrapper.page-right-sidebar > .row > #content {
    width: 100%;
    max-width: 100%;
    flex-basis: 100%;
    padding-left: 18px;
    padding-right: 18px;
    border-right: 0;
  }

  body:has(.pb-service-hero) .page-wrapper.page-right-sidebar > .row > .large-3.col {
    display: none;
  }

  .pb-service-hero {
    margin: 0 -2px 22px;
    padding: 24px 20px;
    border-radius: 14px;
  }

  .pb-service-hero h1 {
    font-size: 32px;
    line-height: 1.12;
  }

  .pb-service-hero__lead {
    font-size: 16px;
    line-height: 1.5;
  }

  .pb-service-points {
    gap: 7px;
    margin-bottom: 20px;
  }

  .pb-service-points span {
    width: 100%;
    justify-content: flex-start;
    border-radius: 8px;
  }

  .pb-service-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pb-service-actions .button,
  .pb-service-quote .button {
    width: 100%;
    min-height: 50px;
  }

  body:has(.pb-service-hero) .flipContainer .flip-slide > .col {
    max-width: 100%;
    flex-basis: 100%;
  }

  body:has(.pb-service-hero) .page-inner img {
    max-width: 100%;
    height: auto;
  }

  .pb-service-quote {
    padding: 24px 20px;
    border-radius: 14px;
  }

  .pb-quote-calculator {
    margin: 4px 0 24px;
    padding: 22px 18px;
    border-radius: 14px;
  }

  .pb-quote-calculator__header h2 {
    font-size: 26px;
  }

  .pb-quote-calculator__fields,
  .pb-quote-calculator__result,
  .pb-quote-request__grid {
    grid-template-columns: 1fr;
  }

  .pb-quote-calculator__metric--total {
    grid-column: auto;
  }

  .pb-quote-request {
    margin: 0 0 26px;
    padding: 22px 18px;
    border-radius: 14px;
  }

  .pb-quote-request__footer {
    display: block;
  }

  .pb-quote-request__footer .button {
    width: 100%;
    min-height: 50px;
  }

  .pb-quote-request__status {
    margin-top: 12px;
  }
}
