/*
Theme Name: Demo Amazon AFP no license
Author: Globant.
Description: demo theme for Amazon AFP without license
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');

:root {
  --wp--preset--font-family--poppins: 'Poppins', sans-serif;
}
body {
  font-family: var(--wp--preset--font-family--poppins);
  font-size: 16px;
  /* width: 100vw;
  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: .6rem;
  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;
}

.full-width-wrapper {
  width: 100vw;
  max-width: unset !important;
}
.full-width-container {
  max-width: var(--wp--style--global--content-size);
  margin: 0 auto;
}
.testimonials{
  background-color: var(--wp--preset--color--black);
  color: var(--wp--preset--color--white);
  padding-top: 1rem;
  padding-bottom: 3rem;
}

.form-container {
  display: flex;
  flex-direction: column;
  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: flex;
  flex-wrap: wrap; */
  display: grid;
  grid-template-columns: repeat(1, 1fr 2fr);
  margin-bottom: 1.5rem;
  grid-column-gap: 0px;
}
.form-group.fieldset fieldset{
  grid-column: 1 /3;
}
.hide{
  display: none;
}
.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 {
  width: 100%;
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.form-hint{
  font-size: 0.9rem;
  margin-top: 0.25rem;
  grid-column: 1/3;
  text-align: right;
}

.form-hint a{
  color: var(--wp--preset--color--primary-dark);
  text-decoration: none;
}
fieldset{
  border: none;
  padding: 0;
}
fieldset legend {
  font-weight: 700;
}
.fieldset-input{
  margin-top: 5%;
  margin-left: 33%;
}
.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;
  cursor: pointer;
}
.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;
}
/* TODO: remove if pika is not used*/
.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;
}

/*Custom checkbox*/
.checkbox-container {
  display: block;
  position: relative;
  max-width: max-content;
  padding-left: 35px;
  margin-bottom: 15px;
  cursor: pointer;
  font-size: 1rem;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: var(--wp--preset--color--white);
  border-radius: 20%;
  border: 2px solid var(--wp--preset--color--black)
}

.checkbox-container:hover input ~ .checkmark {
  background-color: var(--wp--preset--color--grey-2);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  top: -4px;
	left: 3px;
  content: "\2713";
  color: var(--wp--preset--color--primary);
  font-size: 19px;
  font-weight: 700;
}

/*Success & error pages style*/
.success_bg {
  background-color: var(--wp--preset--color--black);
}

.success__page{
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90%;
  max-width: 30rem;
  margin: 5rem auto;
}

.success__texts{
  text-align: center;
  color: var(--wp--preset--color--white);
  font-weight: 700;
}

.success__texts p{ 
  font-size: 1.2rem;
  margin: 4.5rem auto 1rem;
  width: 77%;
}

.btn__register{
  background-color: var(--wp--preset--color--primary);
  cursor: pointer;
  font-size: 1rem;
}

.error__page p{
  width: auto;
}

.error__page a{
  color: var(--wp--preset--color--primary);
  font-size: 1.2rem;
  text-decoration: none;
}

/*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);
  margin: 1.25rem;
  gap: .8rem; 
}

.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;
  }

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

  .welcome-wrapper{
    padding: 0;
  }

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

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

  .welcome-text p {
    padding-right: 0;
  }

  .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 ;
  }

  .welcome-text-secondary{
    padding: 1rem;
    grid-row: 3 / 4;
    grid-column: 1 / 2; 
    margin: 2rem 4rem ;
    font-size: 18px;
  }

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

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

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

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

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

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

  #form-container{
    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-group {
    grid-template-columns: repeat(1, 1fr);
  }

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

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

  .form-hint{
    grid-column: 1 / 2;
  }

  .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;
  }
}
