﻿/* ------------------------------------------------ Forms */

.form {
  margin-bottom: 20px;
  padding: 0;
}

label {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .form {
    padding: 15px 0;
  }
}

.form .form-section {
  padding: 15px 0;
  position: relative;
  /* margin-bottom: 10px; */
}

.form .form-section h4 {
  font-size: 20px !important;
  margin: 0;
  margin-bottom: 20px;
  text-align: left !important;
}

/* @media (min-width: 768px) {
  .form .form-section {
    padding: 0 40px 10px 40px;
  }
} */

/* ------------------------------------------------------------ OLD */

.form .form-section .form-group {
  border-top: solid 1px #c8cacb;
  padding: 20px 0 0;
  margin: 0;
}

.form .form-section .form-group-no-border {
  border-top: none;
  padding: 0;
  margin: 0;
}

.form .form-section .form-group.empty {
  margin-bottom: 20px;
}

.form .form-section .form-group .input-row {
  margin-bottom: 20px;
  min-height: 34px;
}

.form .form-section .form-group .input-col {
  padding: 0;
  padding-bottom: 10px;
}

.form .form-section .form-group .input-col.inline {
  padding-right: 15px;
}

.form .form-section .form-group .input-col:last-of-type {
  padding-bottom: 0;
}

@media (min-width: 768px) {
  .form .form-section .form-group .input-col {
    padding-bottom: 0;
    padding-right: 15px;
  }

  .form .form-section .form-group .input-col.last {
    padding-right: 0 !important;
  }
}

.form .form-section .form-group .input-row > .col-sm-4,
.form .form-section .form-group .input-row > .col-sm-6,
.form .form-section .form-group .input-row > .col-sm-8,
.form .form-section .form-group .input-row > .col-sm-12 {
  padding: 0;
}

.form .form-section .form-group .input-row > .col-sm-4:first-child,
.form .form-section .form-group .input-row > .col-sm-6:first-child,
.form .form-section .form-group .input-row > .col-sm-8:first-child,
.form .form-section .form-group .input-row > .col-sm-12:first-child {
  margin-bottom: 15px;
  padding-right: 15px;
}

@media (min-width: 768px) {
  .form .form-section .form-group .input-row > .col-sm-4:first-child,
  .form .form-section .form-group .input-row > .col-sm-6:first-child,
  .form .form-section .form-group .input-row > .col-sm-8:first-child,
  .form .form-section .form-group .input-row > .col-sm-12:first-child {
    margin-bottom: 0;
  }
}

.form .form-section .form-group-no-border label {
  margin-bottom: 20px;
}

.form .form-information-block {
  margin: 50px 0;
  margin-bottom: 2rem;
  text-align: left;
}

/* ------------------------------------------------ Form Field   */

.bm-form-field {
  position: relative;
  margin: 10px auto 40px auto;
  max-width: 870px;
  width: 100%;
}

.bm-label-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* margin-bottom: 5px; */
  position: relative;
  right: 2px;
}

.bm-form-field.radio-group .bm-label-container {
  margin-bottom: 15px;
  padding-left: 0; /* Reset any unintended padding */
}

.bm-control-label {
  display: block;
  font-size: 14px;
  color: #333;
  line-height: 20px !important;
  /* margin-bottom: 10px; */
  transition: all 0.4s ease;
}

@media (min-width: 1440px) {
  .bm-control-label {
    font-size: 16px;
  }
}

@media (min-width: 1900px) {
  .bm-control-label {
    font-size: 18px;
  }
}

.bm-input-container {
  display: flex;
  align-items: center;
  position: relative;
}

.bm-form-control {
  border: none;
  border-bottom: 1px solid #000;
  padding: 5px 5px 10px 0px;
  font-size: 14px;
  flex: 1;
  outline: none;
}

.bm-form-control:focus {
  border-bottom: 1px solid #000;
  transition: all 0.4s ease;
}

.with-unit {
  max-width: 350px;
  padding-right: 50px;
}

.bm-static-text {
  padding-top: 10px;
}

.bm-input-unit {
  position: relative;
  right: 45px;
}

/* ------------------------------------------------ Errors   */

.bm-error {
  color: red;
  display: block;
  margin-top: 5px;
  font-size: 12px;
}

.bm-error-container label {
  margin-top: 3rem;
  font-size: 10px;
}

.error-container.has-error {
  margin-top: 8px;
}

.bm-form-field .error {
  color: #ff0000;
  font-size: 12px;
}

/* ------------------------------------------------ Form Actions   */

.form-actions {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  max-width: 500px;
  margin: 0 auto;
}

@media screen and (min-width: 460px) {
  .form-actions {
    max-width: 100%;
    width: 100%;
    flex-direction: row;
  }

  /* .form-actions .bm-btn {
    width: auto;
    margin: 0;
  } */
}

@media screen and (min-width: 767px) {
  .form-actions {
    max-width: 100%;
    width: 100%;
    flex-direction: row;
  }

  .align-next-button {
    /* padding-right: 40px; */
  }

  .panel-heading .btn {
    width: 100%;
  }
}

/* ------------------------------------------------ Old misc  */

.form label {
  text-align: left !important;
  font-family: Bentley;
  line-height: 1.8em;
  font-weight: 300;
}

.form label.monthly-payment {
  font-size: 26px;
  position: relative;
  bottom: 5px;
}

.form label.account-holder {
  font-size: 18px;
  word-wrap: break-word;
  margin-right: 20px;
  width: 100%;
}

.form h3.small-margin {
  margin-bottom: 14px;
}

.form label.normalize-line-height {
  line-height: 1.8em;
}

/* Fix for p tags inside a form to look the same as a label but be full width */
.form-group p.form-info {
  font-family: Bentley;
  line-height: 1.8em;
  font-weight: bold;
}

.form-group p.foot-note {
  font-family: Bentley;
  font-size: 14px;
  line-height: 2.17;
  color: #000000;
}

.form input,
.form select,
.form textarea {
  border-radius: 0px !important;
  box-shadow: none;
  font-size: 18px;
  color: #000000;
  background-color: transparent;
}

.form input::placeholder,
.form select::placeholder,
.form textarea::placeholder {
  color: rgba(4, 4, 4, 0.5);
}

.form input[disabled],
.form select[disabled] {
  background-color: transparent;
}

/* Stop text areas from breaking */
.form textarea {
  min-width: 50%;
  max-width: 100%;
  min-height: 34px;
}

.form select {
  background-color: #ffffff;
  padding: 2px 12px 6px;
}

/* hide the first (disabled) option in all drop-down lists */
.form select option:first-of-type {
  display: none;
}

/* prevent browser from highlighting fields on focus */
.form-control:focus {
  outline-style: none;
  box-shadow: none;
  border-color: #b5b4ba;
}

/* ------------------------------------------------ LINKS */

a {
  color: var(--bentley-living-green);
  text-decoration: none;
}

hr {
  border: 0.5px solid var(--bentley-living-green-20);
}

/* ------------------------------------------------ SELECT  */

.select-component .select-button {
  font-size: inherit;
  display: flex;
}

.select-component .listbox {
  font-size: inherit;
}

/* ------------------------------------------------ DATE SELECT  */

.bm-date-select {
  flex: 1;
  min-width: 0;
}

.bm-date-select custom-select {
  width: 100%;
}

.bm-date-select:last-child {
  flex: 1.2; /* Makes the year select slightly wider */
}

.bm-date-input {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  max-width: 400px;
}

.bm-month-select {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 400px;
}

.bm-date-of-birth-wrapper {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}

/* ------------------------------------------------ CHECKBOX  */
.custom-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid var(--bentley-living-green);
  display: block;
  position: relative;
  cursor: pointer;
}

.custom-checkbox input {
  display: none;
}

.custom-checkbox .checkmark {
  width: 100%;
  height: 100%;
  background-color: var(--bentley-living-green);
  display: none;
  position: relative;
}

.custom-checkbox input:checked ~ .checkmark {
  display: block;
}

.custom-checkbox .checkmark:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

/* ------------------------------------------------ BUTTONS */

a:hover {
  text-decoration: unset;
  color: unset;
}

.bm-btn {
  font-weight: 400;
  padding: 12px 18px;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  min-height: 40px;
  letter-spacing: 3px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  font-size: 13px;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background: var(--bentley-living-green);
  border: 1px solid var(--bentley-living-green);
  color: white;
  transition: all 0.1s cubic-bezier(0.04, 0.76, 0.59, 0.68);

  /* font-size: 16px; Adjust this to your base font size */
}

.bm-btn:hover,
.bm-btn:active,
.bm-btn:focus {
  background-color: var(--bentley-living-green);
}

.bm-btn[disabled]:hover,
.bm-btn[disabled]:active,
.bm-btn[disabled]:focus {
  background-color: #ccc;
  border: 1px solid var(--bentley-living-green-50);
}

.btn-primary:active:hover,
.btn-primary.active:hover,
.open > .dropdown-toggle.btn-primary:hover,
.btn-primary:active:focus,
.btn-primary.active:focus,
.open > .dropdown-toggle.btn-primary:focus,
.btn-primary:active.focus,
.btn-primary.active.focus,
.open > .dropdown-toggle.btn-primary.focus {
  background-color: var(--bentley-living-green-50);
}

.btn-primary.disabled,
.btn-primary[disabled],
fieldset[disabled] .btn-primary,
.btn-primary.disabled:hover,
.btn-primary[disabled]:hover,
fieldset[disabled] .btn-primary:hover,
.btn-primary.disabled:focus,
.btn-primary[disabled]:focus,
fieldset[disabled] .btn-primary:focus,
.btn-primary.disabled.focus,
.btn-primary[disabled].focus,
fieldset[disabled] .btn-primary.focus,
.btn-primary.disabled:active,
.btn-primary[disabled]:active,
fieldset[disabled] .btn-primary:active,
.btn-primary.disabled.active,
.btn-primary[disabled].active,
fieldset[disabled] .btn-primary.active {
  background-color: var(--bentley-living-green-50);
  background-image: none;
}

@media (min-width: 768px) {
  .bm-btn {
    width: auto;
  }
}

.bm-btn[disabled] {
  background: #ccc;
  border: 1px solid #ccc;
  color: #fff;
  cursor: not-allowed;
}

/* a[hover],
a:focus {
  color: white !important;
} */

.call-to-action:focus,
.call-to-action:hover {
  color: white !important;
  text-decoration: none;
}

.bm-btn.primary:not(:disabled):hover,
.bm-btn.primary:not(:disabled):active,
.bm-btn.primary:not(:disabled):focus {
  background-color: #637a77;
  border-color: #637a77;
  color: white !important;
  text-decoration: none;
}

.bm-btn.primary:not(:disabled):active {
  text-decoration: none;
}

.bm-btn.secondary {
  color: var(--bentley-living-green);
  border: 1px solid black;
  background-color: transparent;
}

.bm-btn.secondary.invert {
  background: transparent;
  border: 1px solid white;
  color: white;
}

.bm-btn a {
  text-decoration: none;
  color: inherit;
  min-width: 237px !important;
}

.bm-btn a:hover {
  text-decoration: none;
  color: inherit !important;
}

.slide-content .button-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-button {
  max-width: 290px;
  width: 100%;
}

@media screen and (min-width: 768px) {
  .search-button {
    display: flex;
    justify-content: center;
  }
}

/* CARD */

.bm-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  /* Ensure the card has dimensions and is visible when not animated */
  background-color: #fff; /* or any color */
  border: 1px solid #ddd;
  /* margin-bottom: 20px; */
  /* padding: 20px; */
}

.bm-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.bm-card__media img {
  max-width: 100%;
  height: auto;
}

icon-picker svg {
  position: relative;
  bottom: 1px;
}

@media screen and (min-width: 768px) {
  .slide-content .button-group {
    flex-direction: row;
    justify-content: center;
  }

  .bm-btn {
    width: auto;
    margin: 0;
    /*  width: auto;
    margin: auto; */
  }
}

@media screen and (min-width: 1024px) {
  .slide-content .button-group {
    flex-direction: column;
  }
}

/* ------------------------------------------------ UTILS */

/* .bm-hidden {
  opacity: 0;
  transition: all 0.5s ease-in-out;
} */

.bm-small-field {
  max-width: 300px;
}

.split-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* ------------------------------------------------ Contact Details */

.contact-detail-item-container {
  padding: 0;
}

.contact-details-image-wrapper {
  padding: 0;
  margin-bottom: 2rem;
}

.contact-detail-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  padding: 20px;
  background-color: var(--bentley-moss-10);
  max-width: 650px;

  .contact-detail {
    display: block;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 20px;
  }

  h3 {
    margin: 0;
    padding-left: calc(30px + 1rem);
  }

  .telephone-row {
    display: flex;
    align-items: center;
    gap: 1rem;

    p {
      margin-bottom: 0;
    }

    a {
      font-size: 30px;
    }

    span {
      margin: 0;
      position: relative;
      bottom: 2.5px;
    }
  }

  .contact-text {
    display: flex;
    flex-direction: column;
    align-items: center;

    p {
      margin-bottom: 10px;
    }

    a {
      font-size: clamp(1.8rem, 2.2vw, 3.8rem);
    }
  }

  .additional-infomation {
    padding-left: calc(30px + 1rem);
  }

  .ctas {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Stying for telephone image*/
.contact-details-telephone {
  /* float: right; */
  margin-top: 14px;

  img {
    width: 30px;
  }
}

/* Spacing for contact detail links */
.contact-detail-link {
  font-size: 10px;
  margin-bottom: 3rem;
  width: auto;
  /*  max-width: 230px;*/
  text-align: center;
  text-transform: uppercase;
  border-radius: 0;
  font-weight: 300;

  background-color: var(--bentley-living-green);
  color: white;
  transition: all 0.3s ease;
  margin-left: calc(30px + 1rem);

  &:hover {
    background-color: #637a77;
    color: white;
  }
}

@media (min-width: 768px) {
  .contact-detail-item {
    gap: 20px;

    h3 {
      font-size: 30px;
    }
  }

  .contact-detail-link {
    font-size: 14px;
  }

  /* alter positioning for contact detail item on non-mobile devices */
  .contact-detail-item .contact-detail {
    display: inline;
  }

  .contact-details-image-wrapper {
    padding-right: 2rem !important;
    display: block;
  }
}

@media screen and (min-width: 1024x) {
  .contact-detail-link {
    font-size: 16px !important;
  }
}

@media screen and (min-width: 1440x) {
  .contact-detail-link {
    font-size: 18px;
  }
}

/* ------------------------------------------------ MISC */

.terms-container {
  display: grid;
  align-items: center;
  grid-template-columns: 85% 1fr;
  padding: 15px 0px;
  gap: 15px;
}

.bm-kept-location-option {
  display: inline-block;
  margin-right: 10px;
  cursor: pointer;
  text-align: center;
}

.bm-kept-location-option img {
  max-width: 100px;
}

.bm-kept-location-other {
  margin-top: 10px;
}

.btn-wrapper {
  display: flex;
  gap: 20px;
  width: 100%;
  flex-direction: column;
  /* padding-bottom: 40px; */
  /* margin: 10px auto 40px auto; */
}

.section-padding {
  padding-bottom: 40px;
}
.monthly-payment {
  margin-top: 40px;
}

@media screen and (min-width: 768px) {
  .btn-wrapper {
    flex-direction: row;
    width: auto;
  }
}

.panel-body {
  padding: 0 !important;
}

.panel-heading {
  font-size: 14px;
}

.bm-additional-item-cancel strong {
  width: 100%;
  text-align: center;
  padding: 1rem;
  display: block;
}

.bm-additional-item-cancel .edit {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

@media screen and (min-width: 768px) {
  .bm-additional-item-cancel .edit {
    max-width: 400px;
  }
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px transparent inset !important;
}

.additional-item-cancel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;

  .bm-btn {
    width: 100%;
  }

  .edit {
    width: 100%;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

/* DOCUMENTS */

.document {
  flex-direction: column;
  margin-bottom: 1rem;

  .row-one {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;

    .bentley-icon-download_02 {
      font-size: 20px;
    }
  }

  .additional-infomation {
    font-size: 10px;
  }
}

.document:hover {
  background-color: #637a77;
  border-color: #637a77;
  color: white !important;
  text-decoration: none;
}

.document-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .document-list {
    /*        grid-template-columns: 1fr 1fr;*/
  }
}

/* QUOTE SCREEN */

.payment-info-type {
  text-align: center;
  border: solid 1px #b5b4ba;
  padding-left: 10px !important;
  padding-right: 10px !important;
  font-size: 18px;
}

.payment-info-block ul li {
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .payment-info-type {
    height: 260px;
  }
}

@media (min-width: 1440px) {
  .payment-info-type {
    height: 290px;
  }
}

@media (min-width: 1900px) {
  .payment-info-type {
    height: 310px;
  }
}

.payment-option-selected {
  border: solid 2px var(--bentley-living-green);
  border-radius: 4px;
}

/* Set the padding and list style of both paymnet type grids*/
.payment-info-type ul {
  list-style: none;
  padding-top: 42px;
  padding-bottom: 42px;
  padding-left: 0px;
}

/* background colour of info blocl */
.payment-info-block {
  background-color: transparent;
  cursor: pointer;
  /* transition: all 0.3s ease; */
}

/*position of quoted proce text */
.quote-price-text {
  padding-top: 10px;
  font-size: 34px;
  font-weight: bolder;
}

/*styling of quoted price sub text */
.quote-price-sub-text {
  font-size: 14px;
  margin-top: 10px;
}

/* Positiong of the payment type check boxes*/
.payment-info-type .icheckbox_big_minimal-red {
  padding-top: 40px;
  padding-bottom: 30px;
  margin: 0px !important;
}

/* Remove float from error class on a span tag, that is on a span tag by default */
.payment-info-type span.error {
  float: none !important;
}

/* Padding for the pay monthly info box (3rd box)*/
.payment-info-type-table {
  padding: 15px 5px;
  /* padding: 15px 20px 14px 20px; */
}

/* Styling of the payment info table*/
.payment-info-type-table table {
  border-collapse: collapse;
  font-size: 16px;
  width: 100%;
}

/* Override default background colour for even rows of payment info table*/
.payment-info-type-table tr:nth-child(even) {
  background-color: #eff0f1;
}

/* Set heading and column padding and  line hieght of payment info table */
.payment-info-type-table th,
.payment-info-type-table td {
  padding: 5px 0 3px 0;
  line-height: 1.38;
}

/* Set row border and align text of first column of payment info table*/
.payment-info-type-table td {
  text-align: left;
  border-top: 1px solid #b5b4ba;
}

/*Align text of the second column to the right*/
.payment-info-type-table table td:nth-child(2) {
  text-align: right;
}

/* Set the font-weight of the total payment row*/
.total-payment-row {
  font-weight: bolder;
}

.payment-back-button {
  float: left;
}

.payment-info-list-item {
  display: flex;
  justify-content: center;
}

.payment-info-list-item .custom-checkbox {
  width: 30px;
  height: 30px;
}

.quote-section-important-info {
  .terms-checkbox {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    cursor: pointer;

    .custom-checkbox {
      flex: 0 0 auto; /* Prevent checkbox from shrinking */
      width: 24px; /* Set explicit width */
      height: 24px; /* Set explicit height */
      margin: 0; /* Remove default margins */
    }
  }
}

/* Media queries that target the specific padding of the payment grid for different screens */
@media (min-width: 1200px) {
  .quote-section-payment-info .col-md-4 {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
  }

  /* ovveride the default font of payment info table */
  .payment-info-type-table table {
    font-size: 15px !important;
  }

  .payment-info-type-table {
    /* padding: 16px 30px 16px 31px; */
    padding: 15px 5px;
  }
}

@media (min-width: 240px) {
  .quote-section-payment-info .col-lg-4 {
    padding-top: 30px;
  }

  .quote-section-payment-info .col-md-12 {
    padding-bottom: 30px;
  }
}

.card-type-well {
  background-color: transparent;
  border: 1px solid #c8cacb;
  padding: 20px;
  border-radius: 5px;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  cursor: pointer;
}

.card-type-well.selected {
  background-color: #637a77;
  color: white;
}

.card-type-well img {
  margin-bottom: 1rem;
}

.sort-code-container {
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 200px;
}

.sort-code-container .bm-form-control {
  width: 30px;
}

.split-display {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  /* padding-top: 20px;
  padding-bottom: 20px; */
  margin: 10px auto 40px auto;
}

.more-space {
  padding-top: 20px;
}

.inline-control {
  display: flex;
  align-items: space-between;
  justify-content: center;
}

.small-btn {
  font-size: 11px;
}

.payment-continer .bm-form-field {
  padding-bottom: 30px;
}

.bm-error-space {
  margin: 10px 0;
}

/* */

#address-lookup-dropdown {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 768px) {
  #address-lookup-dropdown {
    grid-template-columns: 1fr 115px;
  }
}
