/* Estilos para o sistema de avaliação - VERSÃO 2 */
#reviews-section .rating-css {
    display: inline-block;
    direction: rtl; /* Faz as estrelas serem exibidas da direita para a esquerda */
}

#reviews-section .rating-css input {
    display: none;
}

#reviews-section .rating-css label {
    font-size: 2em;
    color: #ddd;
    cursor: pointer;
    display: inline-block;
    /* A propriedade direction foi movida para o container .rating-css */
}

#reviews-section .rating-css label:hover,
#reviews-section .rating-css label:hover~label,
#reviews-section .rating-css input:checked~label {
    color: gold;
}

/* --- Estilos de suporte (mantidos para garantir que tudo funcione) --- */
#review-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin-top: 10px;
}

#review-form button {
    margin-top: 10px;
}

.review {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 15px;
}

.review-author {
    font-weight: bold;
}

.review-stars {
    color: gold;
}

/* --- ARQUIVO: provider.css --- */
/* Estilos que se aplicam APENAS à página de perfil do provedor (provider.html) */

/* --- Base (Mobile-First) --- */

main {
    padding-top: 10px;
}

.wrap {
    padding: 0 10px;
}

header {
    background-color: var(--card-bg);
    color: var(--primary-color);
    padding: 0;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
}

header a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.2s;
}

.muted {
    color: var(--secondary-color);
    font-style: italic;
    text-align: center;
}

.card {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-bottom: 20px;
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: gold;
    color: #333;
    /* Cor do texto alterada para escuro */
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8em;
    text-transform: uppercase;
}

.profile-header {
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.profile-header h1 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.profile-header .muted {
    font-style: normal;
    text-align: left;
    margin-top: 5px;
}

hr {
    border: none;
    height: 1px;
    background-color: var(--border-color);
    /* Alterado de #eee */
    margin: 20px 0;
}

section h3 {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.profile-description {
    line-height: 1.7;
    font-size: 0.9em;
}

ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

li {
    background-color: var(--item-bg);
    /* Alterado de #f1f1f1 */
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 5px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    /* Botões em coluna no mobile */
    gap: 10px;
    margin-top: 20px;
}

.cta,
.secondary-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-weight: bold;
    padding: 12px 20px;
    border-radius: 25px;
    transition: background-color 0.2s;
    gap: 10px;
    width: 100%;
}

.cta {
    background-color: var(--accent-color);
}

.secondary-cta {
    background-color: var(--secondary-color);
}

.gallery {
    display: flex;
    flex-direction: column;
    /* Galeria em coluna no mobile */
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.gallery img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* --- Estilos para telas maiores (Desktop) --- */
@media (min-width: 769px) {
    main {
        padding-top: 20px;
    }

    .wrap {
        max-width: 900px;
        margin: 0 auto;
        padding: 0;
    }

    header {
        padding: 15px;
        margin-bottom: 20px;
        background-color: var(--card-bg);
        color: var(--primary-color);
    }

    header a:hover {
        opacity: 0.8;
    }

    .card {
        padding: 30px;
    }

    .badge {
        top: 15px;
        right: 15px;
    }

    .profile-header h1 {
        font-size: 2.5em;
    }

    hr {
        margin: 30px 0;
    }

    section h3 {
        font-size: 1.5em;
    }

    .profile-description {
        line-height: 1.8;
        font-size: 1em;
    }

    .contact-info {
        flex-direction: row;
        /* Botões lado a lado no desktop */
        flex-wrap: wrap;
        gap: 15px;
    }

    .cta,
    .secondary-cta {
        flex-grow: 1;
        width: auto;
    }

    .cta:hover {
        background-color: #218838;
    }

    .secondary-cta:hover {
        background-color: #5a6268;
    }

    .gallery {
        flex-direction: row;
        /* Galeria em linha no desktop */
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

    .gallery img {
        max-width: 300px;
    }
}