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

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #05c178;

    min-height: 100vh;

    display: flex;
    flex-direction: column;

    align-items: center;   /* 🔥 CENTRALIZA HORIZONTAL */
}

.card {
    background: white;

    max-width: 600px;

    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);

    width: min(95%, 520px);
    margin: 20px auto;
    padding: 25px;
    border-radius: 15px;
    box-sizing: border-box; /* evita “comer lateral” no mobile */

}

/* 🔥 HEADER CENTRALIZADO */
.card-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    text-align: center;
}

/* Força a logo e o título a ficarem lado a lado em qualquer tela */
.header-loja {
    display: flex !important;
    flex-direction: row !important; /* Lado a lado */
    align-items: center !important; /* Alinha verticalmente ao centro */
    justify-content: center !important; /* Centraliza no meio da tela */
    gap: 12px !important; /* Espaço entre a logo e o texto */
    width: 100% !important;
    margin-bottom: 10px !important;
}

/* Tamanho controlado para a logo */
.logo-loja {
    width: 45px !important; /* Tamanho ótimo para celular */
    height: auto !important;
    display: block !important;
}

/* Estilo do título "A Casa Brasileira" */
.titulo-loja {
    font-size: 1.6rem !important; /* Tamanho ajustado */
    color: #00b060; /* Substitua pela cor verde do seu site se for diferente */
    font-weight: bold !important;
    margin: 0 !important;
    white-space: nowrap !important; /* Evita que o texto quebre */
    font-style: italic;
}

/* Se a tela do celular for muito pequena (ex: iPhone SE) */
@media (max-width: 380px) {
    .logo-loja {
        width: 35px !important;
    }
    .titulo-loja {
        font-size: 1.3rem !important;
    }
}

.name-shop{
  font-size: clamp(1.6rem, 3vw, 1.625rem);
  font-weight:600;
  color:#05c178;
  line-height: 1;
  font-style: italic;
  word-spacing: -4px;
  margin: 0; /* remove margem padrão do h1 */
  margin-top: 15px;
}

.name-ava h3 {
    font-size: clamp(1.1rem, 2.8vw, 1.4rem);
}

h1, h3 {
    text-align: center;
}

h3 {
    border-bottom: 4px solid #05c178;
    padding-bottom: 8px;
    color: #4b4b4b;
    margin-top: 7px;
}

label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
  /* 0.875rem (14px) no mobile, cresce fluidamente, trava em 1.0625rem (17px) no desktop */
  font-size: clamp(1rem, 2vw, 1.0625rem);
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}

button {
    width: 100%;
    margin-top: 25px;
    padding: 14px;
    cursor: pointer;
    background: #05c178;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: 0.3s;
    min-height: 48px;
}

button:hover {
    background: #049963;
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.mensagem {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display:none;
}

.mensagem.sucesso {
    display:block;
    background:#e6fff4;
    color:#049963;
}

.mensagem.erro {
    display:block;
    background:#ffe6e6;
    color:#cc0000;
}

.page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 20px;
    width: 100%;
}

footer {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 12px 0;

    margin-top: auto;
}

footer p {
    margin: 0;
    color: #f3f3f3;
    font-size: 12px;
}

.rating {
    display: flex;
    gap: 8px;
    margin-top: 1px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.rating span {
    font-size: 38px;
    color: #d4d4d4;
    cursor: pointer;
    transition: 0.2s;
    user-select: none;
}

.rating span:hover {
    transform: scale(1.15);
}

.rating span.active {
    color: #FFD700;
}

@media (max-width: 768px) {

    body {
        padding: 15px; /* 🔥 CRUCIAL */
    }

    .card {
        width: 100%;
        margin: 10px 0;
        padding: 20px;
    }

    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .rating {
        justify-content: space-evenly;
    }

    textarea {
        min-height: 120px;
    }    
}

@media (min-width: 1400px) {
    .card {
        max-width: 700px;
    }
}

/* 🔥 CÓDIGO NOVO: Altera APENAS o grupo dos 3 botões (Elogio, Sugestão, Crítica) */
    .opcoes-radio:has(input[name="tipoComentario"]) {
        gap: 6px !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .opcoes-radio:has(input[name="tipoComentario"]) label {
        flex: 1 !important;
        padding: 10px 0px !important; 
        font-size: 12px !important; 
        min-width: 0 !important; 
        white-space: nowrap !important; 
    }

.modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    max-width: 400px;
    padding: 20px;
    border-radius: 12px;
    width: min(92%, 450px);
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-content h3 {
    margin-top: 0;
}

.opcoes-radio input[type="radio"] {
    display: none;
}

.opcoes-radio {
    display: flex;
    gap: 20px;
    margin-top: 1px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.opcoes-radio label {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px 20px;
    border: 2px solid #05c178;
    border-radius: 8px;
    cursor: pointer;
    transition: .2s;
    background: white;

    min-width: 90px;
    text-align: center;

    user-select: none;
}

.opcoes-radio label:hover {
    background: #eafff5;
}

.opcoes-radio label.selecionado {
    background: #05c178;
    color: white;
}

#nomeContato {
    margin-bottom: 10px;
}
