/* Owner: pages/reviews. Existing visual rules extracted from style.css. */
.rev-stars {
    display: inline-flex;
    gap: 2px;
    color: #f5b301;
    font-size: 1rem;
    letter-spacing: 1px;
    white-space: nowrap;
}

.rev-stars i.far {
    color: #cbd5e1;
}
.review-section .rev-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem 3rem;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
}

.rev-summary-score {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.rev-avg {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--dark-color);
}

.rev-count {
    color: #64748b;
    font-size: 0.95rem;
}

.rev-distribution {
    flex: 1 1 320px;
    max-width: 460px;
    display: grid;
    gap: 0.4rem;
}

.rev-dist-row {
    display: grid;
    grid-template-columns: 42px 1fr 34px;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: #475569;
}

.rev-dist-label i {
    color: #f5b301;
}

.rev-dist-track {
    height: 8px;
    background: #e9eef5;
    border-radius: 999px;
    overflow: hidden;
}

.rev-dist-fill {
    display: block;
    height: 100%;
    background: var(--gradient);
    border-radius: 999px;
}

.rev-dist-count {
    text-align: right;
    color: #94a3b8;
}
.rev-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rev-filter-form {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.rev-filter-label {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
}

.rev-filter-select {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.45rem 0.8rem;
    font-size: 0.92rem;
    background: #fff;
    color: var(--dark-color);
    cursor: pointer;
}

.rev-filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 114, 190, 0.15);
}

.rev-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.rev-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    font-size: 0.85rem;
    color: #475569;
    text-decoration: none;
    transition: 0.2s ease;
}

.rev-chip i {
    color: #f5b301;
}

.rev-chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.rev-chip.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.rev-chip.is-active i {
    color: #ffd166;
}
.rev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.rev-card {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.4rem 1.5rem;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.rev-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.rev-card-head {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.rev-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark-color);
}

.rev-body {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.65;
    flex: 1;
}

.rev-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.6rem;
    border-top: 1px dashed #e2e8f0;
    padding-top: 0.75rem;
    font-size: 0.88rem;
}

.rev-name {
    color: var(--dark-color);
}

.rev-role {
    color: var(--primary-color);
}

.rev-date {
    margin-left: auto;
    color: #94a3b8;
}
.rev-empty {
    text-align: center;
    color: #64748b;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    padding: 2.5rem 1rem;
}

.rev-empty i {
    font-size: 2rem;
    color: #f5b301;
    display: block;
    margin-bottom: 0.5rem;
}
.rev-cta {
    text-align: center;
    margin-top: 2.25rem;
}

.rev-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 0.85rem 2.1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.rev-cta-btn:hover,
.rev-cta-btn:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 114, 190, 0.3);
}

.rev-cta-note {
    margin: 0.7rem 0 0;
    font-size: 0.85rem;
    color: #94a3b8;
}
.rev-pagination {
    margin-top: 1.75rem;
}
.rev-modal .modal-content {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
}

.rev-modal .modal-header {
    background: var(--gradient);
    color: #fff;
    border-bottom: 0;
}

.rev-modal .modal-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.rev-modal .btn-close {
    filter: brightness(0) invert(1);
}

.rev-rating-field {
    margin-bottom: 1.1rem;
}

.rev-rating-label {
    display: block;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.3rem;
    font-size: 0;
}

.star-rating input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.star-rating label {
    cursor: pointer;
    font-size: 1.9rem;
    line-height: 1;
    color: #cbd5e1;
    transition:
        color 0.15s ease,
        transform 0.15s ease;
}

.star-rating label i {
    font-size: inherit;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #f5b301;
}

.star-rating input:focus-visible + label {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.rev-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}

.rev-form-group {
    margin-bottom: 1rem;
}

.rev-form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.35rem;
}

.rev-optional {
    color: #94a3b8;
    font-weight: 400;
}

.rev-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    color: var(--dark-color);
    background: #fff;
}

.rev-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 114, 190, 0.15);
}

.rev-input.is-invalid {
    border-color: #dc3545;
}

.rev-form-group .error-text {
    display: block;
    min-height: 1rem;
    margin-top: 0.25rem;
    font-size: 0.8rem;
}

.rev-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 0.6rem 1.7rem;
    font-weight: 600;
    cursor: pointer;
}

.rev-btn-submit:hover:not(:disabled) {
    color: #fff;
    box-shadow: 0 10px 22px rgba(0, 114, 190, 0.3);
}

.rev-btn-submit:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.rev-btn-ghost {
    background: transparent;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    color: #475569;
    cursor: pointer;
}

.rev-btn-ghost:hover {
    border-color: var(--dark-color);
    color: var(--dark-color);
}

.rev-alert {
    border-radius: 10px;
    padding: 0.7rem 0.95rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.rev-alert ul {
    margin: 0;
    padding-left: 1.1rem;
}

.rev-alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.rev-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
@media (max-width: 767px) {
    .reviews-hero {
        padding-top: 5.5rem;
    }

    .review-section .rev-summary {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 1.25rem;
    }

    .rev-summary-score {
        justify-content: center;
    }

    .rev-distribution {
        max-width: none;
    }

    .rev-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .rev-chips {
        justify-content: center;
    }

    .rev-grid {
        grid-template-columns: 1fr;
    }

    .rev-form-row {
        grid-template-columns: 1fr;
    }

    .rev-avg {
        font-size: 2.1rem;
    }

    .star-rating label {
        font-size: 1.7rem;
    }
}

.reviews-hero {
    padding: 7rem 0 1.5rem;
    background: var(--bg-gradient);
    text-align: center;
}

.reviews-hero .web-heading {
    margin-bottom: 0.5rem;
}

.reviews-hero-sub {
    max-width: 720px;
    margin: 0 auto;
    color: #475569;
    font-size: 1.05rem;
}
