/* Shared interface frame and inquiry form styling. */
.home-console {
  --panel-line: #a7bece;
  --panel-edge: #d0dce5;
  --panel-shadow: drop-shadow(0 5px 7px #20355a1a);
  --housing-cut: 18px;
  position: relative;
  isolation: isolate;
}

.home-console__frame {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  filter: drop-shadow(0 7px 12px #20355a14);
}

.home-console__frame::before,
.home-console__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(
    0 0, calc(100% - var(--housing-cut)) 0, 100% var(--housing-cut),
    100% 100%, var(--housing-cut) 100%, 0 calc(100% - var(--housing-cut))
  );
}

.home-console__frame::before {
  background: var(--panel-edge);
  clip-path: polygon(evenodd,
    0 0, calc(100% - var(--housing-cut)) 0, 100% var(--housing-cut),
    100% 100%, var(--housing-cut) 100%, 0 calc(100% - var(--housing-cut)), 0 0,
    1px 1px, calc(100% - var(--housing-cut) - .4px) 1px,
    calc(100% - 1px) calc(var(--housing-cut) + .4px),
    calc(100% - 1px) calc(100% - 1px),
    calc(var(--housing-cut) + .4px) calc(100% - 1px),
    1px calc(100% - var(--housing-cut) - .4px), 1px 1px
  );
}

.home-console__frame::after {
  --housing-cut: 17px;
  inset: 1px;
  border: 2px solid #fff;
  background: #fff;
}

.home-console__trim {
  position: absolute;
  inset: 7px;
  pointer-events: none;
  background:
    linear-gradient(var(--panel-line), var(--panel-line)) top left / 15px 1px no-repeat,
    linear-gradient(var(--panel-line), var(--panel-line)) top left / 1px 12px no-repeat,
    linear-gradient(var(--panel-line), var(--panel-line)) bottom right / 15px 1px no-repeat,
    linear-gradient(var(--panel-line), var(--panel-line)) bottom right / 1px 12px no-repeat,
    linear-gradient(#b7c8d755, #b7c8d755) 0 28px / 1px calc(100% - 55px) no-repeat,
    linear-gradient(#b7c8d755, #b7c8d755) 100% 20px / 1px calc(100% - 45px) no-repeat,
    linear-gradient(#389892, #6fbfbb) 0 26% / 2px 22px no-repeat,
    linear-gradient(#389892, #6fbfbb) 100% 65% / 2px 28px no-repeat,
    repeating-linear-gradient(90deg, #b4c2cf 0 3px, transparent 3px 7px) bottom center / 39px 3px no-repeat;
}

.service-brief.home-console#project-inquiry {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.service-brief.home-console#project-inquiry > .service-form-intro {
  padding-block-end: clamp(12px, 1.5vw, 18px);
  border-block-end: 1px solid var(--panel-edge);
}
