﻿/* ------------------------------------------------ Base */

/* Lifted from Bentleymotors.com */
:root {
  /* Core Colors */
  --bentley-living-green: #394d45;
  --bentley-teal: #637a77;
  --bentley-moss: #dcd8c0;
  /* Neutral Colors */
  --bentley-black: #040404;
  --bentley-white: #ffffff;
  --bentley-blush: #e7cfb9;
  /* System Colors */
  --bentley-system-success: #2e8643;
  --bentley-system-error: #c1472d;
  /* Tints and Shades */
  /* Bentley Moss */
  --bentley-moss-40: #e8e5d5;
  --bentley-moss-10: #f8f7f2;
  /* Bentley Blush */
  --bentley-blush-40: #efdfd0;
  --bentley-blush-10: #faf5f1;
  /* Bentley Black */
  --bentley-black-40: #585858;
  --bentley-black-10: #cdcdcd;
  /* Bentley Living Green (for demonstrative purposes only, not to be used) */
  --bentley-living-green-50: #5a6b64;
  --bentley-living-green-40: #7b8883;
  --bentley-living-green-30: #9ca6a2;
  --bentley-living-green-20: #bdc4c1;
  --bentley-living-green-10: #d7dbda;
  /* Bentley Teal (for demonstrative purposes only, not to be used) */
  --bentley-teal-50: #7d908e;
  --bentley-teal-40: #97a6a4;
  --bentley-teal-30: #b1bdbb;
  --bentley-teal-20: #cbd3d2;
  --bentley-teal-10: #e0e4e4;

  --bm-grid-gutter: 8px;
  --bm-grid-margin: 16px;
  --bm-text-color: #040404;
  --bm-text-bg-color: #fff;
}

:root {
  --header-height: 84px;
}

@font-face {
  font-display: swap;
  font-family: Bentley;
  font-style: normal;
  font-weight: 300;
  src: url(/Content/Fonts/BentleyNew/WOFF-2/Fonts/Bentley-Light.woff2)
      format("woff2"),
    url(/Content/Fonts/BentleyNew/WOFF-TT/Fonts/Bentley-Light.woff)
      format("woff");
}

@font-face {
  font-display: swap;
  font-family: Bentley;
  font-style: normal;
  font-weight: 400;
  src: url(/Content/Fonts/BentleyNew/WOFF-2/Fonts/Bentley-Regular.woff2)
      format("woff2"),
    url(/Content/Fonts/BentleyNew/WOFF-TT/Fonts/Bentley-Regular.woff)
      format("woff");
}

@font-face {
  font-display: swap;
  font-family: Bentley;
  font-style: normal;
  font-weight: 500;
  src: url(/Content/Fonts/BentleyNew/WOFF-2/Fonts/Bentley-Logotype.woff2)
      format("woff2"),
    url(/Content/Fonts/BentleyNew/WOFF-TT/Fonts/Bentley-Logotype.woff)
      format("woff");
}

body {
  font-family: Bentley, Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  background-color: white;
  color: #000;
}

body.scroll-locked {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 0;
}

/* ------------------------------------------------ Typeography */

p,
li {
  font-size: 14px;
  letter-spacing: 0.14px;
  line-height: 20px;
  transition: all 0.1s ease-in-out;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
  font-weight: 300;
  transition: all 0.1s ease-in-out;
}

h1 {
  font-size: 48px;
  line-height: 1.2;
}

h2 {
  font-size: 40px;
  line-height: 1.2;
  margin: 26px 0;
  text-align: center;
}

h3 {
  font-size: 30px;
  line-height: 1.3;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

h4 {
  font-size: 24px;
  line-height: 1.3;
  text-align: center;
}

h5 {
  font-size: 20px;
  line-height: 1.4;
}

h6 {
  font-size: 16px;
  line-height: 1.4;
}

.container {
  width: 100% !important;
  max-width: 898px !important;
  transition: all 1s ease-in-out;
}

.init-hidden {
  opacity: 0;
}

.paragraph-squeeze {
  padding: 30px 11% !important;
  max-width: 1400px;
  margin: 0 auto;
}

.paragraph-squeeze p {
  margin-bottom: 20px;
}

.pull-content-up {
  position: relative;
  top: -88px;
}

@media (min-width: 768px) {
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 28px;
  }

  h4 {
    font-size: 22px;
  }

  h5 {
    font-size: 18px;
  }

  h6 {
    font-size: 16px;
  }
}

@media (min-width: 1440px) {
  p,
  li {
    font-size: 16px;
    line-height: 24px;
  }

  h2 {
    font-size: 40px;
  }

  .paragraph-squeeze {
    padding: 30px !important;
  }

  .paragraph-squeeze p {
    margin-bottom: 24px;
  }
}

@media (min-width: 1900px) {
  p,
  li {
    font-size: 18px;
    line-height: 26px;
  }

  h2 {
    font-size: 54px;
  }

  .paragraph-squeeze p {
    margin-bottom: 26px;
  }
}

/* TODO: refactor - new typeography */

.bm-h4 {
  font-size: 28px;
  line-height: 34px;
  margin-bottom: 24px;
  text-align: center;
}

@media (min-width: 768px) {
  .bm-h4 {
    font-size: 30px;
    line-height: 36px;
  }
}

@media (min-width: 1440px) {
  .bm-h4 {
    font-size: 38px;
    line-height: 44px;
  }
}

@media (min-width: 1900px) {
  .bm-h4 {
    font-size: 44px;
    line-height: 50px;
  }
}

/* HACK - font sizes on this page seem scaled so needs explicit sizes set */
.body-content:has(.confirmation-page) h1 {
  font-size: 35px;
}

@media (min-width: 1200px) {
  .body-content:has(.confirmation-page) h1 {
    font-size: 48px;
  }
}

@media (min-width: 1440px) {
  .body-content:has(.confirmation-page) h1 {
    font-size: 52px;
  }
}

.body-content:has(.confirmation-page) p {
  margin-bottom: 30px;
}

/* MISC */

.intro-text {
  padding-top: 0;
}

.confirmation-header {
  margin: 3rem 0;
}

@media (min-width: 768px) {
  .confirmation-header {
    margin: 5rem 0;
  }
}

@media (min-width: 1440px) {
  .confirmation-header {
    margin: 7rem 0;
  }
}

#processing-payment h1 {
  margin-bottom: 5rem;
}

#threeDSecureFrame {
  width: 100%;
  height: 50vh;
  background-color: transparent;
}

@media (min-width: 768px) {
  #threeDSecureFrame {
    height: 30vh;
  }
}

/* SPINNER (inline) */

:root {
  --spinner-size: 100px;
}

.spinner {
  text-align: center;
  width: 100%;
}

.spinner svg {
  -webkit-animation: loading-rotate 2s linear infinite;
  -moz-animation: loading-rotate 2s linear infinite;
  -o-animation: loading-rotate 2s linear infinite;
  animation: loading-rotate 2s linear infinite;
  height: var(--spinner-size);
  width: var(--spinner-size);
}

.spinner .path {
  stroke-dasharray: 90, 150;
  stroke-dashoffset: 0;
  stroke-width: 2;
  stroke: var(--bentley-living-green);
  stroke-linecap: round;
  -webkit-animation: loading-dash 1.5s ease-in-out infinite;
  -moz-animation: loading-dash 1.5s ease-in-out infinite;
  -o-animation: loading-dash 1.5s ease-in-out infinite;
  animation: loading-dash 1.5s ease-in-out infinite;
}

/* ------------------------------------------------ Animations */

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-80px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  50% {
    transform: scale(1);
  }
  25%,
  75% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes move-bg-image {
  0% {
    transform: translateX(-20%);
    transform: scale(1.4);
  }

  100% {
    transform: translateX(0);
    transform: scale(1);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fadeInGrow {
  0% {
    opacity: 0;
    transform: scale(1.4);
    clip-path: inset(10%); /* Start with a smaller visible area */
  }

  100% {
    opacity: 1;
    transform: scale(1);
    clip-path: inset(0); /* End with full visibility */
  }
}

@keyframes fadeOutShrink {
  0% {
    opacity: 1;
    transform: scale(1);
    clip-path: inset(0); /* Start with full visibility */
  }

  100% {
    opacity: 0;
    transform: scale(0.9);
    clip-path: inset(5%); /* End with a slightly smaller visible area */
  }
}

@-webkit-keyframes loading-rotate {
  to {
    -webkit-transform: rotate(1turn);
    transform: rotate(1turn);
  }
}

@-moz-keyframes loading-rotate {
  to {
    -moz-transform: rotate(1turn);
    transform: rotate(1turn);
  }
}

@-o-keyframes loading-rotate {
  to {
    -o-transform: rotate(1turn);
    transform: rotate(1turn);
  }
}

@keyframes loading-rotate {
  to {
    -webkit-transform: rotate(1turn);
    -moz-transform: rotate(1turn);
    -o-transform: rotate(1turn);
    transform: rotate(1turn);
  }
}

@-webkit-keyframes loading-dash {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -40px;
  }

  to {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -120px;
  }
}

@-moz-keyframes loading-dash {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -40px;
  }

  to {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -120px;
  }
}

@-o-keyframes loading-dash {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -40px;
  }

  to {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -120px;
  }
}

@keyframes loading-dash {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -40px;
  }

  to {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -120px;
  }
}

/* Utilities */
.mt-10 {
    margin-top:10px;
}

.center {
  justify-content: center;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.bm-hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-out;
}

.bm-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.1s ease-in-out, visibility 0.1s ease-in-out;
}

.w-full {
  width: 100%;
}

/* .mt-10 {
  margin-top: 10px !important;
}

.mt-20 {
  margin-top: 20px !important;
} */

@media (min-width: 768px) {
  .split-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* Quote Retrieval */

.mt-standard {
  margin-top: 20px;
}

.mt-medium {
  margin-top: 30px;
}

.mt-large {
  margin-top: 2rem;
}

/* Flex layouts */
.date-picker-container {
  display: flex;
  gap: 10px;
}

.flex-column-container {
  display: flex;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 10px;
}

/* Button sizing */
.btn-limited-width {
  width: 100%;
}

.align-form {
  padding-left: 0 !important;
  padding-top: 0 !important;
}

@media (min-width: 768px) {
  .btn-limited-width {
    max-width: 250px;
  }
}

#manual-vehicle-selection-list .selected {
    background-color: var(--bentley-moss);
    /*    border: 2px solid var(--bentley-living-green);*/
}

.list-group-item {
  cursor: pointer;
}

.ng-scope,
.ng-isolate-scope,
.page-banner,
.bg-image-wrapper,
.bg-image-container,
.image-wrapper,
picture,
img.bg-image,
img.slide-image-main {
    border: none !important;
    outline: none !important;
}