/* Estilos do Formulário de Avaliação */
#avaliacao-form {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#avaliacao-form h4 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.2em;
    font-weight: 600;
}

/* Estilos do Select de Produto */
#avaliacao-form select {
    width: 100%;
    min-height: 45px;
    padding: 12px 40px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
    background: white url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%23666' d='m0 1 2 2 2-2z'/></svg>") no-repeat right 12px center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

#avaliacao-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

#avaliacao-form select:focus,
#avaliacao-form textarea:focus {
    outline: none;
    border-color: #FB9C1D;
    box-shadow: 0 0 0 3px rgba(251, 156, 29, 0.1);
}

#avaliacao-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

#avaliacao-form p {
    margin-bottom: 20px;
}

/* Estilos das Estrelas de Avaliação */
.rating {
    font-size: 28px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    margin: 15px 0;
    gap: 3px;
}

.rating input[type="radio"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

.rating label {
    color: #ddd !important;
    cursor: pointer;
    display: inline-block;
    transition: all 0.2s ease;
    margin: 0;
    font-weight: normal;
    line-height: 1;
    flex-shrink: 0;
}

.rating label:before {
    content: "\2605";
    font-size: 28px;
    display: inline-block;
}

.rating label:hover {
    color: #f5b301 !important;
    transform: scale(1.15);
}

/* Estados das estrelas controlados por JavaScript */
.rating label.star-active {
    color: #f5b301 !important;
}

.rating label.star-hover {
    color: #f5b301 !important;
}

/* Estilos do Textarea */
#avaliacao-form textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

#avaliacao-form textarea::placeholder {
    color: #999;
    font-style: italic;
}

/* Estilos do Botão */
.botao-avaliacao {
    background: linear-gradient(135deg, #000000 0%, #1d1d1d 100%);
    color: white!important;
    border: none;
    border-radius: 20px!important;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.botao-avaliacao:hover {
    background: linear-gradient(135deg, #FB9C1D 0%, #FB9B1D 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(251, 156, 29, 0.4);
}

.botao-avaliacao:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(251, 156, 29, 0.3);
}

.botao-avaliacao:disabled,
.botao-avaliacao.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    background: #999 !important;
    pointer-events: none;
}

/* Estilos das Mensagens */
.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    font-weight: 600;
    position: relative;
}

.success-message:before {
    content: "✓ ";
    font-weight: bold;
    color: #28a745;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    font-weight: 600;
}

.error-message:before {
    content: "⚠ ";
    font-weight: bold;
    color: #dc3545;
}

.loading-message {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.loading-message:before {
    content: "⏳ ";
    font-weight: bold;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    #avaliacao-form {
        padding: 20px;
        margin: 15px 0;
    }
    
    .rating {
        font-size: 28px;
    }
    
    .botao-avaliacao {
        width: 100%;
        padding: 15px;
    }
}
