/*
Theme Name: Demo Amazon career choice
Author: Globant.
Description: Theme for TOM website.
Version: 1.0.1
Requires at least: The oldest main WordPress version supported, written in X.X format. 
Tested up to: The last main WordPress version the theme has been tested up to, i.e. 6.0. Write only the number.
Requires PHP: The oldest PHP version supported, in X.X format, only the number.
License: The license of the theme.
License URI: The URL of the theme license.
Text Domain: The string used for textdomain for translation. The theme slug.
*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');


/*TODO: find a better way to manage this behavior */
html{
  overflow-x: hidden;
}

:root {
  --wp--preset--font-family--poppins: 'Poppins', sans-serif;
  --wp--preset--img-carousel-max-width: 385px;
  scroll-behavior: smooth;
}
body {
  font-family: var(--wp--preset--font-family--poppins);
  font-size: 16px;
  overflow-x: hidden;
}
main.wp-block-group{
  margin-top: -1rem;
}
button {
  background-color: var(--wp--preset--color--primary);
  border: none;
  padding: 1rem 4rem;
  color: var(--wp--preset--color--white);
  font-weight: 700;
  border-radius: .5rem;
  transform: 300ms;
}
button:hover{
  opacity: 0.9;
}
button:active{
  opacity: 1;
}
button:disabled{
  background-color: var(--wp--preset--color--grey-3) ;
}

input:not([type="file"]), select {
  border: none;
  border-radius: .75rem;
  padding: .5rem 1rem;
  height: 1.25rem;
}
select {
  height: 2rem;
  appearance: none;
  background-color: var(--wp--preset--color--white);
}
.select {
  display: grid;
  grid-template-areas: "select";
  align-items: center;
}
.select::after {
  content: "";
  width: 0.8em;
  height: 0.5em;
  background-color: var(--wp--preset--color--grey-6);
  clip-path: polygon(100% 0%, 0 0%, 50% 100%);
  justify-self: end;
  transform: translateX(-.5rem);
}
select,
.select:after {
  grid-area: select;
}
.wp-block-button a{
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white);
  font-weight: 500;
  border-radius: .5rem;
  min-width: 20%;
}

.header-image{
  width: max-content;
  position: relative;
  left: 3rem;
}

.hero-header{
  margin: 0 auto;
  width: 50vw;
}

.hero-header-title{
  font-size: 2.5rem;
}

.hero-header-paragraph{
  margin: 1.2rem auto;
  font-size: 1.6rem;
  font-weight: 500;
}

.benefit-journey-container{
  display: grid;
  grid-template-columns: 50% 1fr;
  height: 48rem;
}

.benefit-journey-button {
  margin: 3.5rem auto;
}

.benefit-container {
  padding-left: calc((100vw - var(--wp--style--global--wide-size) )/2);
  padding-right: 7rem;
  padding-top: 2rem;
  padding-bottom: 4rem;
}
.benefit-container h3{
  font-size: 2rem;
}
.start-journey{
  position: relative;
  height: 100%;
  background-color: var(--wp--preset--color--black);
}
.start-journey h3 {
  color: var(--wp--preset--color--primary);
  font-size: 3.75rem;
  margin: 4rem auto;
  text-align: left;
  width: 37vw;
}
.start-journey .wp-block-video{
  position: absolute;
  max-width: calc(var(--wp--style--global--wide-size)/2);
  transform: translate(-3rem, 0);
  box-shadow: 0px 4px 8px 0px #00000040;
}
.what-drives-container .wp-block-cover__inner-container{
  max-width: var(--wp--style--global--wide-size);
}

.what-drives-content h2{
  font-size: 2.5rem;
}

.what-drives-content p{
  margin: 2rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.welcome-wrapper{
  width: 100vw;
  max-width: unset !important;
  padding: 0 2rem;
}
.welcome-container{
  margin-top: -3rem;
  width: 100%;
  display: grid;
  grid-template-columns: 5rem 4fr 3fr;
  position: sticky;
  z-index: 1;
}
.welcome-bkg {
  background-color: var(--wp--preset--color--black);
  grid-column-end: 3;
  grid-row: 1/2;
  border-top-left-radius: .5rem;
  border-bottom-left-radius: .5rem;
}
.welcome-text{
  color: var(--wp--preset--color--white);
  grid-column: 1/3; /* TODO: restore to 1/2 */
  grid-row: 1/2;
  padding-left: calc( (100vw - var(--wp--style--global--wide-size))/2 + 1rem);
  display: flex;
  flex-direction: column;
  align-items: baseline;
}

.welcome-text h3 {
  margin: 2.2rem 0 0;
  min-width: 8.5em;
  padding: 1.5rem 2.5rem;
  font-size: 3.6rem;
  text-shadow: 2px 2px var(--wp--preset--color--black);
  line-height: 1.1;
  position: sticky;
}
.welcome-text p {
  margin: 1rem;
  width: 25rem;
  font-size: 1.3rem;
  font-weight: 600;
  padding: 2.5rem;
}

#image-carousel{
  max-width: var(--wp--preset--img-carousel-max-width);
}

.welcome-carousel{
  grid-row: 1/3;
}


.how-it-works-texts{
  text-align: center;
  padding: 1rem;
}

.how-it-works-texts h2{
  font-weight: 500;
  font-size: 40px;
}

.how-it-works-texts p{
  font-weight: 700;
  color: var(--wp--preset--color--primary);
  font-size: 1.3rem;
}

.how-it-works-button{
  display: flex;
  justify-content: center;
  margin: 2rem;
}

.how-it-works-button a{
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white);
  font-weight: 500;
  border-radius: 0.5rem;
  text-align: center;
  text-decoration: none;
  padding: 0.8rem;
}

.features {
  display: flex;
  justify-content: center;
}
.feature {
  flex: 0 0 calc(var(--wp--style--global--content-size) / 4 );
}
.feature-text {
  border-top: solid .5rem var(--wp--preset--color--yellow);
  padding: .5rem;
  font-size: 0.9rem;
}

.feature-text h3 {
  text-align: center;
}

.feature-icon figure {
  margin: 0 auto;
  max-width: 5rem;
}
.full-width-wrapper {
  width: 100vw;
  max-width: unset !important;
}
.full-width-container {
  max-width: var(--wp--style--global--content-size);
  margin: 0 auto;
}
.careerchoice-register{
  color: var(--wp--preset--color--primary);
  font-weight: 700;
  text-decoration: none;
}
/* Testimonials carousel */
.testimonials-container{
  background-color: var(--wp--preset--color--black);
  color: var(--wp--preset--color--white);
  padding-top: 1rem;
  padding-bottom: 3rem;
}

.testimonial {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--wp--preset--color--grey-1);
  padding: 1.5rem;
  border-radius: 1rem;
}

.testimonials-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.testimonials-heder-img{
  margin-left: -1rem ;
}

#testimonials-carousel .testimonial img {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
}

.testimonial-header-texts{
  margin-right: 1rem;
  font-size: 16px;
}

.testimonial-header-texts h2 {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.testimonial-header-texts p {
  margin: 0;
}

.testimonial-date {
  font-size: 16px ;
  opacity: 0.5;
}

#testimonials-carousel > .splide__pagination {
  bottom: -1.5em;;
}

.testimonial-rating {
  display: flex;
}
.testimonial-rating svg {
  width: 1.5rem;
}

/* Form */
.form-container {
  display: flex;
  width: 100%;
  background-color: var(--wp--preset--color--grey-2) ;
  border-radius: .5rem;
  margin: 0 auto;
  margin-bottom: 2rem;
  margin-top: 2rem;
  max-width: var(--wp--style--global--wide-size);
}
form {
  display: block;
  max-width: 30rem;
  margin: 5rem auto;
  width: 100%;
}
.form-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 1.5rem;
  grid-column-gap: 0px;
}
.form-group>* {
  flex: 1;
}
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 1rem;
}
.label-required span{
  color: var(--wp--preset--color--danger);
}
.label-description {
  font-size: 0.75rem;
}
.form-buttons {
  margin-top: 3rem;
  display: flex;
  width: 100%;
  justify-content: center;
}
.pristine-error{
  color: var(--wp--preset--color--danger);
  font-size: .9rem;
  grid-column: 2 / 3;
  padding-top: 0.25rem;
}

.form-info{
  text-align: center;
  margin-top: 2rem;
}
.form-info-big{
  font-weight: 700;
  margin-bottom: 0;
}
.form-info-small{
  margin-top: 0.5rem;
}

.danger{
  color: var(--wp--preset--color--danger);
}
.submit-btn {
  position: relative;
}
.submit-btn svg {
  display: none;
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(50%);
}
.submit-btn svg path {
  fill: var(--wp--preset--color--white);
}
.form-text{
  text-align: center;
  padding-top: 3rem;
}

.form-text h2{
  font-size: 2.1rem;
  font-weight: 700;
}

.form-text p{
  font-size: 1.5rem;
  font-weight: 600;
}

.splide__slide img {
  width: 100%;
  height: 630px;
  object-fit: cover;
}

.is-today .pika-button {
  color: var(--wp--preset--color--primary) !important; 
}
.is-selected .pika-button, .has-event .pika-button{
 background: var(--wp--preset--color--primary) !important;
 box-shadow: inset 0 1px 3px var(--wp--preset--color--primary);
}
.error-message{
  text-align: center;
  margin-bottom: 1rem;
  display: none;
}
.error-message p {
  font-size: 1rem;
}
.success-message{
  background-color: var(--wp--preset--color--green-1);
  color: var(--wp--preset--color--white);
  display: none;
  grid-template-areas: "message";
  box-shadow: 0px 2px 4px 0px #00000040;
}
.success-message svg {
  width: 1.5rem;
  grid-area: message;
  align-self: center;
  margin-left: 1rem;
}
.success-message p {
  grid-area: message;
  text-align: center;
}

/*Footer*/
.footer_container{
  min-height: 40vh;
  padding: 2.25rem 1rem;
  background-color: var(--wp--preset--color--black);
  color: var(--wp--preset--color--white);
}

.footer-content{
  margin: 0px auto;
  max-width: var(--wp--style--global--wide-size);
  font-family: var(--wp--preset--font-family--poppins);
}

.footer-navigation{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0 2rem;
  padding: .2rem;
}

.footer-navigation h2{
  font-size: 1rem;
}

.footer-navigation a, .footer-navigation p{
  font-size: .8rem;
  color: var(--wp--preset--color--primary);
}

.footer-navigation ul{
  padding: 0;
}

.footer-navigation li{
  list-style: none;
}

/*Bottom footer part*/
.footer-social{
  display: flex;
  flex-flow: column wrap;
  align-items: center;
  color: var(--wp--preset--color--grey-3); 
}

.social-title{
  font-weight: lighter;
  font-size: 1rem;
}

.social-list{
  display: flex;
  list-style: none;
  column-gap: 0.5rem;
}

.social-items{
  border-radius: 9999px;
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--wp--preset--color--grey-6);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.social-items:hover{
  transform: scale(1.1);
}

.social-items svg{
  width: 1rem;
  margin: 0.25rem;
  fill: var(--wp--preset--color--white);
}

.general-links{
  font-size: 0.8rem;
  text-align: center;
}

.general-links a{
  margin: .2rem;
  text-decoration: underline;
  color: var(--wp--preset--color--grey-3);
}

@media screen and (max-width: 1100px) and (min-width: 840px) {
  .first-description>div {
    padding: 0 1rem;
  }
}

@media screen and (max-width: 840px) { 
  .full-width-container {
    margin: 0 1rem;
  }

  .header-image{
    left: 0;
  }

  .hero-header{
    width: 20rem;
  }

  .hero-header-text{
    width: 90vw;
  }

  .hero-header-title{
    text-wrap: balance;
    font-size: 2rem;
  }


  .hero-header-paragraph{
    width: 20rem;
  }

  .what-drives-content h2{
    font-size: 2.7rem;
    margin: 3rem;
  }
  
  .what-drives-content p{
    margin: 0 auto;
    width: 60%;
  }
  
   .what-drives-content a{
    width: 50%;
    margin: 1.3rem;
  } 

  .drives-content{
    text-align: center;
    margin: 0 auto;
    font-size: 20px;
  }

  .welcome-wrapper{
    padding: 0;
  }

  .welcome-container{
    margin-top: auto;
    grid-template-columns: 1fr;
    grid-template-rows: 0fr 1fr 100%;
  }

  .welcome-bkg, .welcome-text {
    padding: 2rem;
    grid-row: 1 / 2;
    grid-column: 1 / 2;
    border-radius: 0;
  }

  .welcome-text h3 {
    margin: 2rem -2rem;
    min-width: min-content;
    font-size: 3rem;
  }

  .welcome-text p {
    margin: 2rem auto;
    padding: 0;
    width: 20rem;
    line-height: 1.4;
  }

  .welcome-carousel{
    grid-row: 2 / 3;
    grid-column: 1 / 2;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #image-carousel{
    max-width: unset;
  }

  .splide__slide img {
    height: 1200px ;
  }


  .features{
    flex-direction: column;
    align-items: center;
  }

  .feature-text{
    width: 20rem;
    text-align: center;
  }
  .benefit-journey-container{
    height: auto;
  }

  .first-description{
    display: flex;
    flex-direction: column;
  }

  .first-description .benefit-container{
    padding: 1rem;
    padding-bottom: 3rem;
    text-align: center;
  }

  .first-description .start-journey{
    padding: 1rem;
    padding-right: 1rem !important;
  }


  .start-journey h3 {
    width: 90vw;
  }

  .start-journey .wp-block-video{
    position: relative;
    width: 100%;
    transform: unset;
    margin: 0 auto;
  }

  .testimonials-content .logo-container  {
    text-align: center;
  }


  .testimonial{
    width: calc(var(--wp--style--global--wide-size) / 3) !important;
  }

  .testimonial-text{
    text-align: center;
    padding: 2rem;
  }

  .testimonials-header{
    flex-direction: column;
    text-align: center;
  }

  header>div{
    padding-left: 1rem;
  }

  #register-form{
    padding: 0 1rem;
    margin: 0 1rem;
    width: unset;
    margin-left: 1rem !important;
    margin-right: 1rem !important;
    margin-bottom: 4rem;
    margin-top: 3rem;
  }

  form{
    margin-top: 2rem;
  }

  .form-text p {
    font-size: 1.125rem;
  }

  .form-group {
    grid-template-columns: repeat(1, 1fr);
  }

  input:not([type="file"]){
    width: unset;
  }

  .form-group>* {
    flex: none;
    width: 100%;
  }

  .pristine-error{
    grid-column: 1 / 2;
  }

  #success-wrapper{
    margin-right: 1rem !important;
    margin-left: 1rem !important;
  }

  .footer-navigation{
    grid-template-columns: repeat(1,1fr);
    margin: 0;
    padding: 1rem;
    column-gap: 1rem;
  }

  .footer-navigation div{
    margin-bottom: 1.2rem;
  }
}