/*
Theme Name: TOM
Author: Globant.
Description: Theme for TOM website.
Version: 1.5.0
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"]) {
  border: none;
  border-radius: .75rem;
  padding: .5rem 1rem;
  height: 1.25rem;
}
.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;
}

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