/* TELUS modal scoped CSS, tailored to HomeInternetPlans.ca design tokens. */
.hip-telus-popup,
.hip-telus-popup * { box-sizing: border-box; }
.hip-telus-popup {
  width: min(670px, calc(100vw - 30px));
  max-height: min(92dvh, 900px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: auto;
  color: #17151f;
  background: #fff;
  box-shadow: 0 25px 85px rgba(20, 14, 53, .28);
  font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
}
.hip-telus-popup::backdrop { background: rgba(19, 12, 48, .68); backdrop-filter: blur(5px); }
.hip-telus-popup[hidden], .hip-telus-popup [hidden] { display: none !important; }
/* Popup content uses divs, not global section elements: the theme's
   `section, .section { padding: 100px 40px; }` must not affect this dialog. */
.hip-telus-popup .hip-telus-form-screen { margin: 0; padding: 0; }
.hip-telus-popup__inner { position: relative; }
.hip-telus-popup__close {
  position: absolute; top: 15px; right: 15px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  padding: 9px; border: 1px solid #e5ddfb; border-radius: 50%;
  background: #fff; color: #31168a; cursor: pointer;
}
.hip-telus-popup__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; }
.hip-telus-popup__close:hover, .hip-telus-popup__close:focus-visible { background: #f8f6fe; outline: 2px solid #5b2ee0; outline-offset: 2px; }
.hip-telus-popup__hero {
  text-align: center;
  padding: 28px 32px 0;
  background: radial-gradient(circle at 104% 10%,rgba(201,165,255,.34),transparent 34%),linear-gradient(170deg,#faf8ff,#f4eeff 65%,#fff 100%);
}
.hip-telus-popup__badge {
  display: inline-block; background: #5b2ee0; color: #fff;
  padding: 7px 15px; border-radius: 100px;
  font-size: 10px; font-weight: 800; letter-spacing: .09em; line-height: 1.3;
}
.hip-telus-popup__logo-wrap {
  margin: 15px auto 12px; padding: 11px 20px;
  max-width: 180px; border-radius: 12px; background: #fff;
  box-shadow: 0 6px 22px rgba(91,46,224,.07);
}
.hip-telus-popup__logo-wrap img { display: block; width: 100%; height: 33px; object-fit: contain; }
.hip-telus-popup__hero h2 {
  margin: 0 0 8px; color: #17151f; font-size: clamp(22px, 3.4vw, 29px);
  font-weight: 800; line-height: 1.2; letter-spacing: -.03em;
}
.hip-telus-popup__hero h2 span { color: #5b2ee0; }
.hip-telus-popup__hero p { margin: 0 auto 18px; max-width: 485px; color: #3f3c52; font-size: 13.5px; line-height: 1.55; }
.hip-telus-popup__benefits {
  display: flex; align-items: center; justify-content: center;
  gap: 60px; margin: 0 -32px; padding: 13px 24px;
  background: rgba(255,255,255,.88); border-top: 1px solid #eae5fa; border-bottom: 1px solid #eae5fa;
  font-size: 12px; font-weight: 700; color: #29223b;
}
.hip-telus-popup__benefits > span { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.hip-telus-popup__benefits > span > span { color: #177a45; font-size: 17px; }
.hip-telus-popup__form { padding: 23px 30px 28px; }
.hip-telus-popup .wpcf7-form { margin: 0; }
.hip-telus-popup .hip-telus-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px 16px; }
.hip-telus-popup .hip-telus-field--full { grid-column: 1 / -1; }
.hip-telus-popup .hip-telus-field { min-width: 0; }
.hip-telus-popup .hip-telus-field > label { display: block; margin: 0 0 5px; color: #17151f; font-weight: 700; font-size: 12.5px; line-height: 1.35; }
.hip-telus-popup .hip-required { color: #df3131; }
.hip-telus-popup .wpcf7-form-control-wrap { display: block; width: 100%; }
.hip-telus-popup .hip-telus-field input[type="text"],
.hip-telus-popup .hip-telus-field input[type="email"],
.hip-telus-popup .hip-telus-field input[type="tel"],
.hip-telus-popup .hip-telus-field select {
  display: block; width: 100%; min-height: 43px; margin: 0; padding: 10px 12px;
  border: 1px solid #d8d2e6; border-radius: 8px;
  background: #fff; color: #17151f;
  font: 400 13.5px/1.4 "DM Sans",Arial,sans-serif; box-shadow: none;
}
.hip-telus-popup .hip-telus-field select { appearance: auto; }
.hip-telus-popup .hip-telus-field input:focus,
.hip-telus-popup .hip-telus-field select:focus { outline: 2px solid rgba(91,46,224,.26); outline-offset: 1px; border-color: #5b2ee0; }
.hip-telus-popup .hip-telus-field input::placeholder { color: #858096; }
.hip-telus-popup .hip-telus-consent {
  background: #f8f6fe; border: 1px solid #ebe8f6; border-radius: 11px;
  padding: 13px 14px; font-size: 11.5px; line-height: 1.5; color: #3f3c52;
}
.hip-telus-popup .hip-telus-consent .wpcf7-list-item { margin: 0; }
.hip-telus-popup .hip-telus-consent .wpcf7-list-item > label { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; font-weight: 400; }
.hip-telus-popup .hip-telus-consent input[type="checkbox"] { flex: 0 0 15px; width: 15px; height: 15px; margin: 1px 0 0; accent-color: #5b2ee0; }
.hip-telus-popup .hip-telus-consent a { color: #4a22b8; text-decoration: underline; font-weight: 700; }
.hip-telus-popup .hip-telus-submit input[type="submit"] {
  display: block; width: 100%; min-height: 49px; margin: 0; padding: 12px 16px;
  border: none; border-radius: 9px; background: linear-gradient(120deg,#5b2ee0,#4a22b8);
  color: #fff; font: 700 15px/1.35 "DM Sans",Arial,sans-serif; cursor: pointer;
}
.hip-telus-popup .hip-telus-submit input[type="submit"]:hover,
.hip-telus-popup .hip-telus-submit input[type="submit"]:focus-visible { background: #3a1a92; }
.hip-telus-popup .wpcf7-spinner { margin: 10px 0 0; }
.hip-telus-popup .wpcf7-not-valid-tip { font-size: 11px; color: #b42222; margin-top: 4px; }
.hip-telus-popup .wpcf7 form .wpcf7-response-output,
.hip-telus-popup .wpcf7-response-output { margin: 12px 0 0; padding: 10px; border-radius: 9px; font-size: 12px; }
.hip-telus-success-screen { text-align: center; padding: 56px 36px 50px; }
.hip-telus-success-screen__check {
  display: flex; align-items: center; justify-content: center;
  width: 78px; height: 78px; margin: 0 auto 22px;
  background: #efe8ff; border-radius: 50%; color: #5b2ee0;
}
.hip-telus-success-screen__check svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hip-telus-success-screen h2 { margin: 0 0 12px; color: #17151f; font-weight: 800; font-size: clamp(24px,4vw,31px); letter-spacing: -.035em; }
.hip-telus-success-screen h2:focus { outline: none; }
.hip-telus-success-screen p { margin: 0 auto 28px; max-width: 375px; font-size: 15px; line-height: 1.6; color: #3f3c52; }
.hip-telus-success-screen__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  max-width: 100%; min-height: 48px; padding: 12px 22px;
  border-radius: 9px; background: #5b2ee0; color: #fff !important;
  font-size: 14px; font-weight: 700; text-decoration: none !important;
}
.hip-telus-success-screen__cta:hover,.hip-telus-success-screen__cta:focus-visible { background: #4a22b8; color: #fff !important; }
@media(max-width: 600px) {
  .hip-telus-popup { width: calc(100vw - 20px); max-height: 94dvh; border-radius: 17px; }
  .hip-telus-popup__hero { padding: 25px 16px 0; }
  .hip-telus-popup__hero h2 { font-size: 21px; }
  .hip-telus-popup__hero p { font-size: 12px; }
  .hip-telus-popup__logo-wrap { max-width: 160px; }
  .hip-telus-popup__benefits { margin: 0 -16px; padding: 10px; gap: 5px; flex-wrap: wrap; justify-content: center; font-size: 10px; }
  .hip-telus-popup__form { padding: 18px 15px 23px; }
  .hip-telus-popup .hip-telus-fields { gap: 12px; }
  .hip-telus-popup .hip-telus-field > label { font-size: 12px; }
  .hip-telus-popup .hip-telus-field input[type="text"],
  .hip-telus-popup .hip-telus-field input[type="email"],
  .hip-telus-popup .hip-telus-field input[type="tel"],
  .hip-telus-popup .hip-telus-field select { min-height: 42px; padding: 8px 9px; font-size: 12px; }
  .hip-telus-success-screen { padding: 55px 18px 37px; }
}
@media(max-width: 385px) {
  .hip-telus-popup .hip-telus-fields { grid-template-columns: 1fr; }
  .hip-telus-popup .hip-telus-field--full { grid-column: auto; }
}
