:root {
    --Red: hsl(4, 100%, 67%);
    --Blue-800: hsl(234, 29%, 20%);
    --Blue-700: hsl(235, 18%, 26%);
    --Grey: hsl(0, 0%, 58%);
    --White: hsl(0, 0%, 100%);
}

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

body {
    min-height: 100vh;
    font-family: "Roboto";
    font-size: 16px;
}

/* ---------- Mobile-first ---------- */
.card {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    background-color: var(--White);
}

.card>img {
    width: 100%;
}

.desktop-img,
.tablet-img {
    display: none;
}

.container {
    padding: 2rem;
}

.container h1 {
    color: var(--Blue-800);
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
}

.container p {
    color: var(--Blue-700);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.container ul li {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 1rem 0;
    color: var(--Blue-700);
    font-weight: 500;
}

.container ul li img {
    margin-right: 1rem;
    align-self: flex-start;
}

.container form {
    display: flex;
    flex-direction: column;
    margin-top: 2.5rem;
}

.container form label {
    font-size: 12px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
}

.container form label span {
    color: var(--Red);
    display: none;
}

.container form input {
    margin: 1rem 0;
    padding: 1.2rem;
    border: none;
    outline: none;
    border-radius: 7px;
    border: 1px solid var(--Grey);
}

.container form input::placeholder {
    font-size: 16px;
    color: var(--Grey);
}

.container form button {
    width: 100%;
    padding: 1.2rem;
    border: none;
    outline: none;
    border-radius: 7px;
    background-color: var(--Blue-800);
    font-size: 16px;
    color: var(--White);
    font-weight: 700;
    transition: 0.3s all;
}

.btn:hover {
    background: linear-gradient(to right, var(--Red), rgb(250, 137, 62));
    cursor: pointer;
}

/* ---------- Success message ---------- */
.success-msg {
    max-width: 100vw;
    background-color: var(--White);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    display: none;
}

.success-msg img {
    margin-top: 30%;
    width: 70px;
}

.success-msg h1 {
    margin-top: 2rem;
    font-size: 2.5rem;
    line-height: 2.5rem;
    color: var(--Blue-800);
}

.success-msg p {
    margin-top: 1.5rem;
    color: var(--Blue-700);
    font-weight: 500;
    line-height: 25px;
}

.success-msg p strong {
    color: var(--Blue-800);
}

.success-msg button {
    width: 100%;
    padding: 1.2rem;
    border: none;
    outline: none;
    border-radius: 7px;
    background-color: var(--Blue-800);
    font-size: 16px;
    color: var(--White);
    font-weight: 700;
    margin-top: 40%;
}

/* ---------- Tablet Responsive ---------- */
@media screen and (min-width: 481px) and (max-width: 899px) {
    body {
        background-color: var(--Blue-800);
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .card {
        display: flex;
        flex-direction: column;
        padding: 2rem;
    }

    .mobile-img,
    .desktop-img {
        display: none;
    }

    .tablet-img {
        display: flex;
    }

    .container {
        padding: 1rem;
    }

    .success-msg {
        display: flex;
    }

    /* ----------- Success Message ---------- */
    .success-msg {
        display: none;
        max-width: 400px;
        border-radius: 25px;
    }

    .success-msg img {
        margin: 0;
        width: 50px;
    }

    .success-msg button {
        margin-top: 2rem;
        padding: 1rem;
        font-size: 14px;
    }
}

/* ---------- Desktop Responsive ---------- */
@media screen and (min-width: 900px) {
    body {
        background-color: var(--Blue-800);
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .card {
        display: flex;
        flex-direction: row-reverse;
        max-width: 900px;
        width: 100%;
        border-radius: 25px;
        overflow: hidden;
        padding: 1.5rem;
        gap: 2rem;
    }

    .mobile-img,
    .tablet-img {
        display: none;
    }

    .desktop-img {
        display: flex;
        max-width: 40%;
        object-fit: cover;
    }

    .container {
        /* flex: 1; */
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2rem 1rem;
        margin-left: 2rem;
    }

    .container h1 {
        font-size: 3rem;
    }

    .container p {
        margin-bottom: 1rem;
    }

    .container form {
        margin-top: 1.5rem;
    }

    /* ----------- Success Message ---------- */
    .success-msg {
        display: none;
        max-width: 400px;
        border-radius: 25px;
    }

    .success-msg img {
        margin: 0;
        width: 50px;
    }

    .success-msg button {
        margin-top: 2rem;
        padding: 1rem;
        font-size: 14px;
    }
}