* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rubik', sans-serif;
}

body {
    background: white;
}

.container {
    max-width: 412px;
    margin: 0 auto;
    position: relative;
}

main {
    padding: 121px 24px 0;
}

h3 {
    color: #dc4226;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

.subtitle {
    color: black;
    font-size: 13px;
    font-style: italic;
    text-align: center;
    margin-bottom: 24px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

input,
select,
textarea {
    width: 100%;
    height: 36px;
    background: rgba(163, 196, 233, 0.5);
    border: none;
    border-radius: 18px;
    padding: 0 24px;
    color: #21509e;
    font-size: 12px;
}

textarea {
    height: 136px;
    border-radius: 12.5px;
    padding: 8px 24px;
    resize: none;
}

button {
    width: 81px;
    height: 32px;
    background: #dc4226;
    border: none;
    border-radius: 16px;
    color: white;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background: #c13a21;
}

footer {
    margin-top: 21px;
    background: #21509e;
    padding: 39px 47px;
    color: white;
}

.alert-success {
    background-color: #35196e;
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #9472d6;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInSlide 0.5s forwards;
    position: relative;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@keyframes fadeInSlide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet Styles (768px and up) */
@media screen and (min-width: 768px) {
    .container {
        max-width: 720px;
    }

    header {
        max-width: 720px;
        height: 56px;
        top: 32px;
        padding: 0 48px;
    }

    main {
        padding: 136px 48px 0;
    }

    h3 {
        font-size: 32px;
        margin-bottom: 24px;
    }

    .subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    form {
        gap: 20px;
        max-width: 600px;
        margin: 0 auto;
    }

    .form-row {
        flex-direction: row;
        gap: 20px;
    }

    input,
    select {
        height: 48px;
        font-size: 14px;
        border-radius: 24px;
    }

    textarea {
        height: 180px;
        font-size: 14px;
        border-radius: 16px;
    }

    button {
        width: 120px;
        height: 44px;
        font-size: 16px;
        border-radius: 22px;
    }

    footer {
        margin-top: 40px;
        padding: 48px 64px;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-section {
        flex: 1;
        padding-right: 24px;
    }
}

/* Desktop Styles (1024px and up) */
@media screen and (min-width: 1024px) {
    .container {
        max-width: 1200px;
    }

    header {
        max-width: 1200px;
        height: 64px;
        top: 40px;
        padding: 0 64px;
    }

    main {
        padding: 90px 80px 60px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    h3 {
        font-size: 36px;
    }

    .subtitle {
        font-size: 18px;
        margin-bottom: 40px;
        max-width: 600px;
    }

    form {
        width: 100%;
        max-width: 800px;
        gap: 24px;
    }

    input,
    select {
        height: 70px;
        font-size: 16px;
        border-radius: 35px;
    }

    textarea {
        height: 200px;
        font-size: 16px;
        padding: 20px;
    }

    button {
        width: 140px;
        height: 62px;
        font-size: 24px;
        border-radius: 35px;
    }

}

/* Large Desktop Styles (1440px and up) */
@media screen and (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

    header {
        max-width: 1400px;
    }

    main {
        padding: 180px 120px 80px;
    }

    form {
        max-width: 1000px;
    }
}