/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 2 versions,> 1%,not dead
*/

@import url(base.css);

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

main {
    width: 100%
}

.container {
    position: relative;
    background-color: hsl(213, 19%, 18%);
    margin: auto;
    width: 90%;
    max-width: 415px;
    padding-block: clamp(30px, 6vw, 45px);
    padding-inline: clamp(20px, 6vw, 35px);
    border-radius: 20px;
}

/* CONTAINTER RATING */

.rating .star {
    background-color: hsl(213, 19%, 21%);
    width: 15.03%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background-image: url("../img/icon-star.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 35%;
}

.rating h1 {
    color: #FFF;
    font-size: 1.8rem;
    font-weight: 700;
    margin-block: 15px 5px;
}

.rating .form {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 1fr 1fr;
    margin-top: 22px;
    margin-inline: auto;
    gap: 0 clamp(15px, calc(5.882vw - 7.06px), 20px)
}

.rating .form button {
    grid-column: 1 / span 5;
    background-color: hsl(25, 97%, 53%);
    border: none;
    padding-block: calc(1em + 2px) 1em;
    border-radius: 30px;
    font-family: "Overpass", Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-top: clamp(12px, 3vw, 20px);
    cursor: pointer;
    transition: background-color 0.3s;
}

.rating .form button:hover {
    background-color: #FFF;
}

.rating .form label span {
    background-color: hsl(213, 19%, 21%);
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    justify-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2px;
    font-size: 1rem;
    color: hsl(217, 12%, 63%);
    font-family: "Overpass", Arial, Helvetica, sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.3s, background-color 0.3s;
}

.rating .form label span:hover {
    background-color: hsl(25, 97%, 53%);
    color: #000;
}

.rating .form input[type="radio"]:checked + span {
    background-color: #FFF;
    color: #000
}

.rating .form input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    margin: 0
}

.rating .form-error-zone {
    position: absolute;
    right: 30px;
    top: 45px;
}

.rating .error-message {
    color: red
}

/* CONTAINER THANKS */

.thanks .phone {
    margin-inline: auto;
    width: 170px;
    aspect-ratio: 3 / 2;
    background-image: url("../img/illustration-thank-you.svg");
    background-repeat: no-repeat;
    background-position: center;
}

.thanks {
    text-align: center;
}

.thanks .response-with-choice {
    background-color: hsl(213, 19%, 21%);
    max-width: 20ch;
    margin-inline: auto;
    margin-block: 25px 22px;
    padding: calc(0.3em + 2px) 1em 0.3em;
    border-radius: 30px;
    color: hsl(25, 57%, 53%);
}

.thanks h2 {
    color: #FFF;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

/* BAS DE PAGE */

footer {
    position: fixed;
    bottom: 10px
}

footer a {
    transition: color 0.3s
}

footer a:hover {
    color: hsl(25, 97%, 53%)
}