#calculator.gspc {
  --gspc-ink: #141414;
  --gspc-muted: #545454;
  --gspc-line: #d6d5d4;
  --gspc-yellow: #ffcc00;
  --gspc-active: #fff7d9;
  --gspc-control: #fcfcfc;
  position: relative;
  isolation: isolate;
  padding: 24px 0 20px;
  background: radial-gradient(ellipse at 68% 4%, #faf8f5 0, transparent 64%), linear-gradient(#f6f4f2, #f4f4f4);
  color: var(--gspc-ink);
  color-scheme: light;
  font-size: 15px;
  line-height: 1.32;
}

#calculator.gspc *, #calculator.gspc *::before, #calculator.gspc *::after {
  box-sizing: border-box;
}

.gspc svg {
  display: block;
  flex: none;
}

.gspc-shell {
  width: min(calc(100% - 84px), 1448px);
  margin-inline: auto;
}

.gspc-header {
  position: relative;
  isolation: isolate;
  min-height: 154px;
  padding: 4px 45px 30px;
}

.gspc-header::before {
  position: absolute;
  top: 10px;
  left: 1px;
  width: 15px;
  height: 84px;
  background: #ffe47d;
  transform: skewX(-29deg);
  content: "";
}

.gspc-blueprint {
  position: absolute;
  z-index: -1;
  right: max(-42px, calc((1448px - 100vw) / 2));
  width: min(42%, 560px);
  height: 174px;
  bottom: 0;
  pointer-events: none;
}

.gspc-kicker {
  display: inline-block;
  margin-left: 9px;
  padding: 5px 20px;
  transform: skewX(-19deg);
  background: var(--gspc-yellow);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.gspc-kicker span {
  display: block;
  transform: skewX(19deg);
}

.gspc-header h2 {
  margin: 9px 0 5px;
  color: var(--gspc-ink);
  font-size: clamp(29px, 3.1vw, 41px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.13;
}

.gspc-header p {
  margin: 0;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 400;
  letter-spacing: -.023em;
}

.gspc-card {
  display: grid;
  grid-template-columns: minmax(0, 1.075fr) minmax(0, 1fr);
  gap: 19px;
  margin: 0;
  padding: 24px 24px 26px 36px;
  border: 1px solid #e6e4e1;
  border-radius: 24px;
  background: linear-gradient(132deg, #fff, #fdfdfd 60%, #fafafa);
  box-shadow: 0 12px 26px #30291d18, 0 2px 4px #30291d0a;
}

.gspc-parameters, .gspc-result {
  min-width: 0;
}

.gspc-parameters {
  display: grid;
  align-content: space-between;
  gap: 23px;
}

.gspc-result {
  display: flex;
  flex-direction: column;
  padding-left: 21px;
  border-left: 1px solid #e8e7e6;
}

.gspc-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.gspc-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  padding: 0;
  color: var(--gspc-ink);
  font-size: clamp(17px, 1.45vw, 20px);
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: 1.14;
}

.gspc-heading svg {
  width: 27px;
  height: 27px;
}

.gspc-dimensions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-inline: 4px;
}

.gspc-dimension label, .gspc-contact-fields label > span {
  display: block;
  margin: 0 0 5px 13px;
  font-weight: 500;
}

.gspc-stepper {
  display: flex;
  min-width: 0;
  height: 51px;
  border: 1px solid var(--gspc-line);
  border-radius: 11px;
  background: var(--gspc-control);
  box-shadow: inset 0 1px 2px #00000004;
}

.gspc-stepper input, .gspc-contact-fields input, .gspc-contact-fields textarea, .gspc-select select, .gspc button {
  margin: 0;
  color: var(--gspc-ink);
  font: inherit;
}

.gspc-stepper input {
  appearance: textfield;
  width: 100%;
  min-width: 0;
  padding: 0 0 0 18px;
  border: 0;
  border-radius: inherit;
  outline: 0;
  background: none;
  font-size: 23px;
  line-height: inherit;
}

.gspc-stepper input::-webkit-inner-spin-button, .gspc-stepper input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.gspc-stepper:focus-within, .gspc-color:focus-within,
.gspc-contact-fields :is(input, textarea):focus {
  border-color: #b28e00;
  box-shadow: 0 0 0 2px #ffd10044;
}

.gspc-stepper-controls {
  display: grid;
  align-content: center;
  padding-right: 7px;
}

.gspc-stepper-controls button {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 21px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #555;
  cursor: pointer;
}

.gspc-stepper-controls button:hover {
  background: var(--gspc-active);
}

.gspc-stepper-controls svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.6;
}

.gspc-building-types, .gspc-roof-types {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.gspc-roof-types {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gspc-choice {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.gspc-radio {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.gspc-tile {
  position: relative;
  display: flex;
  min-height: 108px;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 4px 10px;
  border: 1px solid var(--gspc-line);
  border-radius: 13px;
  background: var(--gspc-control);
  color: var(--gspc-ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.gspc-tile-label > span {
  display: block;
}

.gspc-tile-icon {
  width: 44px;
  height: 37px;
}

.gspc-choice:hover .gspc-tile, .gspc-gate-options label:hover span, .gspc-services label:hover {
  background: #fffbed;
}

.gspc-radio:checked + .gspc-tile, .gspc-gate-options .gspc-radio:checked + span {
  z-index: 1;
  border-color: #ebbf00;
  box-shadow: inset 0 0 0 1px #ffcf0040;
  background: linear-gradient(135deg, #fff9e5, var(--gspc-active));
  font-weight: 700;
}

.gspc-building-types .gspc-radio:checked + .gspc-tile {
  font-size: inherit;
}

.gspc-radio:focus-visible + span, .gspc :is(button, a, input[type="checkbox"]):focus-visible {
  outline: 2px solid #9c7900;
  outline-offset: 2px;
}

.gspc-selected-mark {
  position: absolute;
  top: 5px;
  right: 5px;
  display: none;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 1px solid #e6b900;
  border-radius: 50%;
  background: var(--gspc-yellow);
}

.gspc-radio:checked + .gspc-tile .gspc-selected-mark {
  display: grid;
}

.gspc-selected-mark svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.8;
}

.gspc-openings {
  display: grid;
  grid-template-columns: minmax(0, .77fr) minmax(0, 1.27fr);
  column-gap: 24px;
}

.gspc-openings > .gspc-group:last-child {
  position: relative;
  padding-left: 24px;
}

.gspc-openings > .gspc-group:last-child::before {
  position: absolute;
  inset: -37px auto 0 0;
  width: 1px;
  background: #eeedeb;
  content: "";
}

.gspc-openings .gspc-group:last-child .gspc-heading svg {
  width: 35px;
}

.gspc-gate-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 8px;
  border: 1px solid var(--gspc-line);
  border-radius: 10px;
  background: var(--gspc-control);
  color: var(--gspc-ink);
  text-align: center;
}

.gspc-gate-options .gspc-choice + .gspc-choice {
  border-left: 1px solid #e4e3e2;
}

.gspc-gate-options .gspc-choice > span {
  display: grid;
  position: relative;
  min-height: 47px;
  margin: -1px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 600;
}

.gspc-roof-types .gspc-tile {
  min-height: 82px;
  gap: 1px;
  padding-top: 5px;
  font-size: 14px;
}

.gspc-roof-types .gspc-tile-icon {
  width: 46px;
  height: 35px;
  margin-top: -4px;
}

.gspc-services, .gspc-colors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 26px;
}

.gspc-services label, .gspc-color {
  display: flex;
  min-width: 0;
  min-height: 41px;
  align-items: center;
  gap: 15px;
  padding: 5px 17px;
  border: 1px solid var(--gspc-line);
  border-radius: 9px;
  background: var(--gspc-control);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.gspc input[type="checkbox"] {
  display: grid;
  width: 19px;
  height: 19px;
  flex: none;
  margin: 0;
  appearance: none;
  place-items: center;
  border: 1px solid #aaa8a6;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.gspc input[type="checkbox"]:checked {
  border-color: #ebbe00;
  background: var(--gspc-yellow);
}

.gspc input[type="checkbox"]:checked::after {
  width: 11px;
  height: 7px;
  border: solid #101010;
  border-width: 0 0 2px 2px;
  transform: translateY(-1px) rotate(-45deg);
  content: "";
}

.gspc-color {
  display: grid;
  grid-template-columns: minmax(0, var(--gspc-color-label, .78fr)) minmax(0, var(--gspc-color-option, 1.22fr));
  gap: 8px;
  padding: 0 12px 0 15px;
  line-height: 1.1;
}

.gspc-color:nth-child(even) {
  --gspc-color-label: .64fr;
  --gspc-color-option: 1.36fr;
}

.gspc-select {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 40px;
  align-items: center;
}

.gspc-swatch {
  position: absolute;
  left: 0;
  width: 30px;
  height: 23px;
  border: 1px solid #00000016;
  border-radius: 5px;
  background: var(--gspc-swatch);
  pointer-events: none;
}

.gspc-select select {
  z-index: 1;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0 22px 0 43px;
  appearance: none;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  cursor: pointer;
}

.gspc-select-arrow {
  position: absolute;
  right: 0;
  width: 19px;
  height: 19px;
  stroke-width: 2;
  pointer-events: none;
}

.gspc-preview {
  position: relative;
  display: grid;
  min-height: 215px;
  aspect-ratio: 2.08;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #e4e4e1;
  border-radius: 10px;
  background: #eeece8;
}

.gspc-preview-fallback {
  align-self: center;
  margin: 0;
  padding: 16px;
  color: var(--gspc-muted);
  text-align: center;
}

.gspc-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 63px;
  margin-top: 9px;
  padding: 7px 22px 7px 31px;
  border-radius: 10px;
  background: linear-gradient(115deg, #f1f1f1, #eaeaea);
}

.gspc-summary span {
  display: block;
  margin-bottom: 1px;
  color: #323232;
  font-size: 14px;
}

.gspc-summary strong {
  display: block;
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.14;
}

.gspc-summary-area {
  display: flex;
  min-width: 150px;
  align-items: center;
  gap: 10px;
  padding-left: 27px;
  border-left: 1px solid #c9c8c6;
}

.gspc-summary-area strong {
  font-size: 18px;
}

.gspc-summary-area svg {
  width: 39px;
  height: 39px;
  stroke-width: 1.1;
}

.gspc-contacts {
  margin: 16px 0 0;
}

.gspc-contacts .gspc-heading {
  gap: 12px;
  margin-bottom: 12px;
  padding-left: 6px;
}

.gspc-contact-fields {
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  gap: 10px 16px;
}

.gspc-contact-fields label {
  grid-column: span 5;
  min-width: 0;
  margin: 0;
}

.gspc-contact-fields .gspc-email {
  grid-column: span 6;
}

.gspc-contact-fields .gspc-message {
  grid-column: span 9;
}

.gspc-contact-fields label > span {
  margin: 0 0 3px 8px;
  font-size: 14px;
  line-height: 1.2;
}

.gspc-contact-fields input, .gspc-contact-fields textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 15px;
  appearance: none;
  border: 1px solid var(--gspc-line);
  border-radius: 8px;
  outline: 0;
  background: var(--gspc-control);
  box-shadow: inset 0 1px 2px #00000004;
  font-size: 15px;
}

.gspc-contact-fields textarea {
  height: 40px;
  resize: vertical;
}

.gspc-contact-fields :is(input, textarea)::placeholder {
  color: #686868;
  opacity: 1;
}

.gspc-required {
  color: #bb212a;
}

.gspc-consent {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 19px 0 19px 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.gspc-consent input[type="checkbox"] {
  width: 23px;
  height: 23px;
}

.gspc-consent a, .gspc-full-link span {
  color: var(--gspc-ink);
  text-decoration: underline;
  text-decoration-color: #dbc334;
  text-underline-offset: 4px;
}

.gspc-consent a:hover, .gspc-full-link:hover span {
  text-decoration-color: currentColor;
}

.gspc button.gspc-submit {
  display: flex;
  width: 100%;
  min-height: 55px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 11px 15px;
  border: 1px solid #f5c500;
  border-radius: 17px;
  background: linear-gradient(97deg, #ffc900, #ffcd00);
  font-size: clamp(16px, 1.45vw, 21px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
}

.gspc button.gspc-submit:hover {
  background: #f4c000;
}

.gspc button.gspc-submit:disabled {
  opacity: .65;
  cursor: wait;
}

.gspc-submit svg, .gspc-full-link svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.gspc-full-link {
  display: flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 13px auto 0;
  color: var(--gspc-ink);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.gspc-response {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 19px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid #dedddb;
  color: var(--gspc-muted);
  text-align: center;
}

.gspc-response svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.3;
}

.gspc-status {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 650;
  text-align: center;
}

.gspc-status:empty {
  margin: 0;
}

.gspc-status[data-state="error"] {
  color: #a8242b;
}

@media (max-width: 1250px) {
  .gspc-shell {
    width: calc(100% - 48px);
  }

  .gspc-blueprint {
    right: -24px;
  }

  .gspc-card {
    gap: 16px;
    padding: 22px;
  }

  .gspc-result {
    padding-left: 16px;
  }

  .gspc-dimensions, .gspc-services, .gspc-colors, .gspc-openings {
    column-gap: 14px;
  }

  .gspc-openings > .gspc-group:last-child {
    padding-left: 14px;
  }

  .gspc-swatch {
    width: 21px;
    height: 20px;
  }

  .gspc-select select {
    padding-left: 28px;
    font-size: 14px;
  }

  .gspc-contact-fields {
    column-gap: 9px;
  }

  .gspc-contact-fields :is(input, textarea) {
    padding-inline: 10px;
  }
}

@media (max-width: 1050px) {
  .gspc-shell {
    width: min(calc(100% - 48px), 760px);
  }

  .gspc-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 23px;
  }

  .gspc-result {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 600px) {
  #calculator.gspc {
    padding: 20px 0;
  }

  .gspc-shell {
    width: calc(100% - 24px);
  }

  .gspc-header {
    min-height: 0;
    padding: 2px 5px 20px 17px;
  }

  .gspc-header::before {
    top: 3px;
    left: 1px;
    width: 7px;
    height: 46px;
  }

  .gspc-kicker {
    margin-left: 3px;
    padding: 4px 12px;
    font-size: 14px;
  }

  .gspc-blueprint {
    right: -12px;
    width: 60%;
    height: auto;
    opacity: .5;
  }

  .gspc-header h2 {
    margin: 8px 0 5px;
    font-size: clamp(25px, 6.6vw, 35px);
  }

  .gspc-header p {
    font-size: 15px;
  }

  .gspc-card {
    gap: 20px;
    padding: 15px 12px 16px;
    border-radius: 16px;
  }

  .gspc-parameters {
    gap: 19px;
  }

  .gspc-heading {
    gap: 8px;
    margin-bottom: 10px;
    font-size: 17px;
  }

  .gspc-heading svg {
    width: 23px;
    height: 23px;
  }

  .gspc-dimensions {
    gap: 7px;
    padding: 0;
  }

  .gspc-dimension label {
    margin-left: 4px;
    font-size: 14px;
  }

  .gspc-stepper {
    height: 43px;
    border-radius: 8px;
  }

  .gspc-stepper input {
    padding-left: 7px;
    font-size: 17px;
  }

  .gspc-stepper-controls {
    padding-right: 1px;
  }

  .gspc-stepper-controls button {
    min-width: 23px;
    height: 20px;
  }

  .gspc-building-types {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .gspc-tile {
    min-height: 82px;
    border-radius: 9px;
    font-size: 14px;
  }

  .gspc-tile-icon {
    width: 36px;
    height: 30px;
  }

  .gspc-building-types .gspc-radio:checked + .gspc-tile {
    font-size: 14px;
  }

  .gspc-openings {
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
  }

  .gspc-openings > .gspc-group:last-child {
    padding-left: 0;
  }

  .gspc-openings > .gspc-group:last-child::before {
    display: none;
  }

  .gspc-gate-options {
    margin-top: 0;
  }

  .gspc-gate-options .gspc-choice > span {
    min-height: 42px;
  }

  .gspc-services, .gspc-colors {
    gap: 6px;
  }

  .gspc-services label {
    min-height: 44px;
    gap: 8px;
    padding: 4px 6px;
    line-height: 1.15;
  }

  .gspc-color {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 5px 8px 0;
  }

  .gspc-select {
    min-height: 34px;
  }

  .gspc-select select {
    min-height: 34px;
    font-size: 16px;
  }

  .gspc-preview {
    min-height: 150px;
    aspect-ratio: 1.8;
  }

  .gspc-summary {
    min-height: 57px;
    gap: 7px;
    padding: 6px 9px;
  }

  .gspc-summary strong, .gspc-summary-area strong {
    font-size: 16px;
  }

  .gspc-summary-area {
    min-width: 0;
    gap: 5px;
    padding-left: 8px;
  }

  .gspc-summary-area svg {
    width: 25px;
    height: 25px;
  }

  .gspc-contacts .gspc-heading {
    gap: 8px;
    padding-left: 0;
  }

  .gspc-contact-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .gspc-contact-fields label, .gspc-contact-fields .gspc-email {
    grid-column: span 1;
  }

  .gspc-contact-fields .gspc-message {
    grid-column: 1 / -1;
  }

  .gspc-contact-fields label > span {
    margin-left: 3px;
  }

  .gspc-contact-fields :is(input, textarea) {
    font-size: 16px;
  }

  .gspc-consent {
    margin: 13px 0;
  }

  .gspc-full-link {
    font-size: 14px;
  }

  .gspc-response {
    margin-top: 13px;
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  .gspc-building-types, .gspc-roof-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gspc-roof-types .gspc-choice:first-child {
    grid-column: 1 / -1;
  }
}

@media (forced-colors: active) {
  .gspc-radio:checked + span, .gspc input[type="checkbox"]:checked {
    border: 2px solid Highlight;
  }
}