/* Income Protection Cover page — matches Figma
   https://www.figma.com/design/TEBvTXkKMhibLH9s8uJqhV/...?node-id=2101-3
   Form cards omitted per plan; header/footer reuse the theme's own. */

.ipc-page {
  font-family: "Poppins", sans-serif;
  color: #002f3d;
}
/* Backgrounds (hero image, gradients, white/tinted strips) stay full
   viewport width — only the CONTENT inside each section lines up with the
   site header's own content container (max-width 1440px, centered — see
   .bih-top-inner / .bih-main-inner in
   wp-content/plugins/best-insurance-header/assets/css/header-widget.css).
   This clamp centers the content at 1440px with an 80px inset once the
   viewport is wider than 1440px, and falls back to a flat 80px side
   padding below that — no extra wrapper markup needed, applied directly to
   each full-bleed section's own left/right padding below. */
.ipc-section {
  padding: 80px;
  padding-left: max(80px, calc((100% - 1440px) / 2 + 80px));
  padding-right: max(80px, calc((100% - 1440px) / 2 + 80px));
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .ipc-section {
    padding: 40px 24px;
  }
}

/* ---------- Hero ---------- */
.ipc-hero {
  position: relative;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
  padding: 80px;
  padding-left: max(80px, calc((100% - 1440px) / 2 + 80px));
  padding-right: max(80px, calc((100% - 1440px) / 2 + 80px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  flex-wrap: wrap;
}
.ipc-quote-card {
  position: relative;
  z-index: 2;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1 1 340px;
  max-width: 420px;
  box-sizing: border-box;
}
.ipc-quote-card-title {
  font-size: 26px;
  font-weight: 600;
  color: #002f3d;
  margin: 0;
}
.ipc-quote-card-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ipc-quote-card-fields select {
  width: 100%;
  padding: 12px;
  border: 1px solid #e7e7e7;
  border-radius: 6px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  color: #000;
  background: #fff;
  box-sizing: border-box;
}
.ipc-quote-card button {
  background: #0485a9;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  cursor: pointer;
}
.ipc-quote-card button:hover {
  background: #036e8c;
}
.ipc-quote-card-submit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: -14px;
}
.ipc-quote-card-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #002f3d;
}
.ipc-quote-card-note img {
  width: 16px;
  height: 16px;
}
@media (max-width: 900px) {
  .ipc-quote-card {
    max-width: 100%;
  }
}
.ipc-hero img.ipc-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.ipc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.ipc-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 620px;
}
.ipc-hero-title {
  font-size: 44px;
  font-weight: 600;
  line-height: 54px;
  color: #fff;
  letter-spacing: -0.5px;
  margin: 0;
}
.ipc-hero-bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ipc-hero-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.5px;
}
.ipc-hero-bullets img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .ipc-hero {
    padding: 40px 24px;
  }
  .ipc-hero-title {
    font-size: 30px;
    line-height: 38px;
  }
}

/* ---------- Trust bar ---------- */
.ipc-trust-bar {
  /* Same gradient treatment as the get-a-quote page's .hero-section
     (wp-content/themes/hello-elementor/assets/css/quote.css). */
  background: linear-gradient(219deg, #ffecd4 0%, #ffffff 54%, #def8ff 100%);
  display: flex;
  flex-wrap: wrap;
  gap: 100px;
  align-items: center;
  justify-content: center;
  padding: 24px 80px;
  padding-left: max(80px, calc((100% - 1440px) / 2 + 80px));
  padding-right: max(80px, calc((100% - 1440px) / 2 + 80px));
}
@media (max-width: 600px) {
  .ipc-trust-bar {
    gap: 20px;
    justify-content: flex-start;
    padding: 24px;
  }
}
.ipc-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ipc-trust-item img {
  width: 30px;
  height: 30px;
}
.ipc-trust-item span {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.5px;
}

/* ---------- Insurer logos ---------- */
.ipc-logos {
  background: #fff;
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 10px 80px;
  padding-left: max(80px, calc((100% - 1440px) / 2 + 80px));
  padding-right: max(80px, calc((100% - 1440px) / 2 + 80px));
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.ipc-logos img {
  max-height: 100px;
  width: auto;
  flex-shrink: 0;
  scroll-snap-align: start;
}

/* ---------- 4 steps ---------- */
.ipc-steps-section {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}
.ipc-section-title {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin: 0;
  text-align: center;
}
.ipc-steps {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  gap: 20px;
}
.ipc-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}
.ipc-step-badge {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ipc-step-badge img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ipc-step-badge span {
  position: relative;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.ipc-step-text {
  text-align: center;
}
.ipc-step-text p:first-child {
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 4px;
  white-space: nowrap;
}
.ipc-step-text p:last-child {
  font-size: 16px;
  color: rgba(0, 47, 61, 0.8);
  margin: 0;
  max-width: 250px;
}
/* Single continuous connector spanning badge-center to badge-center,
   instead of 3 separate short line images between the flex columns — those
   never visually reached the badges since each badge sits centered inside a
   much wider column (padded out by its own title/description text), so a
   line living only in the 20px flex gap fell well short of touching them.
   This line sits BEHIND the badges (badges are z-index:1, this is z-index:0)
   at their shared vertical center, so it appears to run right up to and
   tuck under each one. With 4 equal flex:1 columns and a fixed --step-gap,
   badge-1's center and badge-4's center are each (100% - 3*gap)/8 in from
   their respective edge — true by symmetry regardless of viewport width. */
.ipc-steps {
  --step-gap: 20px;
  gap: var(--step-gap);
}
.ipc-steps::before {
  content: '';
  position: absolute;
  top: 50px;
  left: calc((100% - 3 * var(--step-gap)) / 8);
  right: calc((100% - 3 * var(--step-gap)) / 8);
  height: 6px;
  border-radius: 3px;
  background-image: repeating-linear-gradient(
    to right,
    #d9812c 0,
    #d9812c 10px,
    transparent 10px,
    transparent 24px
  );
  z-index: 0;
}
@media (max-width: 900px) {
  .ipc-steps {
    flex-direction: column;
  }
  .ipc-steps::before {
    display: none;
  }
}

/* ---------- What is X ---------- */
.ipc-intro {
  background: #fdfdfd;
  display: flex;
  gap: 80px;
  align-items: center;
}
.ipc-intro h2 {
  font-size: 36px;
  font-weight: 600;
  line-height: 48px;
  letter-spacing: -0.5px;
  margin: 0;
  flex: 0 0 371px;
}
.ipc-intro p {
  font-size: 18px;
  margin: 0;
  flex: 1;
}
@media (max-width: 900px) {
  .ipc-intro {
    flex-direction: column;
    gap: 24px;
  }
  .ipc-intro h2 {
    flex: none;
  }
}

/* ---------- Eligibility ---------- */
.ipc-eligibility {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}
.ipc-eligibility-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  width: 100%;
  max-width: 1280px;
}
.ipc-eligibility-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 1 1 380px;
  max-width: 413px;
  box-sizing: border-box;
}
.ipc-eligibility-icon {
  background: #0485a9;
  border-radius: 5px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ipc-eligibility-icon img {
  width: 30px;
  height: 30px;
}
.ipc-eligibility-card p {
  font-size: 18px;
  font-weight: 500;
  line-height: 26px;
  color: #212121;
  margin: 0;
}

/* ---------- Get in touch / tabs ---------- */
.ipc-touch {
  /* Same gradient treatment as the get-a-quote page's .hero-section
     (wp-content/themes/hello-elementor/assets/css/quote.css). */
  background: linear-gradient(219deg, #ffecd4 0%, #ffffff 54%, #def8ff 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}
.ipc-touch-heading {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ipc-touch-heading p:last-child {
  font-size: 20px;
  margin: 0;
  max-width: 620px;
}
.ipc-tabs {
  display: flex;
  gap: 20px;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ipc-tab {
  background: #f6f6f6;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 8px 24px;
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  color: #a9a9a9;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .ipc-tab {
    padding: 8px 16px;
    font-size: 14px;
  }
}
.ipc-tab.is-active {
  background: #def8ff;
  border-color: #8be6ff;
  color: #0485a9;
}
.ipc-tab-panel {
  display: none;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 20px;
  width: 100%;
  max-width: 1058px;
  box-sizing: border-box;
  flex-direction: column;
  gap: 24px;
}
.ipc-tab-panel.is-active {
  display: flex;
}
.ipc-tab-block h3 {
  font-size: 24px;
  font-weight: 500;
  line-height: 26px;
  color: #212121;
  margin: 0 0 12px;
}
.ipc-tab-block p {
  font-size: 16px;
  line-height: 26px;
  color: rgba(33, 33, 33, 0.8);
  margin: 0 0 12px;
}
.ipc-tab-block p:last-child {
  margin-bottom: 0;
}

/* ---------- FAQs ---------- */
.ipc-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.ipc-faq-item {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 16px 20px;
}
.ipc-faq-item summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  color: #212121;
  list-style: none;
}
.ipc-faq-item summary::-webkit-details-marker {
  display: none;
}
.ipc-faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 20px;
  color: #0485a9;
  font-weight: 700;
}
.ipc-faq-item[open] summary::before {
  content: "\2212";
}
.ipc-faq-item p {
  margin: 12px 0 0 20px;
  font-size: 15px;
  line-height: 24px;
  color: rgba(33, 33, 33, 0.8);
}

/* ---------- Policy Documents ---------- */
.ipc-docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}
@media (max-width: 900px) {
  .ipc-docs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .ipc-docs-grid {
    grid-template-columns: 1fr;
  }
}
.ipc-doc-card {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ipc-doc-title {
  font-size: 15px;
  font-weight: 500;
  color: #212121;
  margin: 0 0 4px;
}
.ipc-doc-card a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #0485a9;
  text-decoration: none;
}
.ipc-doc-card a:hover {
  text-decoration: underline;
}

/* ---------- Testimonials ---------- */
.ipc-testimonials {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.ipc-testimonial-slider {
  position: relative;
  width: 100%;
  max-width: 1280px;
  padding: 0 44px 40px;
  box-sizing: border-box;
}
.ipc-testimonial-slider .swiper-slide {
  height: auto;
  box-sizing: border-box;
}
.ipc-testimonial-card {
  background: #fafcff;
  border: 1px solid #baddff;
  border-radius: 10px;
  padding: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}
.ipc-testimonial-slider .swiper-pagination-bullet {
  background: #baddff;
  opacity: 1;
}
.ipc-testimonial-slider .swiper-pagination-bullet-active {
  background: #0485a9;
}
.ipc-slider-arrow {
  position: absolute;
  top: calc(50% - 24px);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #baddff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.ipc-slider-prev {
  left: 0;
}
.ipc-slider-next {
  right: 0;
}
@media (max-width: 600px) {
  .ipc-testimonial-slider {
    padding: 0 0 40px;
  }
  .ipc-slider-arrow {
    display: none;
  }
}
.ipc-stars {
  display: flex;
  gap: 6px;
}
.ipc-stars img {
  width: 20px;
  height: 20px;
}
.ipc-testimonial-card p {
  font-size: 16px;
  line-height: 24px;
  color: #383838;
  margin: 0;
}
.ipc-testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ipc-testimonial-author .ipc-quote-icon {
  background: #fff;
  border-radius: 4px;
  padding: 8px;
  display: flex;
}
.ipc-testimonial-author .ipc-quote-icon img {
  width: 20px;
  height: 20px;
}
.ipc-testimonial-author span {
  font-size: 14px;
  color: #383838;
}
.ipc-reviews-badge {
  background: #0e1311;
  border-radius: 16px;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: center;
}
.ipc-reviews-badge-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.ipc-reviews-badge-rating span {
  color: #fff;
  font-size: 20px;
  font-weight: 500;
}
.ipc-reviews-badge-stars {
  display: flex;
  gap: 6px;
}
.ipc-reviews-badge-stars img {
  width: 20px;
  height: 20px;
}
.ipc-reviews-badge-avg {
  text-align: center;
}
.ipc-reviews-badge-avg p:first-child {
  color: #fff;
  font-size: 20px;
  margin: 0;
}
.ipc-reviews-badge-avg p:last-child {
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  font-weight: 300;
  margin: 0;
}
.ipc-reviews-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ipc-reviews-logo img {
  height: 24px;
}

/* ---------- Contact CTA card (Figma node 2102:940) ---------- */
.ipc-contact-cta-card {
  position: relative;
  display: flex;
  align-items: stretch;
  background: #011b22;
  border-radius: 20px;
  min-height: 427px;
  padding-left: 498px;
  box-sizing: border-box;
}
.ipc-contact-cta-photo-frame {
  /* Breaks out above the top of the card rather than being clipped inside
     it — positioned outside normal flow so it can overlap the card's own
     top edge (the card's padding-left above reserves the horizontal space
     this occupies). */
  position: absolute;
  left: 0;
  top: -56px;
  bottom: 0;
  width: 498px;
  overflow: hidden;
  border-radius: 20px;
  z-index: 2;
}
.ipc-contact-cta-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ipc-contact-cta-text {
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: center;
  padding: 44px 44px 44px 64px;
  flex: 1;
}
.ipc-contact-cta-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ipc-contact-cta-title {
  font-size: 40px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  letter-spacing: -0.5px;
}
.ipc-contact-cta-subtitle {
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  margin: 0;
  letter-spacing: -0.5px;
}
.ipc-contact-cta-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ipc-contact-cta-item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ipc-contact-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: #bbf0ff;
  border-radius: 6px;
}
.ipc-contact-cta-icon img {
  width: 18px;
  height: 18px;
}
.ipc-contact-cta-item p {
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  margin: 0;
  letter-spacing: -0.5px;
}
.ipc-contact-cta-item a {
  color: #fff;
  text-decoration: none;
}
.ipc-contact-cta-item a:hover {
  text-decoration: underline;
}
@media (max-width: 900px) {
  .ipc-contact-cta-card {
    flex-direction: column;
    min-height: 0;
    padding-left: 0;
  }
  .ipc-contact-cta-photo-frame {
    position: static;
    flex: 0 0 auto;
    height: 260px;
    width: 100%;
  }
  .ipc-contact-cta-text {
    padding: 32px 24px;
  }
  .ipc-contact-cta-title {
    font-size: 30px;
  }
}
