@import url('https://fonts.googleapis.com/css2?family=Inter&family=Plus+Jakarta+Sans&display=swap');
/* font-family: 'Inter', sans-serif;
font-family: 'Plus Jakarta Sans', sans-serif; */

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;;
    font-size: 18px;
    display: flex;
    align-items: center;
}

:root {
    --btnPrimary: #FFBE2E;
    --inputError: hsl(0, 100%, 66%);
    --white: hsl(0, 0%, 100%);
    --light-white: hsl(270, 3%, 87%);
    --dark-gray: hsl(279, 6%, 55%);
    --dark: #1E1E1E;
}

#left {
    width: 480px;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

#right {
    background-color: var(--white);
}

#card1 {
    background-image: url(./assets/card1.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--white);
    width: 400px;
    height: 220px;
    border-radius: 8px;
    position: relative;
    top: 80px;
    left: 160px;
    padding: 20px;
}

#card1 img {
    margin-bottom: 40px;
}

#card1 h3 {
    letter-spacing: 2px;
    text-align: start;
}

.card-details {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

#card2 {
    background-image: url(./assets/card2.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    width: 400px;
    height: 220px;
    border-radius: 8px;
    position: relative;
    top: 120px;
    left: 220px;
}

.customNmr, #customDate {
    font-size: 0.9rem;
}

.customNmr {
    position: relative;
    top: 45%;
    text-align: end;
    margin-right: 50px;
}


#form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    left: 50%;
    width: 500px;
    background: var(--dark);
    padding: 15px;
}

#form label,
#form #flexdate label {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 15px;
    line-height: 25px;
    color: var(--white);
}

#form #flexdate {
    display: flex;
    justify-content: space-between;
}

#form #flexdate label {
    line-height: 45px;
}

#form .date-flex {
    display: flex;
    gap: 10px;
}

#form .date-flex input {
    width: 80px;
}

#form #cvc {
    display: flex;
    flex-direction: column;
}

input {
    background-color: #DEDEDE;
    border: 1px solid var(--light-white);
    padding: 15px;
    font-size: 18px;
    color: var(--dark-gray);
    margin-bottom: 0.1rem;
}

#flexdate input {
    margin-bottom: 0.6rem;
}

input:focus {
    border: 1px solid transparent;
    -webkit-border-image: linear-gradient(to right, hsl(249, 99%, 64%), #FFBE2E) 1;
    -o-border-image: linear-gradient(to right, hsl(249, 99%, 64%), #FFBE2E) 1;
    border-image: linear-gradient(to right, hsl(249, 99%, 64%), #FFBE2E) 1;
    outline: none;
}

#form button {
    background-color: var(--btnPrimary);
    color: var(--dark);
    padding: 15px;
    border: none;
    font-size: 18px;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 20px;
}

#form button:hover {
    background-color: #f3b52e;
}

.flexDiv {
    display: flex;
    flex-direction: column;
}

.redSpan {
    color: var(--inputError);
    font-size: 11px;
}

#msg3, #msg4, #msg5 {
    text-align: center;
}

@media (max-width: 990px) {
    body {
        flex-direction: column;
        align-items: center;
    }

    #left {
        width: 100vw;
        height: 200px;
        background-repeat: no-repeat;
        background-size: cover;
        margin-bottom: 190px;
    }

    #card1 {
        position: relative;
        top: 160px;
        left: 52%;
        transform: translate(-55%);
        width: 90%;
        max-width: 400px;
        order: 2;
        z-index: 1000;
    }

    #card1 h3 {
        font-size: 1rem;
    }

    #card2 {
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translate(-50%);
        width: 90%;
        max-width: 400px;
        order: 1;
        background-size: contain;
    }

    #form {
        position: static;
        width: 90%;
        margin: 0 auto;
    }

    input {
        font-size: 12px;
    }

    #inputCvc {
        width: 60%;
        margin: 0 auto;
    }

    #form label, #date {
        font-size: 12px;
    }

    #cvc label {
        margin-left: 35px;
    }

    #form .date-flex {
        flex-direction: row;
    }

    #form #flexdate label {
        font-size: 12px;
    }
}


@media (min-width: 991px) and (max-width: 1260px) {
    body{
        justify-content: space-between;
    }

    #left {
        background-size: cover;
    }

    #right {
        margin: 0 auto;
    }

    #card1{
        top: 120px;
        left: 60px;
    }

    #card2{
        top: 150px;
        left: 80px;
    }

    #form {
        left: 0%;
    }
}
