* {
  box-sizing: border-box;
}

/* body {
    font-family: "Roboto",Sans-serif;
  } */

.quote {
  font-family: "Roboto", Sans-serif;
  background-color: #efbd98;
  border: none;
  border-radius: 0;
  width: 310px;
  height: 374px;
  position: relative;
}

#preheading {
  color: #1f2b3a;
  font-size: 18px;
  font-style: normal;
  text-align: center;
  margin-top: 20px;
}

#quoteheading {
  color: #1f2b3a;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin-top: -5px;
}

.quota-text {
  font-size: 16px;
  color: #ffffff;
  font-weight: bold;
}

.quota-button {
  background-color: #234c63;
  border-bottom: solid 5px;
  border-bottom-color: #1b3f53;
  border-radius: 9px;
  color: white !important;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 20px 2px;
  cursor: pointer;
  width: 278px;
  line-height: 40px;
}

.quota-button:hover {
  background-color: #1f4257;
  border-bottom-color: #173547;
}

.secured-badge {
  position: absolute;
  bottom: 8px;
  right: 10px;
  width: 122px;
}


.input {
  padding: 10px;
  font-size: 17px;
  font-family: "Roboto", Sans-serif;
  border: 1px solid #e2e2e2;
  background-color: #ececec;
  margin-top: -10px;
  width: 278px;
  border-left: 10px;
  margin-left: 12px;
  border-radius: 9px;
  color: #2a2a2a;
  line-height: normal;
}

.wide {
  width: 91% !important;
}

/* Mark input boxes that gets an error on validation: */
input.invalid {
  background-color: #ffdddd;
}

/* Hide all steps by default: */
.tab {
  display: none;
}

button:hover {
  opacity: 0.8;
}

#prevBtn {
  border: none;
  z-index: 100;
  position: absolute;
  bottom: 10px;
  left: 12px;
  background-color: #cfcfcf;
  border-radius: 8px;
  font-size: 12px;
  padding: 5px 10px;
  visibility: hidden;
  color: #2a2a2a;
}

#prevBtn:hover {
  background-color: #b9b9b9;
  border-bottom-color: #cfcfcf;
  color: #2a2a2a;
}

.alignio {
  margin-left: 12px;
}

.rightfont {
  font-family: "Roboto", Sans-serif;
  color: #1f2b3a;
}

.quota-button.service {
  margin: 10px 2px;
}

.quota-button.half {
  width: 134px;
  height: 60px;
  line-height: normal;
  display: table-cell;
  margin: 12px 2px;
  vertical-align: middle;
  padding-left: 5px;
  padding-right: 5px;
}

.tablify {
  display: inline-table;
}

.tablerow {
  display: table-row;
}

.tablerow.space {
  height: 10px;
}

.tablecellempty {
  width: 10px;
}

.lastpage {
  margin-top: 8px;
}

#quoteheading.thankyou {
  margin-top: 20px;
}

.disclosure {
  font-size: xx-small;
  margin-right: 12px;
}

.quotelabel {
  line-height: normal;
  margin-bottom: 15px;
  color: #1f2b3a;
}

.final-steps {
  position: absolute;
  bottom: 50px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
}

.final-mid-inputs {
  position: absolute;
  bottom: 150px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
}

.name-input {
  position: absolute;
  bottom: 150px;
}

img#faq-img {
  width: 240px;
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 320px) {
  .quote {
    background-color: #efbd98;
    border: 4px;
    border-style: solid;
    border-color: #efbd98;
    border-radius: 0;
    width: 268px;
    height: 374px;
    margin: 0 auto;
  }

  .quota-button {
    background-color: #234c63;
    border-bottom: solid 5px;
    border-bottom-color: #1b3f53;
    border-radius: 9px;
    color: white;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 20px 2px;
    cursor: pointer;
    width: 248px;
    line-height: 40px;
  }
}

@media (max-width: 640px) {
  .quote {
    margin: 0 auto;
  }
}

.enter-block {
  position: absolute;
  bottom: 180px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
}

.notice {
  position: absolute;
  bottom: 115px;
  left: 12px;
  font-size: 9px;
  color: #fff;
}

p.alignio.lastpage.rightfont {
  line-height: 1.2;
}

.alignio.lastpage.quotelabel.rightfont {
  font-size: 14px;
}

.movelocations {
  margin-top: 25px;
}

.movelocations.location-slide {
  margin-top: 75px;
}

/* .quota-button.quota-text.final-steps.step2-button {
    margin-bottom: 50px;
  } */

.red-notice {
  position: absolute;
  bottom: 195px;
  left: 14px;
  font-size: 9px;
  color: yellow;
}

.custom-req{
  margin-top: -25px;
  position: absolute;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
}

/* Add tooltip styles */
.tooltip-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.tooltip-message {
  visibility: hidden;
  background-color: #f44336;
  color: white;
  text-align: center;
  padding: 5px 10px;
  border-radius: 4px;
  position: absolute;
  z-index: 1000;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.tooltip-message::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 10px;
  border-width: 5px;
  border-style: solid;
  border-color: #f44336 transparent transparent transparent;
}

.tooltip-message.show {
  visibility: visible;
  opacity: 1;
}

/* Decoupled layout overrides */
.quote {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tab {
  height: 100%;
}

.tab-inner {
  height: 100%;
  display: grid;
  grid-template-rows: 15% 60% 25%;
  padding: 14px 12px 10px;
}

.tab-header {
  grid-row: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  min-height: 0;
  overflow: hidden;
}

.tab-content {
  grid-row: 2;
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 0;
  padding-bottom: 0;
  gap: 8px;
  overflow: hidden;
}

.tab-actions {
  grid-row: 3;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
  min-height: 0;
  overflow: hidden;
}

.tab-actions .quota-button {
  width: 100%;
  max-width: 278px;
}

.preheading,
#preheading {
  color: #1f2b3a;
  font-size: 18px;
  font-style: normal;
  text-align: center;
  margin-top: 0;
}

.preheading.compact {
  font-size: 15px;
}

.quoteheading,
#quoteheading {
  color: #1f2b3a;
  font-size: 19px;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  line-height: 1.1;
  margin-top: 0;
}

.quoteheading.enter-heading {
  margin-top: 4px;
}

#name-tab .tab-header {
  overflow: visible;
}

.quote .isolated-enter-heading {
  display: block;
  position: relative;
  line-height: 1.25 !important;
  padding-top: 2px;
  overflow: visible;
}

.enter-subheading {
  margin: 0;
  color: #1f2b3a;
  font-size: 28px;
  font-weight: bold;
  text-align: center;
}

.phone-subheading {
  font-size: 26px;
}

.tab-intro {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
}

.tab-content p {
  margin: 0;
}

.field-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.first-step-tab .tab-content {
  padding-top: 0;
}

.field-stack p {
  margin: 0;
}

.input {
  margin-top: 0;
  margin-left: 0;
  width: 100%;
}

.wide {
  width: 100% !important;
}

.phone input[type="tel"],
#blablaphone {
  width: 100% !important;
  border-radius: 9px !important;
  line-height: normal;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.name-input {
  position: static;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.half-input {
  width: 100% !important;
}

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quota-button {
  margin: 0;
}

.quota-button.half {
  width: 100%;
  margin: 0;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  line-height: 1.2;
}

#move-size .tab-content,
#task-size .tab-content,
.non-utm .tab-content,
.utm .tab-content {
  justify-content: center;
}

.name .tab-content,
.email .tab-content,
.phone .tab-content {
  justify-content: center;
}

#date-tab .tab-content::after {
  content: "";
  display: block;
  height: 11px;
}

.email .tab-content,
.phone .tab-content {
  overflow: visible;
}

.email .tab-intro,
.phone .tab-intro {
  min-height: 3.2em;
}

.email .enter-block,
.phone .enter-block {
  min-height: 72px;
  justify-content: center;
}

.final-steps,
.final-mid-inputs,
.enter-block,
.notice,
.red-notice,
.custom-req,
img#faq-img,
.secured-badge {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  margin-left: 0;
  margin-right: 0;
}

.enter-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.notice {
  margin: 0;
  font-size: 9px;
  line-height: 1.2;
  color: #2b2b2b;
}

.red-notice {
  margin-top: 4px;
  font-size: 9px;
  color: yellow;
}

.secured-badge {
  width: 122px;
  align-self: flex-end;
  margin-top: 0;
  margin-bottom: 0;
}

img#faq-img {
  width: 240px;
  display: block;
  margin-top: 4px;
}

.alignio {
  margin-left: 0;
}

.movelocations {
  margin-top: 0;
}

.movelocations.location-slide {
  margin-top: 0;
}

.lastpage {
  margin-top: 0;
}

.disclosure {
  margin-right: 0;
  line-height: 1.15;
}

.tab:last-of-type .tab-inner {
  gap: 6px;
}

.tab:last-of-type .tab-content {
  gap: 6px;
}

.tab:last-of-type .disclosure {
  font-size: 9px;
}

.tab:last-of-type .preheading.compact {
  font-size: 15px;
  line-height: 1.15;
  white-space: nowrap;
}

.tablify,
.tablerow,
.tablecellempty {
  display: block;
  width: auto;
  height: auto;
}

@media (max-width: 320px) {
  .tab-inner {
    padding: 12px 10px 10px;
  }

  .tab-actions .quota-button {
    max-width: 248px;
  }

  .option-grid {
    gap: 8px;
  }

  .quota-button.half {
    min-height: 52px;
    font-size: 14px;
  }
}

.first-step-next-button,
.second-step-next-button {
  width: 100%;
}

.second-step-next-button,
.step4-button,
.step5-button,
.step6-button,
.step7-button {
  margin-top: 0;
}

@media (max-width: 640px) {
  .quote.first-step-active {
    height: auto;
  }

  #moving-details-page .tab-inner {
    grid-template-rows: auto auto 1fr;
    padding-top: 42px;
    gap: 10px;
  }

  #moving-details-page .tab-header {
    justify-content: flex-start;
    overflow: visible;
  }

  #moving-details-page .quoteheading {
    white-space: normal;
    line-height: 1.15;
  }

  #moving-details-page .tab-content {
    justify-content: flex-start;
    overflow: visible;
  }

  #moving-details-page .movelocations.field-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 12px;
    row-gap: 8px;
  }

  #moving-details-page .movelocations.field-stack > :nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  #moving-details-page .movelocations.field-stack > :nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  #moving-details-page .movelocations.field-stack > :nth-child(3) {
    grid-column: 2;
    grid-row: 1;
  }

  #moving-details-page .movelocations.field-stack > :nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }

  #moving-details-page .movelocations .quotelabel {
    margin-bottom: 2px;
  }

  #moving-details-page .tab-actions {
    justify-content: flex-start;
    gap: 12px;
    overflow: visible;
  }

  #moving-details-page .tab-actions .first-step-next-button {
    width: 100%;
    max-width: none;
  }

  #moving-details-page .tab-actions .secured-badge {
    align-self: flex-end;
    margin-top: auto;
  }
}
