* {
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    margin: 0;
    padding: 16px;
}

/* MOBILE FIRST */
.container {
    background: white;
    padding: 10px 20px 20px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 100%;
}

h1 {
    margin-top: 0;
    font-size: 20px;
    text-align: center;
}

.logo {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 12px;
}

.form-group {
    margin-bottom: 14px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    font-size: 14px;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    font-size: 16px;
    /* evita zoom su iOS */
}

textarea {
    resize: vertical;
    min-height: 110px;
}

button {
    width: 100%;
    padding: 14px;
    border: none;
    background: #1FA2E1; /* o il tuo colore */
    color: white;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

button:hover {
    box-shadow: 0 0 18px rgba(31, 162, 225, 0.6);
    transform: translateY(-2px);
}

button:active {
    transform: scale(0.98);
}

.message {
    margin-top: 16px;
    font-size: 14px;
    text-align: center;
}

.success {
    color: #15803d;
}

.error {
    color: #b91c1c;
}

/* Star rating */
.star-rating {
    --star-size: 48px;
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 10px;
    font-size: var(--star-size);
    justify-content: center;
    user-select: none;
    align-items: center;
}

.star-rating input {
    display: none;
}

.star-rating label {
    color: #cbd5e1;
    cursor: pointer;
    transition: transform 0.12s cubic-bezier(.2, .9, .2, 1), filter 0.12s ease, color 0.12s ease;
    display: inline-block;
    padding: 6px;
    border-radius: 8px;
    font-size: var(--star-size);
    line-height: 1;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.star-rating label:hover,
.star-rating label:hover~label {
    transform: translateY(-4px) scale(1.06);
    color: transparent;
    background: linear-gradient(90deg, #ffd54a 0%, #ffb300 60%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.12));
}

.star-rating input:checked~label,
.star-rating input:focus~label {
    color: transparent;
    background: linear-gradient(90deg, #ffde59 0%, #ff9f1c 70%);
    -webkit-background-clip: text;
    background-clip: text;
    transform: translateY(-2px);
    filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.14));
}

.rating-group label {
    margin-bottom: 8px;
    display: block;
}

/* TABLET */
@media (min-width: 640px) {
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
    }

    .container {
        max-width: 420px;
        padding: 28px;
    }

    h1 {
        font-size: 22px;
    }
}

/* DESKTOP */
@media (min-width: 1024px) {
    .container {
        max-width: 460px;
    }
}