.ascot-tool-callout,
.ascot-tool {
  --tool-ink: #0f4e6f;
  --tool-deep: #07364e;
  --tool-mint: #4abca2;
  --tool-paper: #f5f4ef;
  --tool-line: #d8e4e4;
  box-sizing: border-box;
}

.ascot-tool-callout *,
.ascot-tool *,
.ascot-tool-callout *::before,
.ascot-tool *::before,
.ascot-tool-callout *::after,
.ascot-tool *::after { box-sizing: border-box; }

.ascot-tool-callout {
  background: var(--tool-deep);
  color: #fff;
  padding: 34px 0;
}

.ascot-tool-callout__inner {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.ascot-tool-callout h2 {
  color: #fff !important;
  font-size: clamp(24px, 3vw, 35px) !important;
  font-weight: 300 !important;
  line-height: 1.16 !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
}

.ascot-tool-callout p:not(.ascot-tool-kicker) {
  color: rgba(255, 255, 255, .82) !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  margin: 0 !important;
  max-width: 760px;
  padding: 0 !important;
}

.ascot-tool-callout__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.ascot-tool-callout__steps li { align-items: center; color: rgba(255,255,255,.9); display: flex; font-size: 12px; gap: 7px; }
.ascot-tool-callout__steps span { align-items: center; background: rgba(74,188,162,.18); border: 1px solid rgba(116,222,199,.45); border-radius: 50%; color: #84e3ce; display: inline-flex; font-weight: 700; height: 24px; justify-content: center; width: 24px; }

.ascot-tool-callout .landing-button {
  background: var(--tool-mint);
  border-color: var(--tool-mint);
  color: #052d3f;
  cursor: pointer;
  white-space: nowrap;
}

.ascot-tool-kicker {
  color: var(--tool-mint) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .15em;
  line-height: 1.3 !important;
  margin: 0 0 9px !important;
  padding: 0 !important;
  text-transform: uppercase;
}

.ascot-tool__dialog > .ascot-tool-kicker { color: #17684f !important; }

.ascot-tool[hidden] { display: none !important; }

.ascot-tool--modal {
  align-items: flex-start;
  display: flex;
  inset: 0;
  justify-content: center;
  overflow: auto;
  padding: clamp(18px, 5vh, 54px) 18px;
  position: fixed;
  z-index: 10020;
}

.ascot-tool__backdrop {
  background: rgba(5, 31, 43, .76);
  border: 0;
  cursor: default;
  inset: 0;
  padding: 0;
  position: fixed;
}

.ascot-tool__dialog {
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 28px 80px rgba(4, 29, 42, .32);
  color: #334a55;
  margin: auto;
  max-width: 960px;
  padding: clamp(28px, 5vw, 54px);
  position: relative;
  width: 100%;
  view-transition-name: ascot-tool-dialog;
}

.ascot-tool--inline {
  background: #eef5f4;
  padding: 0 28px 74px;
}

.ascot-tool--inline .ascot-tool__dialog {
  box-shadow: 0 16px 54px rgba(7, 54, 78, .1);
  margin: 0 auto;
  max-width: 1064px;
}

.ascot-tool__dialog h2 {
  color: var(--tool-deep) !important;
  font-size: clamp(28px, 4vw, 42px) !important;
  font-weight: 300 !important;
  letter-spacing: -.025em;
  line-height: 1.1 !important;
  margin: 0 42px 14px 0 !important;
  padding: 0 !important;
}

.ascot-tool__intro {
  color: #52656d !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  margin: 0 0 28px !important;
  max-width: 690px;
  padding: 0 !important;
}

.ascot-tool__close {
  align-items: center;
  background: #edf4f3;
  border: 0;
  border-radius: 50%;
  color: var(--tool-deep);
  cursor: pointer;
  display: flex;
  font-size: 26px;
  height: 44px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 44px;
}

.ascot-tool__form label {
  color: var(--tool-deep);
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.ascot-tool__address-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.ascot-tool__address-field {
  min-width: 0;
  position: relative;
}

.ascot-tool__address-row input {
  background: #fff;
  border: 1px solid #b9cbce;
  border-radius: 4px;
  color: #173e50;
  font: inherit;
  font-size: 16px;
  min-height: 50px;
  min-width: 0;
  padding: 12px 14px;
  width: 100%;
}

.ascot-tool__address-row input[type="search"] { appearance: none; }
.ascot-tool__address-row input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }

.ascot-tool__address-row input:focus,
.ascot-tool button:focus-visible,
.ascot-tool a:focus-visible,
.ascot-tool-callout button:focus-visible {
  box-shadow: 0 0 0 4px rgba(74, 188, 162, .27);
  outline: 2px solid var(--tool-deep);
  outline-offset: 2px;
}

.ascot-tool__address-row .landing-button {
  background: var(--tool-ink);
  color: #fff;
  cursor: pointer;
}

.ascot-tool__address-row button[disabled] { cursor: wait; opacity: .65; }

.ascot-tool__suggestions {
  background: #fff;
  border: 1px solid #a9c1c5;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 14px 32px rgba(7, 54, 78, .16);
  left: 0;
  max-height: 240px;
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: calc(100% - 1px);
  z-index: 8;
}

.ascot-tool__suggestions[hidden] { display: none; }

.ascot-tool__suggestion {
  align-items: flex-start;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #e1eaea;
  color: var(--tool-deep);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 14px;
  gap: 10px;
  line-height: 1.35;
  padding: 12px 14px;
  text-align: left;
  width: 100%;
}

.ascot-tool__suggestion::before {
  color: var(--tool-mint);
  content: '\2022';
  font-size: 20px;
  line-height: 14px;
}

.ascot-tool__suggestion:last-child { border-bottom: 0; }
.ascot-tool__suggestion:hover,
.ascot-tool__suggestion.is-active { background: #eef7f5; }

.ascot-tool__map-choice {
  align-items: baseline;
  color: #60747c;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 6px;
  margin-top: 16px;
}

.ascot-tool__map-choice button {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--tool-ink);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  min-height: 44px;
  padding: 8px 0;
}

.ascot-tool__map-panel {
  background: #f4f8f7;
  border: 1px solid #c8dada;
  border-radius: 5px;
  margin-top: 18px;
  padding: 16px;
}

.ascot-tool__map-panel[hidden] { display: none; }

.ascot-tool__map-heading {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ascot-tool__map-heading h3 {
  color: var(--tool-deep) !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
}

.ascot-tool__map-heading p,
.parcel-map-status {
  color: #5c7078 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.parcel-map-layer-status {
  background: #e6eeed;
  border-radius: 100px;
  color: #53686f;
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 1.35;
  max-width: 290px;
  padding: 7px 10px;
}

.parcel-map-layer-status.is-active {
  background: #d8f1e9;
  color: #17684f;
}

.ascot-tool__map {
  background: #dbe6e5;
  border: 1px solid #b9cdce;
  height: 380px;
  width: 100%;
}

.parcel-map-status { margin-top: 10px !important; min-height: 19px; }
.parcel-map-status.is-error { color: #9a3f37 !important; }
.parcel-map-status.is-selected { color: #17684f !important; font-weight: 700; }

.ascot-tool__help,
.ascot-tool__legal {
  color: #52666e !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  margin: 9px 0 0 !important;
  padding: 0 !important;
}

.ascot-tool__legal {
  border-top: 1px solid var(--tool-line);
  margin-top: 26px !important;
  padding-top: 16px !important;
}

.ascot-tool__status {
  color: var(--tool-ink);
  font-size: 14px;
  min-height: 20px;
  padding-top: 16px;
}

.ascot-tool__status.is-error { color: #8c2f2f; }
.ascot-tool__status.is-busy { align-items: center; display: flex; gap: 10px; }
.ascot-tool__status.is-busy::before { animation: ascot-tool-spin .8s linear infinite; border: 2px solid #cfe0de; border-radius: 50%; border-top-color: var(--tool-mint); content: ''; flex: 0 0 17px; height: 17px; width: 17px; }
@keyframes ascot-tool-spin { to { transform: rotate(360deg); } }

.ascot-tool__result { border-top: 1px solid var(--tool-line); margin-top: 8px; padding-top: 24px; }

.ascot-tool__result-head {
  background: var(--tool-paper);
  border-left: 5px solid #d4a448;
  border-radius: 3px;
  padding: 20px;
}

.ascot-tool__result-head.is-high,
.ascot-tool__result-head.is-red { border-left-color: #b34b42; }
.ascot-tool__result-head.is-orange { border-left-color: #c77d2b; }
.ascot-tool__result-head.is-clear,
.ascot-tool__result-head.is-yellow-green { border-left-color: #9a9f36; }

.ascot-tool__result-head h3 {
  color: var(--tool-deep) !important;
  font-size: 22px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  margin: 8px 0 !important;
  padding: 0 !important;
}

.ascot-tool__result-head p { color: #51666f !important; line-height: 1.55 !important; margin: 0 !important; padding: 0 !important; }

.ascot-tool__assessments {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}
.ascot-tool__assessment { background: #fff; border: 1px solid var(--tool-line); border-radius: 3px; padding: 13px 14px; }
.ascot-tool__assessment strong { color: var(--tool-deep); display: block; font-size: 13px; line-height: 1.4; }
.ascot-tool__assessment p { font-size: 12px !important; margin-top: 6px !important; }

.ascot-tool__score { margin-top: 18px; }
.ascot-tool__score-label { align-items: baseline; color: var(--tool-deep); display: flex; gap: 10px; justify-content: space-between; }
.ascot-tool__score-label strong { font-size: 14px; }
.ascot-tool__score-label span { color: #52666e; font-size: 11px; }
.ascot-tool__score-meter { background: #dfe8e7; border-radius: 100px; height: 9px; margin-top: 8px; overflow: hidden; }
.ascot-tool__score-meter span { background: #d4a448; display: block; height: 100%; min-width: 2px; }
.ascot-tool__score-meter span.is-high,
.ascot-tool__score-meter span.is-red { background: #b34b42; }
.ascot-tool__score-meter span.is-orange { background: #c77d2b; }
.ascot-tool__score-meter span.is-clear,
.ascot-tool__score-meter span.is-yellow-green { background: #9a9f36; }
.ascot-tool__score-note { color: #52666e !important; font-size: 11px !important; margin-top: 8px !important; }

.ascot-tool__badge {
  background: #e7efef;
  border-radius: 100px;
  color: #385b68;
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 6px 9px;
  text-transform: uppercase;
}

.ascot-tool__parcel {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 22px 0;
}

.ascot-tool__parcel div { border-bottom: 1px solid var(--tool-line); padding: 0 0 10px; }
.ascot-tool__parcel dt { color: #52666e; font-size: 11px; margin-bottom: 4px; text-transform: uppercase; }
.ascot-tool__parcel dd { color: var(--tool-deep); font-size: 14px; margin: 0; overflow-wrap: anywhere; }

.ascot-tool__checks { display: grid; gap: 12px; }

.ascot-tool__check { border: 1px solid var(--tool-line); border-radius: 4px; padding: 16px; }
.ascot-tool__check-head { align-items: center; display: flex; gap: 10px; justify-content: space-between; }
.ascot-tool__check-head .ascot-tool__badge { line-height: 1.35; max-width: 100%; }
.ascot-tool__check h4 { color: var(--tool-deep) !important; font-size: 16px !important; margin: 0 !important; padding: 0 !important; }
.ascot-tool__check p { color: #566b74 !important; font-size: 13px !important; line-height: 1.55 !important; margin: 9px 0 0 !important; padding: 0 !important; }
.ascot-tool__check ul { margin: 12px 0 0; padding-left: 19px; }
.ascot-tool__check li { color: #425d68; font-size: 13px; line-height: 1.5; margin: 5px 0; }
.ascot-tool__check a { color: var(--tool-ink); }

.ascot-tool__indicators { border-top: 1px solid var(--tool-line); display: grid; gap: 0; margin-top: 15px; }
.ascot-tool__indicator-overview { align-items: center; background: #f3f7f6; display: flex; gap: 14px; justify-content: space-between; margin-top: 14px; padding: 11px 12px; }
.ascot-tool__indicator-overview span { color: #526a73; font-size: 12px; line-height: 1.4; }
.ascot-tool__indicator-toggle { background: transparent; border: 0; border-bottom: 1px solid currentColor; color: var(--tool-ink); cursor: pointer; flex: 0 0 auto; font: inherit; font-size: 12px; font-weight: 700; min-height: 36px; padding: 6px 2px; }
.ascot-tool__indicator { border-bottom: 1px solid var(--tool-line); padding: 10px 0; }
.ascot-tool__indicator summary { align-items: baseline; color: var(--tool-deep); cursor: pointer; display: flex; gap: 12px; justify-content: space-between; list-style-position: outside; }
.ascot-tool__indicator summary strong { font-size: 13px; line-height: 1.4; }
.ascot-tool__indicator summary span { color: #52666e; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-align: right; text-transform: uppercase; }
.ascot-tool__indicator.is-hit summary span { color: #9a3f37; }
.ascot-tool__indicator.is-unavailable summary span { color: #8a6625; }
.ascot-tool__indicator.is-not-applicable { opacity: 1; }
.ascot-tool__indicator p { font-size: 12px !important; margin: 8px 0 2px 18px !important; }
.ascot-tool__check .ascot-tool__plan-outlook {
  background: #eaf2f2;
  border-radius: 999px;
  color: #345864;
  display: table;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  margin: 8px 0 0;
  padding: 5px 9px;
  text-transform: uppercase;
}
.ascot-tool__check .ascot-tool__plan-outlook.is-supportive { background: #e1f3ea; color: #246c51; }
.ascot-tool__check .ascot-tool__plan-outlook.is-caution { background: #fbefcf; color: #77551e; }
.ascot-tool__check .ascot-tool__plan-outlook.is-mixed { background: #edf0f6; color: #4e5f77; }
.ascot-tool__check .ascot-tool__plan-outlook.is-neutral { background: #edf4f3; color: #3f6769; }
.ascot-tool__check .ascot-tool__plan-interpretation {
  background: #f3f7f6;
  border-left: 3px solid #a8c9c1;
  color: #405e67 !important;
  margin: 8px 0 !important;
  padding: 8px 10px !important;
}
.ascot-tool__check .ascot-tool__plan-elements {
  border-left: 1px solid var(--tool-line);
  margin: 7px 0 10px 4px;
  padding-left: 18px;
}
.ascot-tool__check .ascot-tool__plan-elements li { margin: 3px 0; }

.ascot-tool__dot { background: #d4a448; border-radius: 50%; display: inline-block; flex: 0 0 10px; height: 10px; width: 10px; }
.ascot-tool__dot.is-high { background: #b34b42; }
.ascot-tool__dot.is-clear { background: #9a9f36; }
.ascot-tool__dot.is-unavailable { background: #7b858a; }
.ascot-tool__dot.is-pending { background: #d4a448; }

.ascot-tool__followup { align-items: center; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; margin-top: 24px; }
.ascot-tool__followup p { color: #52656d !important; font-size: 13px !important; line-height: 1.5 !important; margin: 0 !important; max-width: 430px; padding: 0 !important; }

body.ascot-tool-is-open { overflow: hidden; }

/* A transient recipient form, intentionally separate from tracked lead forms. */
.ascot-tool__share { margin-top: 20px; border: 1px solid var(--tool-line); border-radius: 4px; padding: 16px; }
.ascot-tool__share > summary { color: var(--tool-deep); cursor: pointer; font-size: 16px; font-weight: 700; min-height: 44px; line-height: 44px; }
.ascot-tool__share-form { display: grid; gap: 12px; min-width: 0; margin-top: 10px; }
.ascot-tool__share-form > label { color: var(--tool-deep); font-size: 14px; font-weight: 700; }
.ascot-tool__share-form > input[type="email"] { box-sizing: border-box; width: 100%; min-width: 0; min-height: 46px; padding: 10px; border: 1px solid var(--tool-line); border-radius: 3px; font: inherit; }
.ascot-tool__share-terms { display: flex; align-items: flex-start; gap: 10px; line-height: 1.6; }
.ascot-tool__share-terms input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; }
.ascot-tool__share-form a { color: var(--tool-ink); text-decoration: underline; }
.ascot-tool__share-notice, .ascot-tool__share-status { color: #52656d !important; font-size: 13px !important; line-height: 1.6 !important; margin: 0 !important; padding: 0 !important; overflow-wrap: anywhere; }
.ascot-tool__share-status { min-height: 22px; }
.ascot-tool__share-form .landing-button { justify-self: start; white-space: normal; }
.ascot-tool__share-form :focus-visible, .ascot-tool__share > summary:focus-visible { outline: 3px solid #a66a23; outline-offset: 3px; }
.ascot-tool__share-form button:disabled { opacity: .65; cursor: default; }

::view-transition-old(ascot-tool-dialog) { animation: ascot-tool-out .16s ease both; }
::view-transition-new(ascot-tool-dialog) { animation: ascot-tool-in .22s cubic-bezier(.2,.8,.2,1) both; }
@keyframes ascot-tool-in { from { opacity: 0; transform: translateY(18px) scale(.985); } }
@keyframes ascot-tool-out { to { opacity: 0; transform: translateY(8px) scale(.99); } }

@media (hover: hover) and (pointer: fine) {
  .ascot-tool__suggestion:hover { background: #eef7f5; }
  .ascot-tool__close:hover { background: #dcebe8; transform: rotate(4deg); }
  .ascot-tool__indicator-toggle:hover { color: #17684f; }
}

@media (max-width: 720px) {
  .ascot-tool-callout__inner,
  .ascot-tool__address-row { grid-template-columns: 1fr; }
  .ascot-tool-callout .landing-button,
  .ascot-tool__address-row .landing-button { justify-content: center; width: 100%; }
  .ascot-tool--modal { padding: 0; }
  .ascot-tool--modal .ascot-tool__dialog { border-radius: 0; min-height: 100%; padding: 30px 20px; }
  .ascot-tool--inline { padding: 0 14px 50px; }
  .ascot-tool--inline .ascot-tool__dialog { padding: 30px 20px; }
  .ascot-tool__parcel { grid-template-columns: 1fr; }
  .ascot-tool__assessments { grid-template-columns: 1fr; }
  .ascot-tool__check-head,
  .ascot-tool__score-label { align-items: flex-start; flex-direction: column; }
  .ascot-tool__indicator summary { align-items: flex-start; flex-direction: column; gap: 3px; }
  .ascot-tool__indicator summary span { text-align: left; }
  .ascot-tool__map-heading { display: block; }
  .parcel-map-layer-status { display: inline-block; margin-top: 10px; max-width: none; }
  .ascot-tool__map { height: 330px; }
}

@media (prefers-reduced-motion: reduce) {
  .ascot-tool *, .ascot-tool-callout * { scroll-behavior: auto !important; transition: none !important; }
  .ascot-tool__status.is-busy::before { animation: none; }
  ::view-transition-old(ascot-tool-dialog), ::view-transition-new(ascot-tool-dialog) { animation: none; }
}
