/* ============================================================
   Appliance Rentals — Start a Franchise page (Figma rebrand)
   Reuses arf-* (4-row compare), aru-* (hero/story/callout) styles.
   ============================================================ */
@import url("rebrand-refrigerators.css");
@import url("rebrand-about-us.css");

/* ---------- hero ---------- */
.arfr-hero .aru-hero-inner {
  min-height: 500px;
  justify-content: center;
  padding-top: 40px;
  background-image: url("../../images/franchise/hero-bg.webp");
  background-image: image-set(url("../../images/franchise/hero-bg.webp") 1x, url("../../images/franchise/hero-bg@2x.webp") 2x);
  background-position: center;
}
.arfr-hero .aru-hero-inner::before {
  background: rgba(25, 31, 58, 0.62);
}
.arfr-hero .aru-hero-subtitle {
  max-width: 576px;
}
.arfr-hero-callout {
  margin: 30px 0 0;
  font-weight: 400;
  font-size: 24px;
  line-height: 34px;
  color: #fff;
  text-align: center;
}
.arfr-hero-callout strong {
  font-weight: 700;
}
.arfr-cta {
  display: block;
  margin: 26px auto 0;
  padding: 18px 40px;
  border: none;
  background: var(--ar-teal);
  border-radius: 65px;
  color: #fff;
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  cursor: pointer;
}
.page-content .arfr-cta:focus {
  background-color: var(--ar-teal);
}
.page-content .arfr-cta:hover {
  background-color: #005a6f;
}
.arfr-cta-green {
  background: var(--ar-green);
}
.page-content .arfr-cta-green:focus {
  background-color: var(--ar-green);
}
.page-content .arfr-cta-green:hover {
  background-color: #4cb055;
}
.aru-story-text .arfr-cta {
  margin-left: 0;
}

/* ---------- why partner (6 benefits) ---------- */
.arfr-benefits {
  padding: 100px var(--ar-gutter) 0;
  margin-bottom: 40px;
  text-align: center;
}
.aru-benefits-sub {
  margin: 20px auto 0;
}
.arfr-benefits-sub2 {
  margin-top: 16px !important;
}
.arfr-benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 426px);
  gap: 40px 21px;
  justify-content: center;
  margin-top: 58px;
  text-align: left;
}

.arfr-benefit-pair {
  display: contents;
}
@media (min-width: 768px) {
  .page-content .arfr-benefits .arfr-benefit-grid {
    display: grid;
  }
}
.arfr-benefit-icon {
  display: inline-flex;
}
.arfr-benefit-title {
  margin: 5px 0 0 0;
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  color: var(--ar-ink);
}
.arfr-benefit-text {
  margin: 5px 0 0;
  font-weight: 300;
  font-size: 18px;
  line-height: 24px;
  color: #242424;
}

/* ---------- comparison tweaks ---------- */
.arfr-compare .ar-compare-prompt {
  margin-top: 50px;
}

.arfr-compare {
  position: relative;
}
.arfr-compare .ar-compare-card {
  position: relative;
  z-index: 1;
}
.arfr-compare::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 180px;
  bottom: 101px;
  background: var(--ar-mint);
  z-index: 0;
}
@media (max-width: 767px) {
  .arfr-compare::before {
    display: none;
  }
}

/* ---------- investment ---------- */
.arfr-invest {
  padding: 100px 20px 0;
}
.arfr-invest-card {
  position: relative;
  max-width: 1305px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--ar-border);
  border-radius: 20px;
  box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.07);
  padding: 70px 90px 60px;
}
.arfr-invest-pill {
  position: absolute;
  top: -25px;
  left: 60px;
}
.arfr-invest-text {
  margin: 18px auto 0;
  max-width: 870px;
  font-weight: 300;
  font-size: 18px;
  line-height: 25px;
  color: #242424;
  text-align: center;
}
.arfr-invest-text-bold {
  font-weight: 700;
  margin-top: 22px;
  max-width: 543px;
}
.arfr-table-wrap {
  margin-top: 34px;
  overflow-x: auto;
}
.arfr-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0;
  font-size: 20px;
}
.page-content .arfr-table th,
.page-content .arfr-table td {
  border: none !important;
}
.arfr-table th {
  padding: 0 0 4px;
  background: none;
}

.arfr-callout-text {
  max-width: 634px;
  font-size: 18px;
  line-height: 25px;
}
.aru-callout-inner .arfr-cta {
  background: #fff;
  color: #2a085d;
}
.aru-callout-inner .arfr-cta:hover {
  background: #e9e9e9;
}
.arfr-callout-text strong {
  font-weight: 700;
}
.arfr-th {
  display: block;
  padding: 10px 0;
  border-radius: 25px 25px 0 0;
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  line-height: 30px;
  text-align: center;
}
.arfr-th-low {
  background: #8fd694;
}
.arfr-th-high {
  background: var(--ar-green);
}
.arfr-table td {
  padding: 10px 24px;
  line-height: 30px;
}
.arfr-table td:first-child {
  font-weight: 700;
  color: var(--ar-purple);
}
.arfr-table td:nth-child(2),
.arfr-table td:nth-child(3) {
  text-align: center;
  color: #242424;
  width: 260px;
}

.arfr-table td:nth-child(2),
.arfr-table td:nth-child(3),
.arfr-table th:nth-child(2),
.arfr-table th:nth-child(3) {
  box-shadow: inset 3px 0 0 #fff;
}
.arfr-table th:nth-child(3) .arfr-th {
  margin-left: 3px;
}
.arfr-table tbody tr:nth-child(odd) td {
  background: var(--ar-mint-2);
}
.arfr-table tbody tr:nth-child(odd) td:first-child {
  border-radius: 25px 0 0 25px;
}
.arfr-table tbody tr:nth-child(odd) td:last-child {
  border-radius: 0 25px 25px 0;
}
.arfr-table .arfr-total td {
  background: var(--ar-purple) !important;
  color: #fff !important;
  font-weight: 700;
}
.arfr-table .arfr-total td:first-child {
  border-radius: 25px 0 0 25px;
}
.arfr-table .arfr-total td:last-child {
  border-radius: 0 25px 25px 0;
}
.arfr-invest .ar-compare-prompt {
  margin-top: 30px;
}
.arfr-invest .ar-compare-prompt,
.arfr-compare .ar-compare-prompt {
  line-height: 34px;
  font-weight: 300;
}
.arfr-invest .ar-compare-prompt strong,
.arfr-compare .ar-compare-prompt strong {
  font-weight: 700;
}

/* ---------- popup ---------- */
.arfr-popup[hidden] {
  display: none;
}
.arfr-popup {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.arfr-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 31, 58, 0.6);
}
.arfr-popup-card {
  position: relative;
  width: 700px;
  max-width: 100%;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e1e1e3;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  padding: 45px 58px;
}
.arfr-popup-x {
  position: absolute;
  top: 16px;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.page-content .arfr-popup .arfr-cta:focus {
  background-color: var(--ar-teal);
}
.page-content .arfr-popup .arfr-cta:hover {
  background-color: #005a6f;
}
.arfr-popup-title {
  margin: 0 0 23px;
  font-weight: 700;
  font-size: 32px;
  line-height: 38px;
  color: #242424;
  text-align: center;
}

.arfr-frow {
  display: flex;
  gap: 20px;
}
.arfr-frow .arfr-fwrap {
  flex: 1;
}
.arfr-fwrap {
  position: relative;
  display: block;
  margin-bottom: 20px;
  min-width: 0;
}
.page-content .arfr-field {
  display: block;
  width: 100%;
  height: 60px;
  background: #fff;
  border: 1.11px solid #d9d9d0;
  border-radius: 5.56px;
  padding: 0 15px;
  font-family: "Rubik", sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: #373737;
  outline: none;
}
.page-content .arfr-field:focus {
  border-color: var(--ar-teal);
}
.arfr-field::placeholder {
  color: transparent;
}
.arfr-ph {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 16px;
  display: flex;
  align-items: center;
  font-size: 18px;
  color: #373737;
  pointer-events: none;
}
.arfr-ph em {
  font-style: normal;
  color: #fc5147;
}
.arfr-field:not(:placeholder-shown) + .arfr-ph {
  display: none;
}
.arfr-popup-submit {
  margin-top: 31px;
  width: 318px;
  padding: 18px 0;
}
.arfr-form-msg {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 22px;
  text-align: center;
  color: var(--ar-green);
}
.arfr-form-msg.is-error {
  color: #fc5147;
}

.aru-story-row {
  align-items: center;
}
@media (min-width: 768px) {
  .aru-story .ar-section-title {
    margin-bottom: 0;
  }
  .aru-story-row {
    padding: 89px var(--ar-gutter) 0 var(--ar-gutter);
  }
  .aru-story-row:first-child {
    padding: 56px var(--ar-gutter) 66px var(--ar-gutter);
  }
  .aru-story-text p {
    margin: 0 0 10px;
  }
  .aru-story-text .ara-checklist li {
    font-size: 24px;
    line-height: 34px;
  }

  .aru-story-text .ara-checklist li::before {
    top: 8.5px;
  }
}

.aru-story-row:nth-child(3) .aru-story-img {
  border-radius: 40px 40px 40px 0;
}

.arfr-compare .arf-compare-outline {
  bottom: -32px;
}
.arfr-compare .ar-compare-prompt {
  margin-top: 63px;
}
.arfr-compare .arf-compare-head-us img {
  margin-top: 10px;
}

.arfr-review .ar-review-banner {
  background-image: url("../../images/franchise/review-bg.webp");
  background-image: image-set(url("../../images/franchise/review-bg.webp") 1x, url("../../images/franchise/review-bg@2x.webp") 2x);
}
.aru-story-text {
  max-width: 660px;
}

.page-content .ar-review:last-of-type {
  padding-bottom: 100px;
}

/* ---------- responsive ---------- */
@media (max-width: 1700px) {
  .arfr-benefits {
    padding-left: 60px;
    padding-right: 60px;
  }
}

@media (max-width: 1400px) {
  .arfr-benefit-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1360px) {
  .arfr-benefit-title {
    font-size: 21px;
    line-height: 26px;
  }
  .arfr-hero-callout {
    font-size: 20px;
    line-height: 28px;
  }
  .arfr-invest-card {
    padding: 60px 40px 50px;
  }
}

@media (max-width: 1100px) {
  .arfr-benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .arfr-compare .arf-compare-outline {
    bottom: -20px;
  }

  .arfr-compare .arf-cell-us {
    padding-left: 5px;
    padding-right: 5px;
  }
  .arfr-compare .ar-compare-prompt {
    margin-top: 44px;
  }
  .arfr-review .ar-review-banner {
    background-image: url("../../images/franchise/review-bg-mobile.webp");
    background-image: image-set(url("../../images/franchise/review-bg-mobile.webp") 1x, url("../../images/franchise/review-bg-mobile@2x.webp") 2x);
  }
  .arfr-hero .aru-hero-inner {
    min-height: 422px;
    background-image: url("../../images/franchise/hero-bg-mobile.webp");
    background-image: image-set(url("../../images/franchise/hero-bg-mobile.webp") 1x, url("../../images/franchise/hero-bg-mobile@2x.webp") 2x);
  }
  .arfr-benefits {
    padding: 60px 20px 0;
  }
  .aru-hero-subtitle {
    margin-top: 13px;
    font-size: 17px;
  }
  .arfr-hero-callout {
    margin: 20px 0 0;
    font-size: 17px;
    line-height: 25px;
  }
  .arfr-cta {
    margin: 16px auto 0;
  }
  .ar-compare {
    padding-top: 60px;
  }
  .arfr-compare .ar-compare-prompt {
    line-height: 28px;
  }
  .arfr-invest .ar-compare-prompt {
    line-height: 1.3;
  }
  .ar-review-card {
    padding: 28px 16px 0 16px;
  }
  .page-content .ar-review:last-of-type {
    padding-bottom: 66px;
  }
  .ar-compare .arfr-cta {
    margin: 17px auto 0;
  }
  .ar-compare-card {
    padding: 40px 0 50px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
  }
  .aru-story .ar-section-title {
    margin-bottom: 21px;
  }
  .aru-story-text .arfr-cta {
    margin-left: auto;
    margin-right: auto;
  }

  .arfr-benefit-grid {
    margin-top: 34px;
    text-align: left;
    justify-content: flex-start;
    gap: 0;
  }

  .aru-story-text,
  .aru-story-lead {
    text-align: center;
  }
  .aru-story-text .ara-checklist {
    display: inline-block;
    text-align: left;
  }
  .ara-checklist {
    margin: 0 0 10px 0;
  }
  .aru-callout-inner .arfr-cta {
    font-size: 20px;
    margin-top: 23px;
  }
  .aru-callout-text {
    margin: 20px 0 0;
  }
  .arfr-benefit-pair {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 306px;
  }
  .arfr-benefit {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 16px;
  }
  .arfr-benefit-icon {
    grid-row: 1 / span 3;
  }
  .arfr-benefit-icon img {
    width: 44px;
    height: 44px;
  }
  .arfr-benefit-title {
    margin: 0;
    align-self: center;
    font-size: 18px;
    line-height: 24px;
  }
  .arfr-benefit-text {
    grid-column: 2;
    font-size: 16px;
    line-height: 22px;
  }
  .arfr-hero-benefits {
    margin-top: 26px;
    justify-content: center;
  }
  .arfr-cta {
    padding: 15px 33px;
    font-size: 16px;
    line-height: 19px;
  }
  .arfr-invest {
    padding: 85px 0 0;
  }
  .arfr-invest-card {
    padding: 44px 12px 40px;
  }
  .arfr-invest-pill {
    left: 50%;
    transform: translateX(-50%);
  }
  .arfr-invest-text {
    font-size: 16px;
    line-height: 22px;
  }
  .arfr-table-wrap {
    margin-left: -12px;
    margin-right: -12px;
  }
  .arfr-table {
    font-size: 15px;
    min-width: 443px;
  }
  .arfr-th {
    font-size: 16px;
  }
  .arfr-table td {
    padding: 15px 10px;
    line-height: 20px;
  }
  .arfr-table td:first-child {
    width: 223px;
  }
  .arfr-table tbody tr td:first-child {
    padding: 15px 10px 15px 22px;
  }
  .arfr-table td:nth-child(2),
  .arfr-table td:nth-child(3) {
    width: 110px;
  }
  .arfr-popup {
    padding: 0;
  }
  .arfr-popup-card {
    width: 100%;
    height: 100%;
    max-height: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: #006d86 url("../../images/franchise/popup-bg-mobile.webp") no-repeat top center / 100% auto;
    padding: 0 20px 40px;
  }
  .arfr-popup-card::before {
    content: "";
    position: sticky;
    top: 0;
    z-index: 2;
    display: block;
    height: 55px;
    margin: 0 -20px;
    background: #fff url("../../images/homepage/logo-dark.svg") no-repeat 20px center / auto 26px;
  }
  .arfr-popup-x {
    top: 75px;
    right: 17px;
    padding: 0;
  }
  .arfr-popup-x svg {
    display: block;
    width: 13px;
    height: 12px;
  }
  .arfr-popup-x svg path {
    stroke: #fff;
  }
  .arfr-popup-title {
    margin: 66px 0 16px;
    font-size: 30px;
    line-height: 1.2;
    color: #fff;
  }
  .arfr-frow {
    display: block;
  }
  .page-content .arfr-field {
    font-size: 18px;
    border-color: #e1e1e3;
    border-radius: 10px;
    padding: 0 16px;
  }
  .arfr-ph {
    font-size: 18px;
    color: #262626;
  }
  .arfr-popup-submit {
    display: block;
    width: 258px;
    margin: 31px auto 0;
    padding: 15.5px 0;
    background: var(--ar-green);
    border-radius: 54px;
    font-size: 16px;
    line-height: 19px;
  }
  .page-content .arfr-popup .arfr-popup-submit:focus {
    background-color: var(--ar-green);
  }
  .page-content .arfr-popup .arfr-popup-submit:hover {
    background-color: #4cb055;
  }
}
