#quote-tool {
  background: var(--ltblue);
  padding: 2rem;
  margin: 3rem auto;
  color: white;
  border-radius: 5px;
}

.quote-tool-disclaimer a {
  color: white;
  text-decoration: underline;
}

#quote-tool .main-quote-title {
  font-size: 40px;
  margin-bottom: 1rem;
}

#quote-tool #field_54_26 .container-fluid,
#quote-tool #field_54_26 .container,
#quote-tool #field_61_26 .container-fluid,
#quote-tool #field_61_26 .container {
  padding-left: 0;
  padding-right: 0;
}

#quote-tool #field_54_10 h2,
#quote-tool #field_61_10 h2 {
  font-size: 35px;
}

#quote-tool .text-step {
  color: white;
  font-size: 40px;
}

#quote-tool .steps-nav .btns-container {
  display: flex;
  margin-bottom: 1rem;
  margin-left: 34%;
  justify-content: space-between;
  margin-top: 2rem;
  position: relative;
}

#quote-tool .btns-container .line {
  height: 2px;
  width: 98%;
  position: absolute;
  background: #d0d0d1;
  margin-top: 33px;
  z-index: -7;
}

div#gform_confirmation_wrapper_54,
div#gform_confirmation_wrapper_61 {
  padding-top: 1rem;
  width: 100%;
}

#quote-tool .gform_confirmation_message {
  color: black;
}

#quote-tool .gform_page_footer.top_label {
  display: flex;
  justify-content: space-between;
  position: relative;
}

#gform_ajax_spinner_54,
#gform_ajax_spinner_61 {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
}

/* ZIP distance spinner (location step) */
#quote-tool span.address_zip {
  position: relative;
}

#quote-tool .quote-tool-zip-spinner {
  position: absolute;
  left: 100%;
  top: 1rem;
  display: none;
  width: 16px;
  height: 16px;
  margin-left: 0.5rem;
  vertical-align: middle;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-top-color: var(--dkblue);
  border-radius: 50%;
  animation: quoteToolSpin 0.8s linear infinite;
}

@keyframes quoteToolSpin {
  to {
    transform: rotate(360deg);
  }
}

#quote-tool .step-content {
  padding-right: 2rem;
}

p.gform_required_legend,
div#gf_progressbar_wrapper_54,
div#gf_progressbar_wrapper_61 {
  display: none;
}

#quote-tool .gform_wrapper.gravity-theme .gfield_required {
  color: #002B49;
}

#quote-tool .form-content-row {
  display: flex;
}

#quote-tool .quote-step {
  flex: 1 1 33%;
}

#quote-tool .gform_wrapper {
  flex: 1 1 66%;
}

/* Text inputs, selects, textareas: rounded corners and dark blue border (exclude radios and buttons) */
#quote-tool input:not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
#quote-tool select,
#quote-tool textarea {
  border-radius: 10px;
  border: 2px solid var(--dkblue);
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
}

#quote-tool input:not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]):focus,
#quote-tool select:focus,
#quote-tool textarea:focus {
  outline: 2px solid var(--dkblue);
  outline-offset: 2px;
}

/* Skip assistance checkbox (only) */
#quote-tool .skip-assistance .gchoice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#quote-tool .skip-assistance input.gfield-choice-input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border: 2px solid var(--dkblue);
  border-radius: 8px;
  background: #fff;
  display: inline-grid;
  place-content: center;
  flex: 0 0 auto;
  cursor: pointer;
}

#quote-tool .skip-assistance input.gfield-choice-input[type="checkbox"]::before {
  content: "✓";
  color: #fff;
  font-size: 18px;
  line-height: 1;
  transform: scale(0);
  transition: transform 120ms ease-in-out;
}

#quote-tool .skip-assistance input.gfield-choice-input[type="checkbox"]:checked {
  background: var(--dkblue);
  border-color: var(--dkblue);
}

#quote-tool .skip-assistance input.gfield-choice-input[type="checkbox"]:checked::before {
  transform: scale(1);
}

#quote-tool .skip-assistance input.gfield-choice-input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--dkblue);
  outline-offset: 2px;
}

#quote-tool .skip-assistance label {
  margin: 0;
  cursor: pointer;
}

#quote-tool .step-item button {
  /* dark grey 7 but without opacity */
  background: #929294;
  box-shadow: 2px 2px 10px var(--black-3);
  transition: 0.5s ease all;
  color: var(--white);
  margin-top: 10px;
  margin-bottom: 10px;
  font-family: CachetBookRegular, san-serif;
  font-size: 25px;
  line-height: 1.2;
  border-radius: 5px;
}

#quote-tool .step2.available,
#quote-tool .gform_page_footer .gform_next_button {
  box-shadow: 2px 2px 10px var(--black-3);
  transition: 0.5s ease all;
  background: var(--mdblue);
  color: var(--white);
  border: 2px solid var(--mdblue);
  margin-top: 10px;
  margin-bottom: 10px;
  font-family: CachetBookRegular, san-serif;
  font-size: 25px;
  line-height: 1.2;
  border-radius: 5px;
  padding: 8px 22px;
}

#quote-tool .gform_page_footer .gform_previous_button {
  box-shadow: 2px 2px 10px var(--black-3);
  transition: 0.5s ease all;
  background: var(--dkgray);
  color: var(--white);
  border: 2px solid var(--dkgray);
  margin-top: 10px;
  margin-bottom: 10px;
  font-family: CachetBookRegular, san-serif;
  font-size: 25px;
  line-height: 1.2;
  border-radius: 5px;
  padding: 8px 22px;
}

#quote-tool .step3.checked,
#quote-tool .step2.checked,
#quote-tool .step1.checked,
#quote-tool .step3.available,
#quote-tool .step2.available,
#quote-tool .step1.available,
#quote-tool .button {
  box-shadow: 2px 2px 10px var(--black-3);
  transition: 0.5s ease all;
  background: var(--dkblue);
  color: var(--white);
  border: 2px solid var(--dkblue);
  margin-top: 10px;
  margin-bottom: 10px;
  font-family: CachetBookRegular, san-serif;
  font-size: 25px;
  line-height: 1.2;
  border-radius: 5px;
  padding: 8px 22px;
}

input#gform_submit_button_54,
input#gform_submit_button_61 {
  visibility: hidden;
}

#quote-tool button.checked {
  position: relative;
  /* Set relative positioning for the button to position the ::after element */
}

#quote-tool button.checked::after {
  content: "\2713";
  /* Unicode for the checkmark symbol */
  color: #006B3F;
  /* Set the color of the checkmark */
  font-size: 23px;
  /* Adjust the size of the checkmark */
  position: absolute;
  top: 50%;
  /* Vertically center the checkmark */
  left: 100%;
  /* Position it to the right of the button */
  transform: translateY(-50%);
  /* Adjust for centering vertically */
  margin-left: 10px;
  /* Add space between the button and the checkmark */
}

#quote-tool #field_54_999 legend,
#quote-tool #field_61_999 legend {
  /* color: var(--dkblue); */
  font-size: 25px;
}

#quote-tool .step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: bold;
}

.shortcode-map {
  position: relative;
  width: 100%;
  height: 400px;
  border: #ccc solid 1px;
  margin: 20px 0;
}

#input_54_999,
#input_61_999 {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

#input_54_999 .gchoice,
#input_61_999 .gchoice {
  /* Two-up by default, but if a row has only one card (or only one is visible),
     allow it to grow to full width to avoid an orphan card. */
  flex: 1 1 calc(50% - 0.5rem);
  padding: 1rem;
  text-align: center;
  background: white;
  border-radius: 8px;
  color: var(--dkgray);
}

#input_54_999 .gchoice h4,
#input_61_999 .gchoice h4 {
  font-family: CachetBookRegular, san-serif;
  color: var(--ltblue);
}

/* /* Hide the default radio button */
#input_54_999 input[type="radio"],
#input_61_999 input[type="radio"] {
  display: none;
}

.quote-tool-container.submitted .form-content-row {
  flex-direction: column;
  text-align: center;
  margin-top: 2rem;
}

.quote-tool-container.submitted .form-content-row .quote-step {
  display: none;
}

#quote-tool .quote-tool-container.submitted .btns-container {
  margin-left: unset;
  max-width: 800px;
  margin: auto;
}

@media (max-width: 992px) {

  #input_54_999 .gchoice,
  #input_61_999 .gchoice {
    flex-basis: 100%;
  }
}

@media (max-width: 768px) {
  #quote-tool .steps-nav .btns-container {
    margin-left: unset;
  }

  #quote-tool .form-content-row {
    flex-direction: column;
  }

  #input_54_999,
  #input_61_999 {
    justify-content: center;
  }
}

@media (max-width: 575px) {

  #quote-tool .step3.checked,
  #quote-tool .step2.checked,
  #quote-tool .step1.checked,
  #quote-tool .step3.available,
  #quote-tool .step2.available,
  #quote-tool .step1.available,
  #quote-tool .step-item button {
    font-size: 18px;
  }

  #quote-tool button.checked::after {
    margin-left: -10px;
  }

  #quote-tool .btns-container,
  label {
    font-size: 13px;
  }

  #quote-tool .step3.checked,
  #quote-tool .step2.checked,
  #quote-tool .step1.checked,
  #quote-tool .step3.available,
  #quote-tool .step2.available,
  #quote-tool .step1.available,
  #quote-tool .step-item button {
    padding: 10px 18px;
    min-height: 68px
  }
}

/* NEW 2026 */


#quote-tool .quote-tool-map {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 18px;
}

#quote-tool .location-radio .gfield_radio {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: stretch;
}

/* Make each choice look like an existing quote "card" */
/* Two cards per row: each 50% minus half of the 1rem gap so row fills exactly */
#quote-tool .location-radio .gchoice {
  position: relative;
  width: calc(50% - 0.5rem);
  transition: width .2s ease;
  display: flex;
}

#quote-tool .location-radio .gchoice.is-selected {
  /* Keep 2-column layout stable; "expand" vertically via content only. */
  width: calc(50% - 0.5rem);
}

#quote-tool .location-radio .gchoice input[type="radio"] {
  /* Visually hide but keep accessible */
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

#quote-tool .location-radio .gchoice label {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  color: var(--dkgray);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .05s ease;
  max-width: unset;
}

#quote-tool .location-radio .location-card__name {
  font-family: CachetBookRegular, san-serif;
  color: var(--ltblue);
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: .25rem;
  min-height: 48px;
}

#quote-tool .location-radio .location-card__meta {
  font-size: 16px;
  color: var(--dkgray);
  margin-bottom: .6rem;
}

#quote-tool .location-radio .location-card__distance {
  font-size: 13px;
  color: var(--dkgray);
  margin-top: auto;
  margin-bottom: 0;
}

#quote-tool .location-radio .location-card__amenities {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

#quote-tool .location-radio .location-card__amenity {
  font-size: 12px;
  line-height: 1;
  padding: .35rem .5rem;
  border-radius: 999px;
  background: rgba(46, 142, 196, .12);
  /* uses ltblue vibe without needing hex */
  color: var(--dkblue);
  border: 1px solid rgba(46, 142, 196, .25);
  display: inline-block;
  max-width: 10em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#quote-tool .location-radio .location-card__amenity--more {
  background: rgba(0, 0, 0, .06);
  border-color: rgba(0, 0, 0, .10);
  color: var(--dkgray);
}

/* Hide extra amenities until selected */
#quote-tool .location-radio .location-card__amenity--extra {
  display: none;
}

#quote-tool .location-radio .gchoice.is-selected .location-card__amenity--extra {
  display: inline-flex;
}

/* Expanded card: show full chip text */
#quote-tool .location-radio .gchoice.is-selected .location-card__amenity {
  max-width: none;
  white-space: normal;
}

#quote-tool .location-radio .gchoice.is-selected .location-card__amenity--more {
  display: none;
}

#quote-tool .location-radio .gchoice label:hover {
  border-color: rgba(0, 0, 0, .12);
  box-shadow: 2px 2px 10px var(--black-3);
}

#quote-tool .location-radio .gchoice input[type="radio"]:focus-visible+label {
  outline: 3px solid var(--dkblue);
  outline-offset: 2px;
}

#quote-tool .quote-item .btn {
  width: 100%;
}


/* Selected card */
#quote-tool .location-radio .gchoice input[type="radio"]:checked+label {
  border: 4px solid var(--dkblue);
  box-shadow: 2px 2px 10px var(--black-3);
}

@media (max-width: 992px) {

  #quote-tool .location-radio .gchoice,
  #quote-tool .location-radio .gchoice.is-selected {
    width: 100%;
  }
}