body {
    background-color: #f0ebf8;
}

.form-container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.form-header,
.question-card {
    width: 100%;
    background-color: #ffffff;
    border-radius: 10px;
    border: 1px solid #dadce0;
}

.question-card {
    margin-top: 16px;
}

.required {
    color: #d93025;
}

.feedback-container {
    max-width: 720px;
    margin: 0 auto;
}

.feedback-card {
    background-color: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 10px;
}

.success-card {
    border-top: 10px solid #198754;
}

.error-card {
    border-top: 10px solid #dc3545;
}

.avaliacao-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.avaliacao-label {
    font-weight: 600;
}

.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    flex-shrink: 0;
}

.star-rating input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.star-rating label {
    cursor: pointer;
    color: #dadce0;
    font-size: 2rem;
    line-height: 1;
    margin: 0 2px;
    transition:
        color 0.15s ease,
        transform 0.15s ease;
}

.star-rating label:hover,
.star-rating label:hover~label,
.star-rating input:checked~label {
    color: #fbbc04;
}

.star-rating label:hover {
    transform: scale(1.12);
}

.star-rating input:focus-visible+label {
    outline: 2px solid #673ab7;
    outline-offset: 3px;
    border-radius: 3px;
}

@media (max-width: 576px) {
    main.container {
        width: 100%;
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

    .form-container {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .question-card,
    .form-header {
        width: 100%;
    }

    .avaliacao-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .star-rating label {
        font-size: 2.2rem;
    }
}

img {
    display: block;
    width: 100%;
    max-width: 720px;
    height: auto;
    margin: 0 auto;
}

.nps-rating {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.nps-rating input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nps-rating label {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    border: 1px solid #673ab7;
    border-radius: 8px;

    color: #673ab7;
    background-color: #ffffff;

    font-weight: 600;
    cursor: pointer;

    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}

.nps-rating label:hover {
    background-color: #ede7f6;
    transform: translateY(-2px);
}

.nps-rating input:checked+label {
    color: #ffffff;
    background-color: #673ab7;
}

.nps-rating input:focus-visible+label {
    outline: 3px solid rgba(103, 58, 183, 0.35);
    outline-offset: 2px;
}

@media (max-width: 576px) {
    .nps-rating {
        justify-content: flex-start;
    }

    .nps-rating label {
        width: 42px;
        height: 42px;
    }
}