:root {
    --primary-desaturated-red-clr: hsl(0, 36%, 70%);
    --primary-soft-red-clr: hsl(0, 93%, 68%);
    --neutral-grayish-red-clr: hsl(0, 6%, 24%);
    
    /*Gradient clrs*/
    --gradient-1: linear-gradient(135deg, hsl(0, 80%, 86%), hsl(0, 74%, 74%));
    --gradient-2: linear-gradient(135deg, hsl(0, 0%, 100%), hsl(0, 100%, 98%));;
}

*,
*::after,
::before {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

h1, h2,
h3, h4,
h5, h6 {
    text-wrap: balance;
} 

p,
li,
figcaption {
    max-width: 65ch;
    text-wrap: pretty;
}

img,
picture,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border-color: transparent;
}

a {
  text-decoration: none;
  color: inherit;
}

@font-face {
    font-display: swap;
    font-family: "Josefin";
    font-style: normal;
    font-weight: 300;
    src: url(/assets/fonts/josefin-sans-v34-latin-300.woff2);
}

@font-face {
    font-display: swap;
    font-family: "Josefin";
    font-style: normal;
    font-weight: 600;
    src: url(/assets/fonts/josefin-sans-v34-latin-600.woff2);
}


body {
    font-family: "Josefin", serif;
}

.wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.left-section {
    padding-left: 167px;
    width: 62%;
    background: url(/assets/images/bg-pattern-desktop.svg);
}

.right-section {
    width: 38%;
}

.apparel-logo {
    position: absolute;
    width: 150px;
    margin: 67px 30px 30px 167px;
}

.apparel-heading {
    margin-top: 240px;
    margin-bottom: 23px;
    color: var(--primary-desaturated-red-clr);
    font-weight: 400;
    font-size: 4rem;
    letter-spacing: .7rem;
    line-height: 0.95;
 }

.black-heading {
    font-size: 4.2rem;
    line-height: 1;
    color: var(--neutral-grayish-red-clr);
    font-weight: 600;
    letter-spacing: .7rem;
}

.apparel-details {
    font-size: 0.92rem;
    font-weight: 600;
    width: 65%;
    line-height: 2.1;
    color: var(--primary-desaturated-red-clr);
    margin-bottom: 27px;
}

.email-signup {
    position: relative;
    display: block;
    height: 60px;
    width: 450px;
    margin: 0 auto;
    margin-left: 0;
}

.email-signup-input {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgb(192, 189, 189);
    left: 0;
    border-radius: 50px;
    padding-left: 29px;
    outline: none;
}

.email-signup-input::placeholder {
    color: var(--primary-desaturated-red-clr);
    font-size: 1rem;
    font-weight: 600;
    opacity: .6;
}

.email-submit-button {
    position: absolute;
    width: 98px;
    height: 100%;
    border: 1px solid gray;
    right: 0;
    top: 0;
    border-radius: 50px;
    background: var(--gradient-1);
    border: none;
    outline: none;
    cursor: pointer;
    box-shadow: 0px 0px 18px 1px #f4aaab82;
	transition: .3s ease box-shadow;
}

.email-submit-icon {
    margin-left: 47px;
}

.email-signup-button:hover {
    background-image: linear-gradient(135deg, hsl(0, 80%, 86%), hsla(0, 52%, 80%, 0.781));
    box-shadow: 0px 0px 13px 2px #f4aaabbf;
}

.error-icon {
    position: absolute;
    top: 28%;
    right: 108px;
    display: none;
}

.error-text {
    position: absolute;
    padding-left: 30px;
    color: var(--primary-desaturated-red-clr);
    font-weight: 600;
    opacity: .6;
    top: 70px;
    font-size: 0.98rem;
    display: none;
}

.email-signup.show .error-icon{
    display: block;
}

.email-signup.show .error-text{
    display: block;
}

.email-signup.show .email-signup-input{
    border: 2px solid var(--primary-soft-red-clr);
}

@media (max-width: 768px) {
    body {
        height: auto;
        display: flex;
        align-items: flex-start;
        padding: 0;
    }

    .container {
        width: 100%;
        border: none;
    }

    .wrapper {
        display: flex;
        flex-direction: column-reverse;
    }

    .left-section {
        text-align: center;
        width: 100%;
        padding-left: 0;

}

    .right-section {
        width: 100%;
        height: 300px;
        margin-top: 30px;
    }

    .apparel-logo {
        width: 130px;
        margin: 0 20px 40px 20px;
    }

    .header-section {
        padding: 54px 32px 35px 32px;
    }

    .right-section picture,
    .right-section img {
        width: 100%;
        height: 100%;
        object-fit: cover; 
        display: block; 
    }

    .apparel-heading {
        margin-top: 40px;
        margin-bottom: 24px;
        color: var(--primary-desaturated-red-clr);
        font-weight: 500;
        letter-spacing: .5rem;
    }

    .black-heading {
        color: var(--neutral-grayish-red-clr);
        font-weight: 600;
    }

    .apparel-details {
        color: var(--primary-desaturated-red-clr);
        font-weight: 600;
        line-height: 1.2rem;
        font-size: .8rem;
        margin: 0 auto;
        margin-bottom: 28px;
    }

    .email-signup {
        position: relative;
        display: block;
        height: 40px;
        width: 100%;
        max-width: 330px;
        margin: 0 auto;
        margin-bottom: 20px;
    }

    .email-signup-input {
        position: absolute;
        width: 100%;
        height: 100%;
        border: 1px solid var(--primary-desaturated-red-clr);
        left: 0;
        border-radius: 50px;
        padding-left: 20px;
        outline: none;
    }

    .email-signup-input::placeholder {
        color: var(--primary-desaturated-red-clr);
        font-size: 0.89rem;
    }

    .email-submit-button {
        position: absolute;
        width: 52px;
        height: 100%;
        border: 1px solid gray;
        right: 0;
        border-radius: 50px;
        background: var(--gradient-1);
        border: none;
        outline: none;
        cursor: pointer;
        box-shadow: 0px 0px 18px 1px #f4aaab82;
	    transition: .3s ease box-shadow;
    }

    .email-submit-icon {
        margin-left: 21px;
    }

    .email-signup-button:hover {
        background-image: linear-gradient(135deg, hsl(0, 80%, 86%), hsla(0, 52%, 80%, 0.781));
        box-shadow: 0px 0px 13px 2px #f4aaabbf;
    }

    .error-icon {
        top: 20%;
        right: 60px;
    }

    .error-text {
        padding-left: 27px;
        top: 50px;
    }

 }