.ihome-container {
  max-width: 1122px;
  margin: 0 auto;
  padding: 0;
}

.ihome-trustpilot {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  background: #fff;
}

.ihome-trustpilot .trustpilot-widget {
  max-width: 688px;
}

/* ----------------------------- Product cards ---------------------------- */

.ihome-products {
  background: #fff;
  padding: 0 20px 64px;
}

.ihome-products-carousel {
  position: relative;
  overflow-x: hidden;
}

.ihome-products-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.ihome-product-card {
  position: relative;
  background: #f2efec;
}

.ihome-product-main {
  padding: 40px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ihome-product-media {
  height: 93px;
  margin-bottom: -28px;
}

.ihome-product-media img {
  height: 93px;
  width: 100%;
  object-fit: cover;
}

.ihome-product-media--residential {
  width: 165px;
  margin-left: auto;
  margin-right: auto;
}

.ihome-product-media--bridging {
  width: 139px;
  margin-left: auto;
  margin-right: auto;
}

.ihome-product-media--transfers {
  width: 91px;
  margin-left: auto;
  margin-right: auto;
}

.ihome-product-title {
  margin: 0 0 12px;
  color: #282826;
  font-family: "Vanilla Bold";
  font-size: 48px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
}

.ihome-product-text {
  margin: 0 0 24px;
  max-width: 250px;
  color: #282826;
  font-family: "Inter-Regular";
  font-size: 16px;
  line-height: 1.5;
}

.ihome-product-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 265px;
  margin-top: auto;
}

.ihome-product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  background: #fff;
  color: #010101;
  font-family: "Inter-Medium";
  font-size: 20px;
  text-align: center;
  white-space: nowrap;
}

.ihome-product-btn:hover,
.ihome-product-btn:focus-visible {
  outline: 2px solid #282826;
  outline-offset: -2px;
}

.ihome-product-btn--secondary {
  display: none;
  border: 1px solid #000;
  background: transparent;
  font-family: "Inter-Regular";
}

.ihome-product-criteria {
  display: none;
}

@media (min-width: 1024px) {
  .ihome-product-main {
    height: 100%;
  }

  .ihome-product-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 auto;
    width: 100%;
  }

  .ihome-product-card:hover,
  .ihome-product-card:focus-within {
    z-index: 1;
  }

  .ihome-product-criteria {
    position: absolute;
    top: 0;
    left: 100%;
    width: calc(100% + 32px);
    height: 100%;
    display: flex;
    align-items: flex-start;
    padding: 35px 48px;
    background: #f2efec;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
    z-index: 2;
  }

  .ihome-product-card:hover .ihome-product-criteria,
  .ihome-product-card:focus-within .ihome-product-criteria {
    opacity: 1;
    visibility: visible;
  }

  /* The criteria panel normally expands rightward (left: 100%), which
     doesn't work for the last card - there's no slot to its right. This
     used to be worked around by reordering the flex items so transfers
     briefly became the middle card, but that visibly moved the transfers
     pod itself out of its own slot on hover. Flipping the panel to expand
     leftward instead keeps the pod exactly where it is. */
  .ihome-product-card--transfers .ihome-product-criteria {
    left: auto;
    right: 100%;
  }

  .ihome-products-track:has(.ihome-product-card--residential:hover, .ihome-product-card--residential:focus-within) .ihome-product-card--transfers,
  .ihome-products-track:has(.ihome-product-card--bridging:hover, .ihome-product-card--bridging:focus-within) .ihome-product-card--residential,
  .ihome-products-track:has(.ihome-product-card--transfers:hover, .ihome-product-card--transfers:focus-within) .ihome-product-card--residential {
    opacity: 0.5;
    transition: opacity 0.15s ease;
  }

  .ihome-pills {
    flex-wrap: nowrap;
    gap: 24px;
  }

  .ihome-status-select {
    min-width: 252px;
  }

  .ihome-status-trigger {
    width: 100%;
  }

  .ihome-status-trigger .ihome-pill-chevron {
    margin-left: auto;
  }
}

.ihome-criteria-list {
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
  font-family: "Inter-Regular";
  font-size: 14px;
  color: #282826;
  overflow-y: auto;
  max-height: 268px;
}

.ihome-criteria-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 3px 0;
}

.ihome-criteria-list li span {
  color: #6b6b66;
}

.ihome-criteria-icon {
  flex-shrink: 0;
  width: 14px;
  height: 11px;
}

.ihome-criteria-list li.is-yes .ihome-criteria-icon {
  color: #4b6b2f;
}

.ihome-criteria-list li.is-no .ihome-criteria-icon {
  color: #7a3424;
}

.ihome-carousel-nav {
  display: none;
}

/* ------------------------------ Calculators ------------------------------ */

.ihome-calculators {
  background: #e5dece;
  padding: 56px 20px;
}

.ihome-calculators-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ihome-calculators-heading {
  margin: 0;
  color: #000;
  font-family: "Vanilla Bold";
  font-size: 48px;
  font-weight: 400;
  text-transform: uppercase;
}

.ihome-calc-cards {
  display: flex;
  flex-wrap: nowrap;
  gap: 32px;
}

.ihome-calc-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 19px;
  min-width: 351px;
  flex: 1 1 351px;
  background: #f2efec;
  padding: 48px 48px 40px;
  color: #282826;
  text-decoration: none;
}

.ihome-calc-icon {
  flex-shrink: 0;
  width: 32px;
  height: 30px;
}

.ihome-calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.ihome-calc-label {
  font-family: "Inter-Regular";
  font-size: 16px;
}

.ihome-calc-label strong {
  font-family: "Inter-Bold";
  font-weight: 700;
}

.ihome-calc-arrow {
  flex-shrink: 0;
  width: 10px;
  height: 16px;
}

.ihome-calc-card:hover .ihome-calc-arrow,
.ihome-calc-card:focus-visible .ihome-calc-arrow {
  transform: translateX(3px);
}

/* --------------------------- Processing times ---------------------------- */

.ihome-processing {
  background: #fff;
  padding: 56px 20px;
  text-align: center;
}

.ihome-processing-heading {
  margin: 0 0 32px;
  color: #000;
  font-family: "Vanilla Bold";
  font-size: 48px;
  font-weight: 400;
  text-transform: uppercase;
}

.ihome-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.ihome-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 20px;
  background: #f2efec;
  color: #020202;
  font-family: "Inter-Regular";
  font-size: 16px;
  white-space: nowrap;
}

.ihome-pill strong {
  font-family: "Inter-Bold";
  font-weight: 700;
}

.ihome-status-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #63cc36;
}

.ihome-status-dot--red {
  background: #7a3424;
}

.ihome-status-select {
  position: relative;
  padding: 0;
  background: #fff;
  border: 1px solid #000;
}

.ihome-status-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 20px;
  background: none;
  border: 0;
  color: #020202;
  font-family: "Inter-SemiBold";
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.ihome-status-trigger .ihome-pill-chevron {
  transition: transform 0.15s ease;
}

.ihome-status-select[data-open="true"] .ihome-status-trigger .ihome-pill-chevron {
  transform: rotate(180deg);
}

.ihome-status-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 3px;
  background: rgba(99, 204, 54, 0.1);
  color: #345b1e;
  font-family: "Inter-Regular";
  font-size: 10px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
  pointer-events: none;
  z-index: 3;
}

.ihome-status-tooltip.is-warning {
  background: rgba(122, 52, 36, 0.1);
  color: #7a3424;
}

.ihome-status-select:hover .ihome-status-tooltip,
.ihome-status-trigger:focus-visible ~ .ihome-status-tooltip {
  opacity: 1;
  visibility: visible;
}

.ihome-status-select[data-open="true"] .ihome-status-tooltip {
  opacity: 0;
  visibility: hidden;
}

.ihome-status-menu {
  position: absolute;
  top: 100%;
  margin: -1px 0 0;
  left: -1px;
  right: -1px;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #000;
  z-index: 4;
}

.ihome-status-select[data-open="false"] .ihome-status-menu {
  display: none;
}

.ihome-status-option {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 20px;
  font-family: "Inter-Regular";
  font-size: 16px;
  color: #020202;
  cursor: pointer;
}

.ihome-status-option[aria-selected="true"] {
  font-family: "Inter-SemiBold";
  font-weight: 600;
  background: rgba(99, 204, 54, 0.1);
}

.ihome-status-option[aria-selected="true"].is-warning {
  background: rgba(122, 52, 36, 0.1);
}

.ihome-status-option:hover,
.ihome-status-option:focus-visible {
  background: #f2efec;
}

/* ------------------------------ Need back up ------------------------------ */

.ihome-backup {
  background: #fff;
  padding: 50px 20px;
}

.ihome-backup-inner {
  max-width: 1122px;
  margin: 0 auto;
  background: #f2efec;
  padding: 48px 60px 40px;
}

.ihome-backup-header {
  margin-bottom: 32px;
}

.ihome-backup-copy {
  max-width: 600px;
  margin-bottom: 30px;
}

.ihome-backup-heading {
  margin: 0 0 12px;
  color: #282826;
  font-family: "Vanilla Bold";
  font-size: 48px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.125;
}

.ihome-backup-lead {
  margin: 0;
  color: #282826;
  font-family: "Inter-Regular";
  font-size: 16px;
  line-height: 1.5;
}

.ihome-postcode-label {
  display: block;
  margin-bottom: 20px;
  color: #282826;
  font-family: "Inter-Bold";
  font-size: 20px;
  font-weight: 700;
}

.ihome-postcode-search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 21px;
}

.ihome-postcode-row {
  position: relative;
  flex: 0 0 265px;
  width: 265px;
}

.ihome-postcode-input {
  width: 100%;
  height: 48px;
  padding: 12px 44px 12px 20px;
  background: #fff;
  border: 0;
  color: #282826;
  font-family: "Inter-Regular";
  font-size: 16px;
}

.ihome-postcode-input::placeholder {
  color: #4c4c49;
}

.ihome-postcode-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.ihome-postcode-btn:focus-visible {
  outline: 2px solid rgba(40, 40, 38, 0.3);
  outline-offset: 2px;
}

.ihome-postcode-result {
  margin-bottom: 32px;
  padding-top: 18px;
}

.ihome-postcode-result[hidden] {
  display: none;
}

.ihome-contact-tabs {
  display: inline-flex;
  gap: 20px;
}

.ihome-contact-tabs[hidden] {
  display: none;
}

.ihome-postcode-saved-area {
  margin: 0;
  color: #282826;
  font-family: "Inter-Regular";
  font-size: 16px;
}

.ihome-postcode-saved-area[hidden] {
  display: none;
}

.ihome-postcode-change-area {
  padding: 0;
  border: 0;
  background: transparent;
  color: #282826;
  font-family: "Inter-Bold";
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.ihome-contact-tabpanel {
  display: none;
}

.ihome-contact-tabpanel.is-active {
  display: block;
}

.ihome-contact-tabpanel + .ihome-contact-tabpanel {
  margin-top: 20px;
}

.ihome-contact-tab {
  height: 48px;
  padding: 0 24px;
  background: #fff;
  border: 0;
  color: #000;
  font-family: "Inter-Medium";
  font-size: 16px;
  cursor: pointer;
}

.ihome-contact-tab.is-active {
  position: relative;
  background: #e5dece;
  font-family: "Inter-Bold";
  font-weight: 700;
}

.ihome-contact-tab.is-active::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 16px 0 16px;
  border-color: #e5dece transparent transparent transparent;
}

.ihome-contact-body + .ihome-contact-role {
  margin-top: 24px;
}

.ihome-contact-role {
  margin: 0 0 20px;
  color: #282826;
  font-family: "Inter-Bold";
  font-size: 18px;
  font-weight: 700;
}

.ihome-contact-body {
  display: flex;
  flex-wrap: wrap;
}

.ihome-contact-photo {
  flex: 0 0 167px;
  width: 167px;
  height: 167px;
  background: #e5dece;
}

.ihome-contact-details {
  flex: 1 1 320px;
  min-width: 280px;
  /* background: #fff; */
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.ihome-contact-name {
  margin: 0;
  color: #282826;
  font-family: "Inter-SemiBold";
  font-size: 28px;
  text-transform: capitalize;
}

.ihome-contact-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
}

.ihome-contact-btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  font-family: "Inter-Medium";
  font-size: 18px;
  text-decoration: none;
}

.ihome-contact-btn--tel {
  background: #fff;
  color: #000;
}

.ihome-contact-btn-text--short {
  display: none;
}

.ihome-contact-btn--email {
  background: #282826;
  color: #fff;
}

.ihome-sponsors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 8px;
  padding-top: 32px;
  /* border-top: 1px solid rgba(40, 40, 38, 0.12); */
}

.ihome-sponsors img {
  max-height: 90px;
  width: auto;
  object-fit: contain;
}

/* ================================ Tablet ================================= */
/* 768-1023px - Figma "Home Page (Tablet)" */

@media (max-width: 1024px) {
  .trustpilot-widget {
    padding: 30px 0;
}

  .ihome-products-track {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .ihome-product-main {
    display: block;
    position: relative;
    text-align: left;
    padding: 40px;
  }

  .ihome-product-media--residential,
  .ihome-product-media--bridging,
  .ihome-product-media--transfers {
    margin-left: 5%;
  }

  .ihome-product-media.ihome-product-media--transfers {
    margin-left: 10%;
  }

  .ihome-product-title,
  .ihome-product-text {
    text-align: left;
  }

  .ihome-product-actions {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    width: 220px;
  }

  .ihome-product-btn--secondary {
    display: inline-flex;
  }

  .ihome-product-card.is-expanded {
    display: flex;
    align-items: flex-start;
  }

  .ihome-product-card.is-expanded .ihome-product-main {
    flex: 1 1 50%;
  }

  .ihome-product-card.is-expanded .ihome-product-actions {
    position: static;
    top: auto;
    right: auto;
    transform: none;
    width: 100%;
    max-width: 265px;
    margin-top: 24px;
  }

  .ihome-product-card.is-expanded .ihome-product-btn:not(.ihome-product-btn--secondary) {
    background: #282826;
    color: #fff;
  }

  .ihome-product-card.is-expanded .ihome-product-criteria {
    display: block;
    flex: 1 1 50%;
    padding: 32px 40px;
    background: #f2efec;
  }

  .ihome-calculators-row {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .ihome-calc-cards {
    align-self: stretch;
    width: 100%;
  }

  .ihome-calc-card {
    min-width: 300px;
  }

  .ihome-processing {
    padding: 56px 45px;
  }

  .ihome-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .ihome-status-trigger {
    width: 100%;
  }

  .ihome-status-trigger .ihome-pill-chevron {
    margin-left: auto;
  }

  .ihome-backup-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .ihome-postcode-form {
    width: 100%;
  }

  .ihome-backup-inner:has(.ihome-postcode-result:not([hidden])) .ihome-postcode-label {
    text-align: left;
  }

  .ihome-postcode-search-row {
    justify-content: center;
  }

  .ihome-contact-tabs,
  .ihome-postcode-result {
    text-align: left;
  }

  .ihome-contact-body {
    justify-content: flex-start;
    max-width: 505px;
  }

  .ihome-contact-btn {
    padding: 10px 10px;
  }

  .ihome-sponsors {
    justify-content: center;
    gap: 60px;
  }
}

/* ================================ Mobile ================================= */
/* <=767px - Figma "Home page (Mobile)") */

@media (max-width: 767px) {
  .trustpilot-widget {
    padding: 30px 0;
}
  .ihome-product-title,
  .ihome-calculators-heading,
  .ihome-processing-heading,
  .ihome-backup-heading {
    font-size: 28px;
  }

  .ihome-products-track {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
  }

  .ihome-products-track::-webkit-scrollbar {
    display: none;
  }

  .ihome-product-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
  }

  .ihome-product-main {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }

  .ihome-product-title,
  .ihome-product-text {
    text-align: center;
  }

  .ihome-product-media--residential,
  .ihome-product-media--bridging,
  .ihome-product-media--transfers {
    margin: 0 auto;
    margin-bottom: -28px;
  }

  .ihome-product-media--transfers {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .ihome-product-btn:not(.ihome-product-btn--secondary) {
    background: #282826;
    color: #fff;
  }

  .ihome-product-actions {
    position: static;
    width: 100%;
    max-width: 265px;
    margin: 24px auto 0;
    transform: none;
  }

  .ihome-product-card.is-expanded {
    display: block;
  }

  .ihome-product-card.is-expanded .ihome-product-main {
    flex: none;
  }

  .ihome-product-card.is-expanded .ihome-product-criteria {
    flex: none;
    width: 100%;
    margin-top: 0;
  }

  .ihome-carousel-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
  }

  .ihome-carousel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #282826;
    background: #282826;
    color: #fff;
    cursor: pointer;
  }

  .ihome-calc-cards {
    flex-direction: column;
    gap: 12px;
  }

  .ihome-calc-card {
    flex: none;
    width: 100%;
    padding: 16px;
    gap: 10px;
    min-width: 285px;
  }

  .ihome-calc-label {
    font-size: 16px;
  }

  section.ihome-processing {
    padding: 40px 18px 20px;
  }

  .ihome-pills {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .ihome-pill,
  .ihome-status-select {
    width: 100%;
    justify-content: space-between;
  }

  .ihome-pill:not(.ihome-status-select) {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: auto;
    padding: 16px 20px;
    gap: 4px;
  }

  .ihome-status-trigger {
    width: 100%;
  }

  .ihome-status-trigger .ihome-pill-chevron {
    margin-left: auto;
  }

  .ihome-backup {
    padding: 50px 0px 0;
  }

  .ihome-backup-inner {
    padding: 32px 20px 24px;
  }

  .ihome-backup-inner:has(.ihome-postcode-result:not([hidden])) .ihome-postcode-label,
  .ihome-contact-tabs,
  .ihome-contact-role,
  .ihome-postcode-result {
    text-align: center;
  }

  .ihome-postcode-search-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .ihome-postcode-row {
    flex: none;
    width: 100%;
  }

  .ihome-contact-tabs {
    display: flex;
    width: 100%;
  }

  .ihome-contact-tab {
    flex: 1 1 0;
  }

  .ihome-postcode-saved-area {
    width: 100%;
    text-align: center;
  }

  .ihome-contact-body {
    flex-direction: column;
    align-items: center;
  }

  .ihome-contact-photo {
    flex: none;
    width: 280px;
    height: auto;
    /* aspect-ratio: 1 / 1; */
  }

   .ihome-contact-photo img {
    margin: 0 auto;
   }

  .ihome-contact-details {
    flex: none;
    width: 100%;
    min-width: 0;
    align-items: center;
    padding: 24px 0 0;
  }

  .ihome-contact-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .ihome-contact-btn {
    width: 100%;
    height: 48px;
    justify-content: center;
  }

  .ihome-contact-btn-text--full {
    display: none;
  }

  .ihome-contact-btn-text--short {
    display: inline;
  }

  .ihome-sponsors {
    justify-content: center;
    gap: 20px;
  }

  .ihome-sponsors img {
    max-height: 90px;
    width: 74px;
    object-fit: contain;
  }

  h2.ihome-product-title {
      font-size: 28px;
  }
}
a.ihome-contact-btn.ihome-contact-btn--email:hover {
    color: #fff;
}

.docs-hero h1.banner-title{
  max-width: 740px;
}
