.estimate-journey__teaser { display: grid; justify-items: center; gap: 22px; margin-bottom: 52px; text-align: center; }
.estimate-journey__intro { position: relative; z-index: 1; padding-inline: 22px; }
.setup-estimate .estimate-journey__intro h2 { max-width: 32ch; margin: 12px auto; color: #082436; }
.estimate-journey__intro h2 span { color: #087b48; }
.estimate-journey__intro > p:last-child { margin: 0; color: #607589; font-size: 15px; line-height: 1.7; }
.estimate-journey__visual { position: relative; display: grid; place-items: center; width: 100%; isolation: isolate; }
.estimate-journey__visual::before {
  position: absolute; z-index: -1; width: 360px; height: 360px; border: 1px solid #d7e8df;
  border-radius: 50%; box-shadow: 0 0 0 36px #f5f7f8, 0 0 0 37px #dceae2, 0 0 0 73px #f5f7f8, 0 0 0 74px #e2ede6; content: "";
}
.estimate-device {
  position: relative; width: 236px; padding: 15px 17px 21px; border: 1px solid #577e7d; border-radius: 26px;
  background: linear-gradient(125deg,#34535b 0%,#153843 20%,#0a2837 70%,#183d48);
  box-shadow: inset 2px 2px 3px #ffffff36, inset -2px -3px 3px #0008, 0 8px 0 #061c27, 0 10px 0 #31505a, 0 22px 36px -12px #0824364d;
  transform: perspective(900px) rotateX(8deg) rotateZ(-5deg);
  transform-origin: 50% 23%; will-change: transform;
}
.estimate-device__top { display: flex; align-items: center; justify-content: space-between; margin: 0 0 13px; }
.estimate-device__top > span:first-child { color: #c5d9de; font-size: 6px; font-weight: 700; letter-spacing: .12em; }
.estimate-device__solar { width: 59px; height: 13px; border: 2px solid #061c27; border-radius: 2px; background: repeating-linear-gradient(90deg,#172b31 0 12px,#3b4a4c 12px 13px); }
.estimate-device__screen {
  padding: 10px 12px; border: 4px solid #092531; border-radius: 12px;
  background: linear-gradient(140deg,#dff9e6,#a9dfc5); color: #164f42;
  box-shadow: inset 1px 2px 7px #123a3e47, 0 1px 0 #ffffff30; text-align: start;
}
.estimate-device__screen-label { display: block; margin-bottom: 8px; font-size: 8px; font-weight: 700; letter-spacing: .04em; }
.estimate-device__screen > div { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; }
.estimate-device__currency { font-size: 22px; font-weight: 600; }
.estimate-device__digits { font-family: monospace; font-size: 22px; font-weight: 700; letter-spacing: 0; line-height: 1; white-space: nowrap; }
.estimate-device__screen-note { display: block; margin-top: 8px; font-size: 5.5px; letter-spacing: .065em; }
.estimate-device__keys { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 17px; padding: 9px 2px 0; }
.estimate-device__keys > span {
  display: grid; place-items: center; height: 22px; border: 1px solid #d6e7e7; border-radius: 6px;
  background: linear-gradient(#f1f7f4,#cbdcd7); color: #143d3e; font-size: 13px; font-weight: 600;
  box-shadow: 0 3px 0 #788e8a, 0 5px 5px #0007, inset 0 1px 1px #fff;
}
.estimate-device__keys > .estimate-device__function { border-color: #9abeb4; background: linear-gradient(#bad6c9,#8fb9a7); font-size: 10px; }
.estimate-device__keys > .estimate-device__operator { border-color: #81baa7; background: linear-gradient(#a7e9ce,#7cbea5); font-size: 18px; }
.estimate-device__keys > .estimate-device__equals { border-color: #a8f7d2; background: linear-gradient(#b8f5d9,#76d7ad); font-size: 20px; box-shadow: 0 3px 0 #3b9872, 0 5px 5px #0007, inset 0 1px 1px #d9ffeb; }
.estimate-device__zero { grid-column: span 2; }
.estimate-journey__start { position: relative; z-index: 1; display: grid; justify-items: center; gap: 12px; }
.estimate-journey__start-link { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 46px; padding: 11px 23px; border-radius: 8px; background: #087b48; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; transition: background .2s, box-shadow .2s; }
.estimate-journey__start-link:hover { background: #06633a; box-shadow: 0 5px 20px #087b4830; }
.estimate-journey__scroll-hint { display: none; align-items: center; gap: 10px; color: #648173; font-size: 11px; }
.estimate-journey__reveal { position: relative; }
.estimate-journey__reveal .setup-estimate__layout { max-width: 1320px; grid-template-columns: minmax(0,.8fr) minmax(0,1.35fr); }
.setup-estimate .setup-estimate__intro > h3 { margin: 14px 0 20px; font-size: clamp(26px,2.8vw,36px); letter-spacing: -.025em; }
.setup-estimate__intro > h3 span { color: #087b48; }
.estimate-journey__reveal .setup-estimate__guide ul { display: none; }
.estimate-journey__reveal .setup-estimate__guide { margin-top: 20px; }
.estimate-journey__reveal .setup-estimate__card { border-radius: 20px; box-shadow: 0 16px 50px -26px #0824362b; }
.estimate-journey__reveal .setup-estimate__choices label { transition: border-color .2s, background .2s, box-shadow .2s; }
.estimate-journey__reveal .setup-estimate__choices label:hover { border-color: #12844d; box-shadow: 0 0 0 1px #12844d; }
.estimate-journey__reveal .setup-estimate__primary { background: #087b48; transition: background .2s, box-shadow .2s; }
.estimate-journey__reveal .setup-estimate__primary:hover { background: #06633a; box-shadow: 0 4px 15px #087b4826; }
.estimate-journey__reveal .setup-estimate__fields input:focus,
.estimate-journey__reveal .setup-estimate__fields select:focus { border-color: #12844d; }

/* The sticky story is enabled only when the form fits comfortably in the viewport. */
.setup-estimate.is-scroll-enabled { padding: 0; }
.is-scroll-enabled .estimate-journey__track { height: calc(200svh - 84px); }
.is-scroll-enabled .estimate-journey__stage { position: sticky; top: 84px; height: calc(100svh - 84px); overflow: clip; }
.is-scroll-enabled .estimate-journey__teaser { position: absolute; inset: 0; grid-template-rows: auto minmax(0,1fr) auto; align-content: center; gap: 14px; margin: 0; padding: 24px 0; pointer-events: auto; }
.is-scroll-enabled .estimate-journey__intro { opacity: var(--journey-copy-opacity,1); transform: translateY(var(--journey-copy-y,0px)); }
.is-scroll-enabled .estimate-journey__start { opacity: var(--journey-start-opacity,1); transform: translateY(var(--journey-start-y,0px)); }
.is-scroll-enabled .estimate-journey__visual { opacity: var(--journey-device-opacity,1); }
.is-scroll-enabled .estimate-device { transform: perspective(900px) rotateX(var(--journey-tilt,8deg)) rotateZ(var(--journey-rotation,-5deg)) scale(var(--journey-scale,1)); }
.is-scroll-enabled .estimate-journey__reveal { position: absolute; inset: 0; display: grid; align-items: center; padding-block: 22px; opacity: var(--journey-form-opacity,0); transform: translateY(var(--journey-form-y,35px)) scale(var(--journey-form-scale,.96)); pointer-events: none; }
.is-scroll-enabled .estimate-journey__scroll-hint { display: flex; }
.is-scroll-enabled.is-form-ready .estimate-journey__teaser { visibility: hidden; pointer-events: none; }
.is-scroll-enabled.is-form-ready .estimate-journey__reveal { pointer-events: auto; }
.is-scroll-enabled.is-form-ready .estimate-journey__stage { overflow: visible; }
.is-scroll-enabled.is-form-overflowing .setup-estimate__card { max-height: calc(100svh - 128px); overflow-y: auto; overscroll-behavior: auto; scrollbar-width: thin; }
.is-scroll-enabled .setup-estimate__card { padding: 24px; }
.is-scroll-enabled .setup-estimate__fields { gap: 14px; }
.is-scroll-enabled .setup-estimate__card > h3 { margin-bottom: 16px; }
.is-scroll-enabled .setup-estimate__progress { margin-bottom: 18px; padding-bottom: 14px; }
.is-scroll-enabled .setup-estimate__note { margin-top: 12px; }
.setup-estimate.is-returned .estimate-journey__teaser { display: none; }
[dir="rtl"] .estimate-journey__start .fa-arrow-right { transform: rotate(180deg); }
.estimate-device { direction: ltr; }

@media (max-width: 1023px), (max-height: 599px) {
  .estimate-journey__teaser { gap: 28px; }
  .estimate-journey__visual { padding-block: 18px; }
  .estimate-journey__visual::before { width: 280px; height: 280px; box-shadow: 0 0 0 24px #f5f7f8,0 0 0 25px #dceae2; }
}
@media (max-width: 760px) {
  .estimate-journey__reveal .setup-estimate__layout { grid-template-columns: minmax(0,1fr); }
  .estimate-journey__reveal .setup-estimate__overview { max-width: 520px; }
}
@media (max-width: 480px) {
  .estimate-journey__intro > p:last-child { font-size: 14px; }
  .estimate-device { width: 218px; padding: 14px 15px 19px; }
  .estimate-device__keys { gap: 8px; }
  .estimate-device__keys > span { height: 28px; }
  .estimate-journey__reveal .setup-estimate__guide { margin-top: 8px; }
  .estimate-journey__teaser { margin-bottom: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .estimate-device { transform: none; will-change: auto; }
  .estimate-journey__start-link,
  .estimate-journey__reveal .setup-estimate__choices label,
  .estimate-journey__reveal .setup-estimate__primary { transition: none; }
}
