/* Before you begin */

.terms-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  /* margin-top: 1rem; */
}

.terms-button {
  margin: 2rem auto 4rem auto;
}

#collapseThree h3 {
  padding-top: 30px;
}

#phone-numbers h3 {
  margin-top: 0;
  padding-top: 0;
}

/* Journey */

.body-content.journey {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  grid-template-columns: 100%;
}

.manual-entry-label {
  padding: 20px 0 40px 0;
  text-align: center;
}

.cancel-adding-vehicle {
  max-width: 250px;
}

.verify-postcode {
  display: grid !important;
  grid-template-columns: 75% 1fr;

  input {
    margin-right: 1rem;
  }
}

@media (min-width: 768px) {
  .verify-postcode {
    max-width: 50%;
  }
}

/* REGPLATE */
#regplate-details {
  padding: 2rem 3rem;
  border: none;
  background-color: var(--bentley-moss);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#regplate-details p {
  margin: 1rem 0 0 0;
  text-align: center;
}

#regplate-details.error {
  border: solid 1px red;
}

/* PANEL */

.panel {
  box-shadow: none;
  border: none;
  background-color: transparent;
}

.panel-heading {
  background-image: none !important;
  background-color: transparent !important;
  border: none;
  padding: 0;
}

.panel-heading button {
  max-height: 45px;
  padding: 12px 20px;
}

/* merge the next two */
.panel-section {
  display: flex;
  gap: 15px;
  flex-direction: column;
  padding: 2rem;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background-color: var(--bentley-moss-40) !important;
  margin-bottom: 1rem;
}

.additional-item-list {
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.panel-section .btn-wrapper {
  display: flex;
  flex-direction: row;
}

.panel-teaser {
  margin-right: 10px;
  margin-bottom: 0px;
}

@media (min-width: 767px) {
  .panel-section {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .panel-heading button {
    max-height: 45px;
  }
}

/* Navigation */

/* MOTOR INSURANCE HEADER  */

.car-insurance-header {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.car-insurance-header h1 {
  font-size: 20px;
}

.car-insurance-header .tel {
  display: flex;
}

.navbar-telephone-number {
  font-size: 16px;
  display: flex;
  align-items: center;
}

.navbar-telephone-icon {
  margin-right: 0.5rem;
  width: 18px;
  height: 18px;
}

@media (min-width: 768px) {
  .car-insurance-header h1 {
    font-size: 24px;
  }

  .navbar-telephone-number {
    font-size: 24px;
  }

  .navbar-telephone-icon {
    width: 22px;
    height: 22px;
  }
}

/* JOURNEY NAVIGATION */

#journey-navigation {
  background-color: var(--bentley-moss-40);
  margin-top: -20px;
  margin-bottom: 20px;
  padding: 0 !important;
  font-size: 1rem;
  max-height: 50px;
}

@media (min-width: 768px) {
  #journey-navigation {
    font-size: 1em;
  }
}

#journey-navigation .nav-pills {
  margin: 0 !important;
  padding: 0 !important;
}

/* #journey-navigation .nav {
  display: flex;
  justify-content: items-center;
} */

#journey-navigation .nav > li {
  padding: 0 !important;
  line-height: 22px;
}

#journey-navigation .nav > li:first-of-type {
  display: none;
}

@media (min-width: 768px) {
  #journey-navigation .nav > li:first-of-type {
    display: inline-block;
  }
}

#journey-navigation .nav-pills li,
#journey-navigation .nav-pills li span.step {
  margin: 0;
  color: var(--bentley-living-green-50);
  border: none !important;
  border-width: 0 !important;
  border-radius: 0;
}

#journey-navigation .nav-pills li span,
#journey-navigation .nav-pills li span.step {
  display: block;
  padding: 14px 14px;
}

#journey-navigation span.step {
  color: #ffffff;
}
/* we want to ensure that the 'active' tab doesn't appear to be clickable. */
#journey-navigation li.active span.step:hover {
  cursor: default !important;
}

#journey-navigation span.step:hover {
  cursor: pointer;
  color: #d5001c !important;
}

#journey-navigation .nav-pills > li.active > span.step {
  background-color: var(--bentley-moss, green);
  color: #ffffff !important;
  color: var(--bentley-living-green) !important;
}

#journey-navigation li.active > span.step:before {
  width: 0;
  height: 0;
  border-top: 8px inset transparent;
  border-bottom: 8px solid #ffffff;
  border-left: 8px inset transparent;
  border-right: 8px inset transparent;
  position: absolute;
  content: "";
  bottom: 0;
  left: 50%;
  margin-left: -8px;
}

/* JOURNEY HEADER */

.journey-header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  padding: 16px 16px 24px;
}

.journey-header img {
  max-width: 88px;
}

.journey-header,
.journey-header img {
  z-index: 10;
}

.add-additional-vehicle-button {
  width: 100%;
}

@media (min-width: 460px) {
  .add-additional-vehicle-button {
    width: auto;
  }
}

@media (min-width: 767px) {
  .journey-header img {
    max-width: 110px;
  }

  .journey-header {
    padding: 40px 40px 24px;
  }
}

/* centre add additional vehicle button*/

/* .add-additional-vehicle-button {
  display: flex;
  align-items: center;
}

.add-additional-vehicle-button button {
  margin-right: 2rem;
}

.add-additional-vehicle-button span {
  margin: 0;
} */

.icon-section {
  display: flex;
  gap: 10px;
}

.icon-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    gap: 10px;
    min-width: 90px;
    transition: all 0.5s ease-in-out;
    cursor: pointer;
    border: 1px solid var(--bentley-living-green)!important;
}

.icon-container svg {
  font-size: 30px;
}

.icon-active {
  background-color: var(--bentley-living-green);
  color: var(--bentley-white);
}

.continue-button {
  animation: pulse 2s forwards ease-in-out;
  animation-delay: 2s; /* Small delay to ensure the page has loaded */
}

/*  */

.drivers-panel {
  .form-section:first-child h4 {
    margin-bottom: 30px;
    margin-top: 15px;
  }

  .form-section:nth-child(3) h4 {
    margin-bottom: 30px;
  }
}

.confirm-overlay {
  display: block;
}

.quote-section-ncd-price .confirm-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  background-color: rgba(100, 100, 100, 0.5);
}

.quote-section-ncd-price {
  position: relative;

  .ncd-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px 10px;
    padding: 40px 0;
  }

  .ncd-price {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 0 10px;
  }

  .custom-checkbox {
    width: 50px;
    height: 50px;
  }
}

.processing-payment-spinner {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 100%;
  padding: 2rem;
  text-align: center;
}

.processing-payment-iframe {
  z-index: 2;
  position: relative;
  min-height: 90vh;
}

.ncd-price {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0 10px;
}

@media (min-width: 767px) {
  .ncd-price {
    flex-direction: row;
  }
}

#get-a-quote-spinner {
  display: none;
}

.quote-loading-mask {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.quote-loading-mask.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.quote-loading-mask__message {
  color: var(--bentley-moss);
  font-size: 48px;
  line-height: 1;
  font-family: "Bentley Medium", "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-align: center;
}

.quote-loading-mask__dots {
  display: inline-flex;
  margin-left: 6px;
}

.quote-loading-mask__dots span {
  display: inline-block;
  width: 12px;
  animation: quote-loading-dot 1.1s infinite;
}

.quote-loading-mask__dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.quote-loading-mask__dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes quote-loading-dot {
  0%,
  80%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (max-width: 767px) {
  .quote-loading-mask__message {
    font-size: 28px;
    padding: 0 20px;
  }
}
