/*
Theme Name: Ryder Company
Author: Globant.
Description: Theme for Ryder company
Version: 1.0.4
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;
}
[inert]{
  opacity: 0.5;
}
body {
  font-family: var(--wp--preset--font-family--poppins);
  font-size: 16px;
}
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);
  pointer-events: none;
}
select,
.select:after {
  grid-area: select;
}

.form-container {
  display: flex;
  width: 100%;
  background-color: var(--wp--preset--color--grey-2) ;
  border-radius: .5rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}
form {
  display: block;
  max-width: 30rem;
  margin: 5rem auto;
  width: 100%;
}
.form-group {
  /* display: flex;
  flex-wrap: wrap; */
  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 span {
  display: none;
}
.label-required span{
  display: inline;
  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: 3rem;
}
.form-info-big{
  font-weight: 700;
  margin-bottom: 0;
}
.form-info-small{
  margin-top: 0.5rem;
}
a{
  text-decoration: none;
}

.display{
  display: block;
  margin-bottom: 0.5rem;
}

.text-style{
  margin-bottom: 2px;
}

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

.success-wrapper{
  text-align: center;
  border-radius: 1rem;
  padding: 2rem;
  padding-bottom: 4rem;
  margin-bottom: 2rem;
}
.success-wrapper figure {
  margin: 0 auto;
}
.success-wrapper img {
  min-height: 163px;
}
.success-wrapper h1 {
  width: 100%;
  text-align: center;
  margin-bottom: 2rem;
}
.tom-hero {
  padding: 0 2rem;
}
.error-message{
  text-align: center;
  margin-bottom: 1rem;
  display: none;
}
.error-message p {
  font-size: 1rem;
}
/*Success page*/
.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;
}

/*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);
}

.email-group{
  position: relative;
}

.email-spinner{
  display: none;
  position: absolute;
  top: 0.25rem;
  right: -0.5rem;

  transform: translateX(100%);
}
.email-spinner[data-show="true"]{
  display: block;
}

@media screen and (max-width: 840px) {
  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%;
  }
  .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;
  }
}
