@font-face {
  font-family: Roboto;
  src: url('/brands/my-solar/roboto_latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

html[data-estimate-site="my-solar"] body { margin: 0; }

.mysolar,
.mysolar *,
.mysolar *::before,
.mysolar *::after {
  box-sizing: border-box;
}

.mysolar {
  background: #fff;
  color: #000;
  font-family: Roboto, system-ui, sans-serif;
  line-height: 1.5;
}

.mysolar :is(h1, h2, h3, p) {
  margin: 0;
}

.mysolar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.mysolar-header img {
  display: block;
  height: auto;
}

.mysolar-header a img { width: 128px; }
.mysolar-header > img { width: 116px; }

.mysolar-hero {
  background: #30444e url('/brands/my-solar/solar_roof_hero.avif') center top / cover no-repeat;
  color: #fff;
  font-family: system-ui, sans-serif;
}

.mysolar-hero-inner {
  position: relative;
  max-width: 1440px;
  margin-inline: auto;
  padding: 96px 24px 224px;
}

.mysolar-hero-copy {
  max-width: 624px;
  margin-inline: auto;
  text-align: center;
}

.mysolar-hero-copy h1 {
  padding-bottom: 24px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.5;
}

html[data-estimate-site="my-solar"] .mysolar .zip-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  padding-top: 28px;
  max-width: none;
}

.mysolar .zip-form .zip-field {
  min-width: 0;
  min-height: 50px;
  border: 1px solid #cacfd3;
  border-radius: 4px;
  background: #fff;
}

.mysolar .zip-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 0;
  border-radius: inherit;
  color: #0f172a;
  text-align: center;
  font: inherit;
}

.mysolar .zip-form button[type='submit'] {
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-radius: 4px;
  background: #f97316;
  color: #17202a;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

html[data-estimate-site="my-solar"] .mysolar .zip-form > .zip-field > .device-zip-button { color: #17202a; }

.mysolar .zip-form input::placeholder { color: #6b7280; }

.mysolar .zip-form .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.mysolar .zip-form :is(input, button):focus-visible {
  outline: 2px solid #142a43;
  outline-offset: 2px;
}

.mysolar .zip-form .zip-error {
  padding: 8px 12px;
  border-radius: 4px;
  background: #fbe6e6;
  color: #800000;
}

.mysolar .zip-form button[type='submit']:hover { background: #fb923c; }
.mysolar .zip-form .zip-error { grid-column: 1 / -1; }

.mysolar-hero-badge,
.mysolar-hero-preview {
  position: absolute;
  height: auto;
}

.mysolar-hero-badge {
  bottom: 40px;
  left: 50%;
  width: min(210px, 65%);
  transform: translateX(-50%);
}

.mysolar-hero-preview {
  right: 20px;
  bottom: 60px;
  display: none;
  width: min(360px, 38%);
}

.mysolar-estimate-logos {
  max-width: 1280px;
  margin-inline: auto;
  padding: 60px 20px 20px;
  text-align: center;
}

.mysolar-estimate-logos h2 { font-size: 24px; }

.mysolar-estimate-logos > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 24px;
  padding: 16px 24px 0;
}

.mysolar-estimate-logos img {
  display: block;
  margin-inline: auto;
  max-width: 100%;
  height: auto;
}

.mysolar-estimate-logos img:nth-child(2) { width: 50px; }

.mysolar-section,
.mysolar-calculator-banner {
  padding: 64px 24px;
}

.mysolar-section {
  max-width: 1328px;
  margin-inline: auto;
}

.mysolar-section h2 {
  font-size: 30px;
  line-height: 1.25;
}

.mysolar-section p,
.mysolar-about-rows li { color: #334155; }

.mysolar-card-section { text-align: center; }

.mysolar-cards {
  display: grid;
  gap: 64px;
  margin-block: 56px 64px;
}

.mysolar-cards img {
  width: 80px;
  height: 80px;
}

.mysolar-cards h3 {
  margin-block: 16px;
  font-size: 20px;
}

.mysolar-cards p { text-align: left; }

.mysolar-lower-zip {
  max-width: 600px;
  margin-inline: auto;
  text-align: left;
}

html[data-estimate-site="my-solar"] .mysolar .mysolar-lower-zip .zip-form { padding-top: 0; }

.mysolar-video,
.mysolar-about-rows > section,
.mysolar-contact-heading {
  display: grid;
  align-items: center;
  gap: 32px;
}

.mysolar-video iframe,
.mysolar-map {
  display: block;
  width: 100%;
  border: 0;
}

.mysolar-video iframe {
  aspect-ratio: 16 / 9;
  border-radius: 4px;
}

.mysolar-video :is(h2, p) + p { margin-top: 12px; }

.mysolar-calculator-banner {
  background: linear-gradient(#ffffffd9, #ffffffd9),
    url('/brands/my-solar/calculator_background.avif') center / cover no-repeat;
  text-align: center;
}

.mysolar-calculator-banner h2 { font-size: 32px; }

.mysolar-calculator-banner p {
  max-width: 1024px;
  margin: 16px auto 32px;
  font-size: 20px;
}

.mysolar-section h1 {
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1.15;
}

.mysolar-about h1,
.mysolar-about-intro { text-align: center; }

.mysolar .mysolar-about-intro {
  max-width: 768px;
  margin: 16px auto 64px;
  color: #000;
}

.mysolar-about-rows {
  display: grid;
  gap: 96px;
}

.mysolar-about-rows img {
  width: 100%;
  height: clamp(192px, 35vw, 320px);
  border-radius: 6px;
  object-fit: cover;
}

.mysolar-about-rows h2 {
  margin-bottom: 16px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.125;
}

.mysolar-about-rows li + li { margin-top: 8px; }

.mysolar-contact-heading {
  align-items: start;
  margin-bottom: 64px;
}

.mysolar-contact-details { font-style: normal; }
.mysolar-contact-details p:nth-child(2) { margin-bottom: 16px; }
.mysolar-contact-details a { color: #92400e; }

.mysolar-map {
  height: min(600px, 75vh);
  filter: grayscale(1);
}

@media (min-width: 640px) {
  .mysolar-hero-badge { left: 40px; transform: none; }
  .mysolar-hero-preview { display: block; }
  .mysolar-estimate-logos > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .mysolar-hero-inner { padding-block: 160px 288px; }
  html[data-estimate-site="my-solar"] .mysolar .zip-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 36px;
  }
}

@media (min-width: 1024px) {
  .mysolar-header a img,
  .mysolar-header > img { width: 192px; }

  .mysolar-estimate-logos > div { grid-template-columns: repeat(5, minmax(0, 1fr)); }

  .mysolar-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .mysolar-video,
  .mysolar-about-rows > section,
  .mysolar-contact-heading {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px;
  }
}

@media (max-width: 1023px) {
  .mysolar-about-rows > section:nth-child(2) img { grid-row: 1; }
}

.mysolar-privacy {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px;
  background: #f6f7fb;
}

.mysolar-privacy > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #142a43;
}
