/* Home hero and estimate form. Scoped to keep the other contact forms intact. */
.home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 32px;
  padding: 32px clamp(24px, 4vw, 88px);
  min-height: max(640px, 41.6875vw);
  background: #087b9c;
}
.home-hero #sliderhome {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.home-hero .carousel-inner,
.home-hero .carousel-item,
.home-hero .carousel-item > a {
  width: 100%;
  height: 100%;
}
.home-hero .carousel-item > a { display: block; }
.home-hero .carousel-item img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.home-hero .carousel-control-prev,
.home-hero .carousel-control-next {
  top: auto;
  bottom: 20px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 50%;
  background: rgba(7, 42, 65, .36);
  opacity: 1;
}
.home-hero .carousel-control-prev { left: 24px; }
.home-hero .carousel-control-next { left: 74px; right: auto; }
.home-hero .carousel-indicators { right: 470px; bottom: 20px; margin-bottom: 0; }
.estimate-card {
  grid-column: 2;
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-top: 4px solid #24c3c6;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0, 42, 67, .2);
  background: #fff;
  color: #17344b;
  text-align: left;
  font-family: 'Open Sans', sans-serif;
}
.estimate-card__eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #08768c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.5;
}
.estimate-card h2 {
  margin: 0 0 10px;
  color: #15364b;
  font-family: 'Spartan', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.9px;
}
.estimate-card .estimate-card__intro {
  margin: 0 0 20px;
  color: #5c6f7b;
  font-size: 13px;
  line-height: 1.65;
}
.estimate-card__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 12px;
}
.estimate-field { min-width: 0; }
.estimate-field--full { grid-column: 1 / -1; }
.estimate-field label {
  display: block;
  margin: 0 0 5px;
  color: #264659;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}
.estimate-field label span { color: #08768c; }
.estimate-field input,
.estimate-field select,
.estimate-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  height: 43px;
  padding: 10px 11px;
  border: 1px solid #d9e4e9;
  border-radius: 7px;
  background-color: #f7fafb;
  color: #17344b;
  font: 400 13px/1.5 'Open Sans', sans-serif;
  box-shadow: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.estimate-field input::placeholder,
.estimate-field textarea::placeholder { color: #6a7f8a; opacity: 1; }
.estimate-field select { padding-right: 23px; }
.estimate-field textarea { height: 67px; min-height: 67px; resize: vertical; }
.estimate-field input:focus,
.estimate-field select:focus,
.estimate-field textarea:focus {
  outline: none;
  border-color: #098eab;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(9, 142, 171, .14);
}
.estimate-card__submit {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  background: #096f98;
  color: #fff;
  font: 700 14px/1.5 'Open Sans', sans-serif;
  cursor: pointer;
  transition: background-color .2s, box-shadow .2s;
}
.estimate-card__submit span { font-size: 21px; line-height: 1; }
.estimate-card__submit:hover { background: #075875; box-shadow: 0 5px 16px rgba(9, 111, 152, .2); }
.estimate-card__submit:focus-visible { outline: 3px solid #19b8c1; outline-offset: 3px; }
.estimate-card .estimate-card__note {
  margin: 10px 0 0;
  color: #6a7f8a;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}
@media (min-width: 1921px) {
  .home-hero { min-height: 800px; }
}
@media (max-width: 1199px) and (min-width: 992px) {
  .home-hero { grid-template-columns: minmax(0, 1fr) 390px; padding: 24px; }
  .estimate-card { padding: 24px; }
}
@media (max-width: 991px) {
  .home-hero { display: block; min-height: 0; padding: 0 20px 28px; background: #edf7fa; }
  .home-hero #sliderhome { position: relative; inset: auto; width: calc(100% + 40px); height: auto; margin: 0 -20px; z-index: 0; }
  .home-hero .carousel-inner,
  .home-hero .carousel-item,
  .home-hero .carousel-item > a { height: auto; }
  .home-hero .carousel-item img { width: 100%; height: auto; }
  .home-hero .carousel-indicators { right: 0; bottom: 35px; }
  .home-hero .carousel-control-prev,
  .home-hero .carousel-control-next { bottom: 35px; width: 32px; height: 32px; }
  .home-hero .carousel-control-prev { left: 16px; }
  .home-hero .carousel-control-next { left: 56px; }
  .estimate-card { max-width: 600px; margin: -18px auto 0; padding: 26px; border-radius: 15px; }
  .estimate-card h2 { font-size: 25px; }
  .estimate-field input,
  .estimate-field select,
  .estimate-field textarea { font-size: 16px; height: 46px; }
  .estimate-field textarea { height: 80px; }
}
@media (max-width: 479px) {
  .home-hero { padding: 0 14px 24px; }
  .home-hero #sliderhome { width: calc(100% + 28px); margin: 0 -14px; }
  .estimate-card { padding: 23px 20px; }
  .estimate-card h2 { font-size: 22px; }
  .estimate-card__fields { grid-template-columns: 1fr; gap: 12px; }
  .estimate-field--full { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero *, .home-hero *::before, .home-hero *::after { transition: none !important; }
}
