/**
 * Toyota Remote Control page (Connected Gen 3)
 */

.tconnect-page-content--remote h1,
.tconnect-page-content--remote h2,
.tconnect-page-content--remote h3,
.tconnect-page-content--remote h4 {
  font-family: "DBHelvethaicaX-Reg", sans-serif !important;
}

.tconnect-page-content--remote {
  color: rgb(23, 55, 104);
}

.tconnect-page-content--remote h2 p {
  margin: 0 0 12px;
  color: rgb(80, 135, 198);
  font-size: 32px;
  line-height: 1.2;
}

.remote-top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  font-size: 20px;
  line-height: 1.4;
}

.remote-top-nav a {
  display: inline-block;
  padding: 6px 12px;
  background: #f3f6fa;
  border: 1px solid #e8eef5;
  border-radius: 4px;
  color: rgb(23, 55, 104);
  text-decoration: none !important;
}

.remote-top-nav a:hover,
.remote-top-nav a:focus {
  background: #e8eef5;
  border-color: rgb(80, 135, 198);
  outline: none;
}

.remote-hero {
  margin: 0 0 28px;
  padding: 28px 28px 24px;
  background: linear-gradient(135deg, #173768 0%, #2f5597 70%, #5087c6 100%);
  border-radius: 12px;
  color: #fff;
}

.remote-hero__eyebrow {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.remote-hero__title {
  margin: 0 0 10px;
  font-size: 36px;
  line-height: 1.15;
  font-weight: bold;
  color: #fff;
}

.remote-hero__lead {
  margin: 0;
  max-width: 640px;
  font-size: 22px;
  line-height: 1.45;
  color: #fff;
}

.remote-section {
  margin: 0 0 32px;
}

.remote-section__title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: bold;
  color: rgb(23, 55, 104);
}

.remote-section__lead {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.45;
  color: #333;
}

.remote-banner {
  position: relative;
  display: block;
  margin: 0 0 20px;
  overflow: hidden;
  border-radius: 12px;
}

.remote-banner picture {
  display: block;
}

.remote-banner img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.06);
  animation: remoteBannerZoom 1.2s ease forwards;
}

.remote-banner__title {
  position: absolute;
  left: 6%;
  top: 46%;
  margin: 0;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.05;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.remote-banner__line {
  display: block;
  opacity: 0;
  transform: translate3d(5rem, 0, 0);
  animation: remoteBannerFade 0.75s ease forwards, remoteBannerSlide 1.5s ease forwards;
}

@keyframes remoteBannerZoom {
  to {
    transform: scale(1);
  }
}

@keyframes remoteBannerFade {
  to {
    opacity: 1;
  }
}

@keyframes remoteBannerSlide {
  to {
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .remote-banner img,
  .remote-banner__line {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.remote-figure {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.remote-figure {
  margin: 0 0 16px;
}

.remote-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #173768;
  border-radius: 12px;
  overflow: hidden;
}

.remote-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.remote-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  margin: 0 0 16px;
  padding: 20px;
  background: #f7f9fc;
  border: 1px dashed #9eb6d4;
  border-radius: 10px;
  text-align: center;
}

.remote-slot__label {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
  color: rgb(80, 135, 198);
}

.remote-slot--short {
  min-height: 88px;
}

.remote-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.remote-group {
  padding: 20px 20px 8px;
  background: #fff;
  border: 1px solid #e0e5eb;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(23, 55, 104, 0.06);
}

.remote-group__kicker {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e8951c;
}

.remote-group__title {
  margin: 2px 0 4px;
  font-size: 26px;
  font-weight: bold;
  color: rgb(23, 55, 104);
}

.remote-group__subtitle {
  margin: 0 0 14px;
  font-size: 20px;
  color: #555;
}

.remote-features,
#contentwrapper ul.remote-features {
  margin: 0;
  padding: 0;
  list-style: none;
}

.remote-features__item,
#contentwrapper .remote-features__item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  margin: 0 0 14px;
  padding: 0;
}

.remote-features__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #173768;
  color: #fff;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
}

.remote-features__name {
  display: block;
  font-size: 22px;
  font-weight: bold;
  line-height: 1.3;
  color: rgb(23, 55, 104);
}

.remote-features__text {
  display: block;
  margin-top: 2px;
  font-size: 20px;
  line-height: 1.45;
  color: #333;
}

.remote-remark {
  margin: 16px 0 0;
  font-size: 20px;
  line-height: 1.45;
  color: #555;
}

.remote-compatible__model img {
  display: block;
  width: min(480px, 100%);
  height: auto;
  margin: 12px 0 10px;
}

.remote-compatible__name {
  margin: 0;
  color: #111;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
}

.remote-compatible__meta {
  margin: 2px 0 0;
  color: #666;
  font-size: 22px;
  line-height: 1.4;
}

.remote-steps,
#contentwrapper ol.remote-steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.remote-steps__item,
#contentwrapper .remote-steps__item {
  margin: 0;
  padding: 0;
}

.remote-steps__visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 230px;
  margin: 0 0 12px;
}

.remote-steps__visual img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.remote-steps__name {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.35;
  color: #111;
}

.remote-steps__list,
#contentwrapper ul.remote-steps__list {
  margin: 8px 0 0;
  padding: 0 0 0 18px;
  list-style: square;
}

.remote-steps__list li,
#contentwrapper .remote-steps__list li {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: #222;
}

.remote-steps__list li + li,
#contentwrapper .remote-steps__list li + li {
  margin-top: 4px;
}

.remote-faq-link {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 22px;
  background: #173768;
  color: #fff !important;
  font-size: 22px;
  text-decoration: none !important;
  border-radius: 6px;
}

.remote-faq-link:hover,
.remote-faq-link:focus {
  background: #2f5597;
  color: #fff !important;
}

.remote-note {
  margin-top: 8px;
  padding: 24px;
  background: #fff;
  border-left: 4px solid #e8951c;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 8px rgba(23, 55, 104, 0.06);
}

.remote-note p,
.remote-note__list li,
#contentwrapper .remote-note__list li {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  color: #333;
}

.remote-note__list,
#contentwrapper ol.remote-note__list {
  margin: 0;
  padding: 0 0 0 1.4em;
}

.remote-note__list li + li,
#contentwrapper .remote-note__list li + li {
  margin-top: 12px;
}

.remote-note__more {
  display: block;
  margin-top: 12px;
}

.remote-note a {
  color: rgb(23, 55, 104);
}

@media (max-width: 991px) {
  .tconnect-page-content--remote {
    padding: 0 8px 24px;
  }

  .tconnect-page-content--remote h2 p {
    font-size: 24px !important;
  }

  .remote-top-nav a {
    padding: 8px 10px;
    font-size: 16px;
  }

  .remote-groups {
    grid-template-columns: 1fr;
  }

  .remote-hero {
    padding: 20px 16px;
  }

  .remote-banner__title {
    top: auto;
    bottom: 7%;
    left: 5%;
    max-width: 42%;
    font-size: 22px;
    letter-spacing: 0.04em;
  }

  .remote-hero__title {
    font-size: 28px;
  }

  .remote-hero__lead,
  .remote-section__lead,
  .remote-features__text,
  .remote-steps__list li,
  .remote-note__list li,
  #contentwrapper .remote-note__list li {
    font-size: 18px;
  }

  .remote-compatible__name {
    font-size: 26px;
  }

  .remote-compatible__meta {
    font-size: 22px;
  }

  .remote-compatible__model img {
    width: min(360px, 100%);
  }

  .remote-steps,
  #contentwrapper ol.remote-steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .remote-steps__visual {
    height: 280px;
  }

  .remote-steps__name {
    font-size: 20px;
  }
}
