@import './colors.css';


@font-face {
  font-family: Electro Shackle;
  src: url("../assets/fonts/electro_shackle/Electro\ Shackle.otf") format("opentype");
}

@font-face {
  font-family: Gotham b;
  src: url("../assets/fonts/gotham/HomepageBaukasten-Bold.otf") format("opentype");
}

/* ------------------------------------ Common ------------------------------------ */

.continue-button {
    margin: 2em 0;
    width: 10em;
    height: 2.2em;
    font-size: 13pt;
    border: none;
    border-radius: 17px;
    background-color: #29abe2;
    color: white;
    font-weight: 400;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.5s;
}

.continue-button:hover {
    background-color: #0072c0;
}

.continue-button.wide {
  width: 14em;
}

.continue-button > a {
  color: white;
  font-weight: 400;
  text-transform: uppercase;
}

col {
  flex-direction: column !important;
}


/* ------------------------------------ Journey one & two ------------------------------------ */

/* ------------ journey-landing ------------ */

.journey-landing {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}

.journey-landing.auto {
  height: auto;
  text-align: center;
}

.journey-landing-inputs-image > .image-container {
  text-align: center;
}

.journey-landing-inputs-image > .image-container > img {
    max-width: 64%;
    min-width: 16em;
    height: auto;
}

.inputs-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-text-step-text {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  text-align: center;
  color: white;
}

.logo-text-step-text > p {
    margin-top: 1.5em;
    font-size: 13pt;
    color: white;
}

/* ------------ journey-content ------------ */

.pl-3 {
  padding-left: 3em;
}

.journey-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.car-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0.5em 0;
}

.car-details-card {
  text-align: center;
  margin: 1.2em 0;
}

.car-details-card > * {
  margin: 4px;
}

.car-details-card > img {
  width: 55px;
}

.car-details-card > p {
  color: #29abe2;
  text-transform: uppercase;
  font-weight: 600;
}

.detail-title {
  font-size: 11pt;
}

/* --  Features -- */

h1.feature-h1 {
  color: #29abe2;
  font-weight: 400;
}

h2.feature-h2 {
  color: #29abe2;
  font-weight: 400; 
  margin: 0 0 15px;
}

h4.feature-h4 {
  color: #29abe2;
  font-weight: 400;
  margin: 0 0 15px;
}

.feature-section.performance > p {
  color: #29abe2;
}

.car-features {
  width: 90%;
  margin: 2em 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-section {
  text-align: center;
  width: 95%;
  max-width: 467px;
  margin: 2em 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-selection {
  display: flex;
  justify-content: center;
}

.feature-selection.col {
  flex-direction: column;
}

.feature {
  padding: 2em 0;
  width: inherit;
}

.border-bottom {
    border-bottom: 1.3px solid #999999;
    opacity: 0.8;
}


/* Radio buttons */

input[type=radio] {
  opacity: 0;
  position: absolute;
}

.radio-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin: 0 10px;
}

.feature-radio-button {
  width: 3em;
  height: 3em;
  position: relative;
  border-radius: 50%;
  cursor: pointer;
}

.feature-radio-button.active:after {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 2px solid #29abe2;
  border-radius: 50%
}

.feature-radio-button > img {
  height: 100%;
}

.feature-radio-button.active-invert:after {
  border: 2px solid white;
} 

.radio-container > p {
  color: #29abe2;
  font-weight: 400;
  margin-top: 16px;
}

.autopilot-radio-selections > * {
  width: 120px;
}

/* Check box */

.feature-checkbox {
  padding: 8px 12px;
  cursor: pointer;
  width: 9em;
  display: inline-block;
  background-color: #29abe2;
  color: white;
  border-radius: 56px;
  white-space: nowrap;
  margin: 3px 0px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: all .2s;
}

.feature-checkbox:before {
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 12px;
  padding: 2px 6px 2px 2px;
  content: "\f067";
  transition: transform .3s ease-in-out;
}

.feature-selection input[type="checkbox"]:checked + label::before {
  content: "\f00c";
  transform: rotate(-360deg);
  transition: transform .3s ease-in-out;
}

.feature-selection input[type="checkbox"]:hover + label {
    background-color: #0072c0;
}

.feature-selection input[type="checkbox"]:checked + label {
    background-color: rgb(0, 157, 0);
    color: #fff;
    transition: all .2s;
}

.feature-selection input[type="checkbox"] {
  display: absolute;
}

.feature-selection input[type="checkbox"] {
  position: absolute;
  opacity: 0;
}

.feature-performance-checkbox-label {
  width: 16em;
}

.performance-pack-info {
  color: #29abe2;
  margin: 1em 0;
}

.performance-pack-info > ul > li > p {
  color: #29abe2;
}


/* ------------------------------------ Journey Three ------------------------------------ */

/* ------------ journey-first-section ------------ */
.landing-header {
  height: 12em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
}


.landing-header > img {
  width: 22em;
}

.journey-landing.personal-details > * {
  margin: 0.5em 0;
}

.journey-landing.personal-details > .journ-landing-img-container {
  margin: 2.5em 0;
}

.journey-landing.personal-details > .customer-details-container,
.journey-landing.personal-details > .continue-button {
  margin-bottom: 2.5em;
}

.journ-landing-img-container {
  padding: 3em 2em;
}

.journ-landing-img-container > img {
  width: 100%;
  height: auto;
}

.customer-details-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 35em;
}

.customer-details-input {
  line-height: 3em;
  width: 75%;
  padding-left: 20px;
  margin-top: 1em;
  border: 1px solid #0072c0;
  border-radius: 7px;
  font-size: 10pt;
  letter-spacing: 1px;
}

.customer-details-select {
    height: 3.2em;
    width: 75%;
    padding-left: 20px;
    margin-top: 1em;
    border: 1px solid #0072c0;
    border-radius: 7px;
    font-size: 10pt;
    letter-spacing: 1px;
    -ms-box-sizing: content-box;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
}





/* ------------------------------------ Journey Four - Offer & No Offer ------------------------------------ */


h1.offer-amount {
  color: #29abe2;
  font-size: 55pt;
  font-weight: bold;
  font-family: 'Gotham b', sans-serif;
}

h3.collect {
  color: #29abe2;
  max-width: 25em;
  width: 100%;
}


.offer-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 5em;
}

.offer-inner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 75%;
  max-width: 74em;
  max-width: 60em;
  margin-top: 2em;
}

.offer-container.sorry {
  margin-bottom: 0;
}

.offer-container.sorry > .offer-inner-container {
  width: auto;
}


.offer-inner-container > .journ-landing-img-container > img {
  max-width: 26em;
}

.desktop-text-br {
  display: none;
}

.journey-landing.offer-section > .collect {
    margin-bottom: 0;
}

.journey-landing.offer-section > a {
  padding-bottom: 2px;
  border-bottom: 1px solid black;
  cursor: pointer;
  color: black; /* TODO: Update this to the grey guidelines */
}

.journey-landing.offer-section > *,
.journey-landing.sorry-section > * {
  margin-bottom: 2em;
}

.tc-checkbox-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 35em;
}

.tc-checkbox-container > input,
.tc-checkbox-container > label {
  cursor: pointer;
}


.container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 3em 0 !important;
    margin-bottom: 5em !important;
}

.email {
    background: rgb(0 114 192);
    color: white;
    border-radius: 16px;
    height: 32px;
    overflow: hidden;
    position: relative;
    width: 162px;
    -webkit-tap-highlight-color: transparent;
    transition: width 300ms cubic-bezier(0.4, 0.0, 0.2, 1), height 300ms cubic-bezier(0.4, 0.0, 0.2, 1), box-shadow 300ms cubic-bezier(0.4, 0.0, 0.2, 1), border-radius 300ms cubic-bezier(0.4, 0.0, 0.2, 1);
    transition: all .2s;
}

.to {
    opacity: 0;
    position: absolute;
    transition: opacity 100ms cubic-bezier(0.4, 0.0, 1, 1);
}

.to-contents {
    transform: scale(.55);
    transform-origin: 0 0;
    transition: transform 300ms cubic-bezier(0.4, 0.0, 0.2, 1);
}

.top {
    background: rgb(0 114 192);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 70px;
    transition: height 300ms cubic-bezier(0.4, 0.0, 0.2, 1);
}

.top > img {
    position: absolute;
    height: 3em;
    left: 20px;
}

.name-large {
    color: white;
    font-size: 14px;
    height: auto;
    width: 55%;
    padding-left: 9%;
}

.bottom {
    background: #FFF;
    color: #444247;
    font-size: 14px;
    padding-top: 5px;
    width: 100%;
    text-align: start;
}

.row {
    align-items: center;
    display: flex;
    flex-direction: row;
    height: 60px;
    margin-left: 16px;
}

.row:before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 12px;
    padding: 2px 6px 2px 2px;
    content: "\f00c";
    transition: transform .3s ease-in-out;
    color: green;
}

.email.expand {
    border-radius: 6px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.10), 0 6px 6px rgba(0,0,0,0.16);
    height: 374px;
    width: inherit;
}

.expand .to {
    opacity: 1;
    transition: opacity 200ms 100ms cubic-bezier(0.0, 0.0, 0.2, 1);
    width: 100%;
}

.expand .to-contents {
    transform: scale(1);
}





  /* --------------------- Journey Accepted --------------------- */

.thank-you {
  color: #29abe2;
}

.journey-landing.accepted-section {
  margin: 2em 0;
}

.journey-landing.accepted-section > * {
  margin: 2em 0;
}

.accepted-section > img {
  height: auto;
  width: 100%;
  max-width: 37em;
}

h2.accepted {
  color: #29abe2;
}

h3.accepted-card-h3 {
  color: #29abe2;
}

h4.accepted-card-h4 {
    color: #29abe2;
}

.accepted-card > p {
  font-size: 12pt;
  margin-top: 1em;
  width: 100%;
  max-width: 41em;
}



@media only screen and (min-width: 768px) {
    .feature-radio-button {
        width: 4em;
        height: 4em;
    }
}

@media only screen and (min-width: 1024px) {

    /* --------------------- Journey one --------------------- */

    /* -------- journey-landing -------- */

    .journey-landing {
        height: 29em;
    }

    .journey-landing.full {
        height: auto;
    }

    .journey-landing-inputs-image {
        display: flex;
    }

    /* -------- journey-content -------- */

        /* Keeping these commented out as there is another possible view on desktop for details. */
      .car-details {
        /* flex-direction: row;
        flex-wrap: wrap;
        width: 63%;
        align-items: center; */
        /* padding-left: 22%; */
        }

      .car-details-card {
        /* flex: 1 0 38%; */
        /* text-align: left;
        display: flex;
        align-items: flex-end; */
      }

      .car-details-card > img {
        width: 63px;
      }

      .detail-title {
        font-size: 13pt;
      }

      .detail-value {
        font-size: 11pt;
      }

      .car-features {
        width: 50%;
      }

    /* --------------------- offer page --------------------- */

    .offer-container.offer {
        height: 23em;
    }

    .offer-inner-container {
        flex-direction: row;
    }

    .mobile-text {
        display: none;
    }

    .desktop-text-br {
        display: block;
    }

    .container {
        width: 80%;
        max-width: 50em;
    }

    .name-large {
        width: 100%;
        padding-left: 0;
    }
}

