/* scoped to .pgsl-shortener — qrtool stays on the old style.css */

.pgsl-shortener {
  --pgsl-fp: "Poppins", system-ui, -apple-system, sans-serif;
  --pgsl-fm: "Montserrat", system-ui, -apple-system, sans-serif;
  --pgsl-text: #17123c;
  --pgsl-muted: #455a64;
  --pgsl-line: #838aa1;
  --pgsl-brand: #1659f5;
  --pgsl-brand-light: #1e88e5;
  --pgsl-danger: #dc2626;

  display: flex;
  gap: 32px;
  font-family: var(--pgsl-fp);
  color: var(--pgsl-text);
}
.pgsl-shortener,
.pgsl-shortener * {
  box-sizing: border-box;
}
/* elementor overrides [hidden] via display:block. !important to survive. */
.pgsl-shortener [hidden] {
  display: none !important;
}
.pgsl-shortener__defs {
  position: absolute;
}

/* card */

.pgsl-shortener__card {
  flex: 1;
  max-width: 550px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 32px 48px;
  background: linear-gradient(180deg, #f4f4f8 0%, #e9e9e9 100%);
  border-radius: 15px;
  box-shadow:
    0 3px 14px 2px rgba(0, 0, 0, 0.12),
    0 8px 10px 1px rgba(0, 0, 0, 0.14),
    0 5px 5px -3px rgba(0, 0, 0, 0.2);
}
.pgsl-shortener__title {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
}
.pgsl-shortener__form {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* fields */

.pgsl-shortener .pgsl-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pgsl-shortener .pgsl-field__label {
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  color: var(--pgsl-muted);
}
.pgsl-shortener .pgsl-field__input {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--pgsl-line);
  border-radius: 8px;
  background: #fff;
  font: 500 16px/24px var(--pgsl-fm);
  color: var(--pgsl-text);
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.pgsl-shortener .pgsl-field__input:focus {
  border-color: var(--pgsl-brand);
  box-shadow: 0 0 0 3px rgba(22, 89, 245, 0.15);
}
.pgsl-shortener .pgsl-field__input--brand {
  font-family: var(--pgsl-fp);
  font-weight: 600;
  color: var(--pgsl-brand-light);
}
.pgsl-shortener .pgsl-field__input.pgsl-input--error {
  border-color: var(--pgsl-danger);
}

/* turnstile / error / hint */

.pgsl-shortener .pgsl-turnstile-slot {
  min-height: 65px;
}
.pgsl-shortener .pgsl-error {
  margin: 0;
  font: 500 14px/20px var(--pgsl-fm);
  color: var(--pgsl-danger);
}
.pgsl-shortener__hint {
  margin: 0;
  font: 500 14px/20px var(--pgsl-fm);
  color: var(--pgsl-muted);
  text-align: center;
}
.pgsl-shortener__hint a {
  color: var(--pgsl-brand);
  font-weight: 600;
  text-decoration: none;
}
.pgsl-shortener__hint a:hover {
  text-decoration: underline;
}

/* actions */

.pgsl-shortener__actions {
  display: flex;
  gap: 16px;
}
.pgsl-shortener__actions .pgsl-btn {
  flex: 1;
}

/* buttons (scoped) */

.pgsl-shortener .pgsl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 1000px;
  background: transparent;
  font: 600 16px/24px var(--pgsl-fm);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    opacity 0.15s ease;
}
.pgsl-shortener .pgsl-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pgsl-shortener .pgsl-btn--primary {
  background: var(--pgsl-brand);
  color: #fff;
}
.pgsl-shortener .pgsl-btn--primary:hover:not(:disabled) {
  background: #0f46c9;
}
.pgsl-shortener .pgsl-btn--outline {
  background: #fff;
  border-color: var(--pgsl-text);
  color: var(--pgsl-text);
}
.pgsl-shortener .pgsl-btn--outline:hover:not(:disabled) {
  background: #f4f4f8;
}
.pgsl-shortener .pgsl-btn--text {
  color: var(--pgsl-brand);
  padding: 10px 12px;
}
.pgsl-shortener .pgsl-btn--text:hover {
  text-decoration: underline;
}
.pgsl-shortener .pgsl-btn--block {
  width: 100%;
}
.pgsl-shortener .pgsl-btn--sm {
  padding: 10px 24px;
  font-size: 14px;
  line-height: 20px;
}
.pgsl-shortener .pgsl-btn__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* right pitch column */

.pgsl-shortener__pitch {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 32px 0;
}
.pgsl-pitch__title {
  margin: 0 0 24px;
  font-size: clamp(32px, 4.5vw, 50px);
  line-height: 1.2;
  font-weight: 700;
  color: #333;
}
.pgsl-pitch__lede {
  margin: 0 0 24px;
  font-size: 22px;
  line-height: 30px;
  font-weight: 500;
  color: var(--pgsl-muted);
}
.pgsl-pitch__benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.pgsl-pitch__benefits li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 400 18px/28px var(--pgsl-fp);
  color: var(--pgsl-muted);
}
.pgsl-pitch__check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--pgsl-brand-light);
}
.pgsl-pitch__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto; /* push CTA to the very bottom */
  padding-top: 48px;
}

/* mobile, ≤880px */

@media (max-width: 880px) {
  .pgsl-shortener {
    flex-direction: column;
  }
  .pgsl-shortener__card {
    padding: 32px 16px;
  }
  .pgsl-shortener__pitch {
    padding: 0;
  }
  .pgsl-pitch__title {
    font-size: 32px;
    line-height: 40px;
  }
  .pgsl-pitch__lede {
    margin-bottom: 16px;
    font-size: 18px;
    line-height: 28px;
    font-weight: 400;
  }
  .pgsl-pitch__benefits {
    flex-direction: column;
  }
  /* visually flip the CTA; DOM order stays the same so tab order is preserved */
  .pgsl-pitch__cta {
    flex-direction: row-reverse;
    padding-top: 32px;
  }
  .pgsl-pitch__cta .pgsl-btn--text {
    flex: 1;
  }
  .pgsl-shortener__actions .pgsl-btn--outline {
    flex: 0 0 auto;
  }
}
