                                         /* IMPORT FONT-STYLES  */
@font-face {
    font-family: 'Roboto Bold';
    src: url('/assets/fonts/Roboto-Bold.ttf') format('ttf');
    font-weight: 700;
}
@font-face {
    font-family: 'Roboto Regular';
    src: url('/assets/fonts/Roboto-Regular.ttf') format('ttf');
    font-weight: 400;
}
                                    /* MINIMAL RESET BASIC STYLES IN CSS */
* {
    margin:0;
    padding:0;
    box-sizing: border-box;
}
                                            /* MAIN VARIABLES */
:root {
    --blue-800: hsl(234, 29%, 20%);
    --blue-700: hsl(235, 18%, 26%); 
    --grey: hsl(0, 0%, 58%); 
    --white: hsl(0, 0%, 100%);
    --primary-red:#FF6155;
    --main-font:'Roboto', sans-serif;
    --main-font-weight-bold:700;
}
/* Basic styles for screen with width 375 and upper */
body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width:100vw;
    margin: 0;
    font-family: var(--main-font);
    background-color: var(--white);
    padding: 0;
}
main {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100vw;
    height:100vh;
    background-color: var(--white);
    border-radius: 0;
    padding: 0;
    box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.2);
}
button {
    width: 100%;
    height: 3.5rem;
    border: none;
    font-weight: 700;
    border-radius: 0.5rem;
    transition: all 0.3s ease-in-out;
}
input:focus {
    outline: none;
}
.button-gradient {
    background: linear-gradient(to right, #FF6A3A, #FF527B);
    box-shadow: 0px 0.813rem 3.313rem 0.375rem #FF527B;
}
label {
    font-size: 0.75rem;
    font-weight: 700;
}
.newsletter-signup-form {
    display:flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    height:100%;
    padding: 0 1.5rem 2.75rem 1.5rem;
}
.form-header-title {
    font-size: 2.5rem;
    text-align: left;
    margin: 0;
}
.form-header-description {
    margin-top: 1.5rem;
    line-height: 150%;
    text-align: left;
}
.form-list-container {
    margin:1.5rem 0 2.5rem 0;
    line-height: 150%;
    list-style: none;
}
.form-list-container li {
    position:relative;
    padding-left:2rem;
    line-height:1.5;
}
.form-list-description::before {
    content:url("/assets/images/icon-list.svg");
    position: absolute;
    top:0;
    left:0;
}
.form-list-description:nth-child(2) {
    margin: 0.5rem 0;
}
.form-input-field {
    width: 100%;
    height: 3.5rem;
    margin: 0.5rem 0 1.5rem 0;
    border-radius: 0.5rem;
    border: 0.125rem solid var(--grey);
    padding: 1rem 1.5rem;
}
.form-submit-button {
    width: 100%;
    height: 3.5rem;
    font-weight: 700;
    background-color: var(--blue-800);
    color: var(--white);
}
.decoration-image-container {
    width: 100%;
}
.decoration-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
                                          /* STYLES FOR SUCCES MESSAGE CONTAINER  */
.success-message-container {
    position: absolute;
    top:50%;
    left:50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height:100%;
    border-radius: 0;
    padding: 9.313rem 1.5rem 0 1.5rem;
    background-color: var(--white);
    box-shadow: 0 0.313rem 0.5rem rgba(0, 0, 0, 0.2);
}
.success-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 2rem 0;
    color: var(--blue-800);
}
.success-message-description {
    color: var(--blue-800);
    line-height: 150%;
    margin-bottom: auto;
    text-align: left;
}

.success-span-email {
    color: var(--blue-800);
    font-weight: 700;
}
.success-message-dismiss-button-container {
    display:flex;
    align-items: flex-end;
    height:40vh;
    width:100%;
    margin-bottom:4.375rem;
}
.success-message-dismiss-button {
    background-color: var(--blue-800);
    color: var(--white);
    font-weight: 700;
    border-radius: 0.5rem;
    transition: all 0.3s ease-in-out;
}
                                                 /* MEDIA QUERIES */

 /*Tablet styles*/
@media (min-width: 48rem) {
    body {
        height:100vh;
        align-items: center;
        justify-content: center;
        background-color: var(--blue-800);
    }
    main {
        flex-direction: column-reverse;
        gap: 3rem;
        max-width:38rem;
        height:fit-content;
        padding: 2.5rem;
        border-radius: 2.25rem;
    }

    .form-header-title {
        font-size: 3.5rem;
        text-align: left;
    }

    .form-header-description {
        text-align: left;
    }
    .decoration-image-container {
        width:100%;
    }
    .decoration-image {
      width:100%;
      border-radius: 1rem;
    }
    .success-message-container {
        max-width:31.5rem;
        height:fit-content;
        padding: 4rem;
        border-radius: 2.25rem;
    }
    .success-message-dismiss-button-container {
        align-items: flex-start;
        height:fit-content;
        padding-top: 2rem;
        margin-bottom: 0;
    }
    .success-title {
        font-size: 3rem;
        text-align: left;
    }
    .success-message-description {
        text-align: left;
    }
}
/*  Desktop styles*/
@media (min-width: 90rem) {
    main {
        flex-direction: row;
        max-width: 68.75rem;
        padding: 4rem;
        width:fit-content;
        height:fit-content;
        padding: 2rem;
    }
    .newsletter-signup-form {
        flex-direction: column;
        justify-content: center;
    }
    .form-header-title {
        font-size: 3.5rem;
    }
    .success-message-container {
        padding: 4rem;
        border-radius: 2.25rem;
    }
    .success-title {
        font-size: 3.5rem;
    }
}
 .success-message-dismiss-button:hover {  /*HOVER EFFECT ON THE BUTTON */
    box-shadow: 0px 0.813rem 3.313rem 0.375rem #FF527B;
    background: linear-gradient(to right, #FF6A3A, #FF527B);
}
                                              /* ERROR STATE STYLES FOR FORM */
                                                     /* ERROR MESSAGE */
 .hidden {  /*CLASS FOR DYNAMICAL CHANGE STATE FORM AND MESSAGE */
    display:none !important;
}
.form-error-state-container {
    display: flex;
    justify-content: space-between;         
}            
.form-error-message {
    font-size: 0.75rem;
    color: var(--primary-red);
    font-weight: 700;                  
}
                                             /* INPUT-FIELD ERROR STATE */
.input-field-error-state {
    border:solid 1px var(--primary-red);
    background-color: #FFE7E6;
    color: var(--primary-red);
}
.placeholder-field-eror::placeholder {
    color:var(--primary-red);
}
                                                  /* MODAL ANIMATION */
.modal-apear-animation {
    animation: modal-apear-animation 0.3s ease forwards;
}
.modal-close-animation {
    animation: modal-disapear-animation 0.3s ease forwards;
}
.shake-input-fields {
    animation:shake-input-field 0.7s ease-in-out forwards;
}
@keyframes modal-apear-animation { from { filter:opacity(0); } to { filter: opacity(1); } }
@keyframes modal-disapear-animation { from { filter: opacity(1); } to { filter: opacity(0); } }
@keyframes shake-input-field {
    0% {
        transform: scale(1.1);
    }
    40% {
        transform: scale(1.0);
    }
    50% {
        transform: translateX(-15px);
    }
    60% {
        transform: translateX(15px);
    }
    80%{
        transform: translateX(-15px);
    }
    100%{
        transform: translateX(0);
    }
}