html {
    font-size: 16px;
    width: 100vw;
    overflow-x: hidden;
}

html.scrollOff {
    overflow-y: hidden;
    height: 100vh;
}

ul, ol, li {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: #000;
}

figure {
    margin: 0;
}

/*     HERO     */

.hero {
    height: 50vh;
    background:linear-gradient(0deg, rgba(40, 40, 40, 0.7), rgba(40, 40, 40, 0.7)), url(../assets/images/contact/hero.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 1rem;
    box-sizing: border-box;
}

.hero-title {
    color: #fff;
    font-family: Avenir, sans-serif;
    font-weight: 300;
    text-transform: capitalize;
    text-align: center;
    max-width: 80vw;
    font-size: 2rem;
}

.hero-title::after{
    content: url("data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 129 129' xmlns:xlink='http://www.w3.org/1999/xlink' enable-background='new 0 0 129 129' fill='%23ffffff'%3E%3Cg%3E%3Cpath d='m121.3,34.6c-1.6-1.6-4.2-1.6-5.8,0l-51,51.1-51.1-51.1c-1.6-1.6-4.2-1.6-5.8,0-1.6,1.6-1.6,4.2 0,5.8l53.9,53.9c0.8,0.8 1.8,1.2 2.9,1.2 1,0 2.1-0.4 2.9-1.2l53.9-53.9c1.7-1.6 1.7-4.2 0.1-5.8z'/%3E%3C/g%3E%3C/svg%3E%0A");
    height: 1rem;
    scale: .1;
    display: block;
}

/*     FORM     */

.content-container {
    height: fit-content;
    width: 100vw;
    display: grid;
    position: relative;
}

/*     INTRODUCTION TEXT     */

.contact-introduction {
    width: 90%;
    padding: 3rem 5% 1rem;
}

.contact__title {
    text-align: center;
    font-size: 2rem;
    color: #EA0029;
    font-family: Cunia, sans-serif;
    font-weight: 700;
}

.contact__text {
    text-align: center;
    font-size: 1rem;
    font-family: Avenir, sans-serif;
    font-weight: 400;
}

/*     FORM     */

.contact-form {
    width: 90vw;
    padding: 1rem 5%;
    display: flex;
    flex-direction: column;
}

.contact-form__form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.form__input {
    width: 100%;
    border: none;
    background-color: rgba(118, 119, 122, 0.30);
    margin-bottom: 1rem;
    min-height: 2.5rem;
    position: relative;
}

textarea.form__input {
    resize: none;
}

.form__input::placeholder {
    font-size:.7rem;
    position: absolute;
    top: 0;
    left: 0;
    margin: 5px;
    font-family: Avenir, sans-serif;
    font-weight: 500;
}

.form__input:focus-visible {
    outline: none;
    border-radius: 5px;
    border-width: 2px;  
}

.form__button {
    text-transform: uppercase;
    padding: 1rem;
    box-sizing: border-box;
    border: none;
    background-color: #EA0029;
    color: #fff;
    margin: .5rem 0;
    font-family: Avenir, sans-serif;
    font-weight: 500;
    width: 100%;
}

/*      FAQ      */

.faq {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem 5%;
    width: 90%;
    margin: auto;
    box-sizing: border-box;
}

.faq-title {
    text-align: center;
    font-size: 1.2rem;
    font-family: Avenir, sans-serif;
    font-weight: 700;
    margin: 0;
}

.faq-text {
    text-align: center;
    font-size: 1rem;
    font-family: Avenir, sans-serif;
    font-weight: 300;
}


/*     NOTIFICATION     */

.notification {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    height: 5rem;
    width: 5rem;
    display: none;
    z-index: 10;
}

.notification.loading, .notification.sent {
    display: initial;
}

.notification svg {
    height: inherit;
}

.notification .loading-dash {
    stroke-dashoffset: 800;
    stroke-dasharray: 1100;
    transform-origin: center;
}

.notification .mail-icon {
    animation-fill-mode: forwards; 
}

.notification .loading-dash {
    -webkit-animation: rotating 2s linear infinite;
    -moz-animation: rotating 2s linear infinite;
    -ms-animation: rotating 2s linear infinite;
    -o-animation: rotating 2s linear infinite;
    animation: rotating 2s linear infinite;
}

.notification.loading .sent-check{
    display: none;
}

.notification.sent .loading-dash {
    animation: dash .5s linear forwards;
}

.notification.sent .sent-check{
    display: block;
    animation: check-animation .5s linear forwards;
}
  
@keyframes dash {
to {
    stroke-dashoffset: 0;
}
}

.sent-check.fill {
    -webkit-animation: check-fill .3s ease-in-out ;
    -moz-animation: check-fill .3s ease-in-out ;
    -ms-animation: check-fill .3s ease-in-out ;
    -o-animation: check-fill .3s ease-in-out ;
    animation: check-fill .3s ease-in-out ;
    animation-fill-mode: forwards;
}

@keyframes check-fill {
    to {
        fill: #8FCCC7;
    }
}

@keyframes check-animation {
    from {
        stroke-dasharray: 1000;
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dasharray: 1000;
        stroke-dashoffset: 0;
    }
}

@media only screen and (min-width: 425px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .contact__text {
        width: 80vw;
        margin: auto;
        font-size: 1rem;
    }

    /*     FORM     */

    .contact-form {
        width: 80%;
        padding: 1rem 10%;
    }

    /*      FAQ      */

    .faq {
        padding: 2rem 10%;
    }

}

@media only screen and (min-width: 600px) {

    /*     FORM     */

    .contact-form {
        width: 50%;
        padding: 1rem 25%;
    }

}

@media only screen and (min-width: 768px) {

    .hero-title {
        font-size: 2rem;
    }

    .contact__text {
        width: inherit;
        font-size: 1rem;
    }

    /*     FORM     */

    .content-container {
        height: fit-content;
        width: 60vw;
        margin: auto;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    /*     FORM       */

    .contact-form {
        width: 100%;
        padding: 1rem;
        box-sizing: border-box;
    }

    .faq {
        padding: 2rem 10% 3rem;
    }

    .faq-title {
        font-size: 1.5rem;
    }
    
    .faq-text {
        font-size: 1.2rem;
    }

}

@media only screen and (min-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
}



/*       ANIMATIONS        */

@-webkit-keyframes rotating /* Safari and Chrome */ {
    from {
      -webkit-transform: rotate(0deg);
      -o-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    to {
      -webkit-transform: rotate(360deg);
      -o-transform: rotate(360deg);
      transform: rotate(360deg);
    }
  }
  @keyframes rotating {
    from {
      -ms-transform: rotate(0deg);
      -moz-transform: rotate(0deg);
      -webkit-transform: rotate(0deg);
      -o-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    to {
      -ms-transform: rotate(360deg);
      -moz-transform: rotate(360deg);
      -webkit-transform: rotate(360deg);
      -o-transform: rotate(360deg);
      transform: rotate(360deg);
    }
  }

.right-in {
    -webkit-animation-name: right-in;
    -webkit-animation-duration: .5s;
    animation-name: right-in;
    animation-duration: .5s;
    animation-fill-mode: forwards; 
}

@keyframes right-in {
    from {
        transform: translateX(100vw);
    }
    
    to {
        transform: translateX(0);
    }
}

@-webkit-keyframes right-in {
    from {
        transform: translateX(100vw);
    }
    
    to {
        transform: translateX(0);
    }
}

.right-out {
    -webkit-animation-name: right-out;
    -webkit-animation-duration: .5s;
    animation-name: right-out;
    animation-duration: .5s;
    animation-fill-mode: forwards; 
}

@keyframes right-out {
    from {
        transform: translateX(0);
    }
    
    to {
        transform: translateX(100vw);
    }
}

@-webkit-keyframes right-out {
    from {
        transform: translateX(0);
    }
    
    to {
        transform: translateX(100vw);
    }
}

.slide-in {
    -webkit-animation-name: slide-in;
    -webkit-animation-duration: .5s;
    animation-name: slide-in;
    animation-duration: .5s;
    animation-fill-mode: forwards; 
}

@keyframes slide-in {
    from {
        transform: translateX(100vw);
    }
    
    to {
        transform: translateX(0);
    }
}

@-webkit-keyframes slide-in {
    from {
        transform: translateX(100vw);
    }
    
    to {
        transform: translateX(0);
    }
}

.slide-out {
    -webkit-animation-name: slide-out;
    -webkit-animation-duration: .5s;
    animation-name: slide-out;
    animation-duration: .5s;
    animation-fill-mode: forwards; 
}

@keyframes slide-out {
    from {
        transform: translateX(0);
    }
    
    to {
        transform: translateX(100vw);
    }
}

@-webkit-keyframes slide-out {
    from {
        transform: translateX(0);
    }
    
    to {
        transform: translateX(100vw);
    }
}

.slide-down {
    -webkit-animation-name: slide-down;
    -webkit-animation-duration: 1s;
    animation-name: slide-down;
    animation-duration: 1s;
    animation-fill-mode: forwards; 
}

@keyframes slide-down {
    from {
        max-height: 0%;
    }
    
    to {
        max-height: 100%;
    }
}

@-webkit-keyframes slide-down {
    from {
        max-height: 0%;
    }
    
    to {
        max-height: 100%;
    }
}

.slide-up {
    -webkit-animation-name: slide-up;
    -webkit-animation-duration: 1s;
    animation-name: slide-up;
    animation-duration: 1s;
    animation-fill-mode: forwards; 
}

@keyframes slide-up {
    from {
        max-height: 100%;
    }
    
    to {
        max-height: 0%;
    }
}

@-webkit-keyframes slide-up {
    from {
        max-height: 100%;
    }
    
    to {
        max-height: 0%;
    }
}

.fade-in {
    -webkit-animation-name: fade-in;
    -webkit-animation-duration: .5s;
    animation-name: fade-in;
    animation-duration: .5s;
    animation-fill-mode: forwards; 
}

@-webkit-keyframes fade-in {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes fade-in {
    from {opacity: 0;}
    to {opacity: 1;}
}

.fade-out {
    -webkit-animation-name: fade-out;
    -webkit-animation-duration: .5s;
    animation-name: fade-out;
    animation-duration: .5s;
    animation-fill-mode: forwards; 
}

@-webkit-keyframes fade-out {
    from {opacity: 1;}
    to {opacity: 0;}
}

@keyframes fade-out {
    from {opacity: 1;}
    to {opacity: 0;}
}

.carousel-in-left{
    -webkit-animation-name: carousel-in-left;
    -webkit-animation-duration: .5s;
    animation-name: carousel-in-left;
    animation-duration: .5s;
    animation-fill-mode: forwards; 
}

@keyframes carousel-in-left {
    from {
        transform: translateX(100vw);
    }
    
    to {
        transform: translateX(0);
    }
}

@-webkit-keyframes carousel-in-left {
    from {
        transform: translateX(100vw);
    }
    
    to {
        transform: translateX(0);
    }
}

.carousel-in-right{
    -webkit-animation-name: carousel-in-right;
    -webkit-animation-duration: .5s;
    animation-name: carousel-in-right;
    animation-duration: .5s;
    animation-fill-mode: forwards; 
}

@keyframes carousel-in-right {
    from {
        transform: translateX(-100vw);
    }
    
    to {
        transform: translateX(0);
    }
}

@-webkit-keyframes carousel-in-right {
    from {
        transform: translateX(-100vw);
    }
    
    to {
        transform: translateX(0);
    }
}

.carousel-out-left {
    -webkit-animation-name: carousel-out-left;
    -webkit-animation-duration: .5s;
    animation-name: carousel-out-left;
    animation-duration: .5s;
    animation-fill-mode: forwards; 
}

@keyframes carousel-out-left {
    from {
        transform: translateX(0);
    }
    
    to {
        transform: translateX(-100vw);
    }
}

@-webkit-keyframes carousel-out-left {
    from {
        transform: translateX(0);
    }
    
    to {
        transform: translateX(-100vw);
    }
}

.carousel-out-right {
    -webkit-animation-name: carousel-out-right;
    -webkit-animation-duration: .5s;
    animation-name: carousel-out-right;
    animation-duration: .5s;
    animation-fill-mode: forwards; 
}

@keyframes carousel-out-right {
    from {
        transform: translateX(0);
    }
    
    to {
        transform: translateX(100vw);
    }
}

@-webkit-keyframes carousel-out-right {
    from {
        transform: translateX(0);
    }
    
    to {
        transform: translateX(100vw);
    }
}


/*     FONTS     */

@font-face {
    font-family: 'Avenir';
    font-weight: 900;
    font-style: normal;
    src: url(../assets/fonts/Avenir-Black.ttf);
    font-display: swap;
}

@font-face {
    font-family: 'Avenir';
    font-weight: 500;
    font-style: normal;
    src: url(../assets/fonts/Avenir-Medium.ttf);
    font-display: swap;
}

@font-face {
    font-family: 'Avenir';
    font-weight: 400;
    font-style: normal;
    src: url(../assets/fonts/Avenir-Roman.ttf);
    font-display: swap;
}

@font-face {
    font-family: 'Cunia';
    font-weight: 700;
    font-style: normal;
    src: url(../assets/fonts/Cunia.ttf);
    font-display: swap;
}