/* ===== Reviews Page Styles - AC Masters UAE ===== */

/* Container */
.tm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Reviews Hero Section */
.tm-reviews-hero {
    background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 50%, #0ea5e9 100%);
    padding: 120px 0 50px;
    position: relative;
}

.tm-reviews-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Breadcrumb */
.tm-reviews-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.tm-breadcrumb-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.tm-breadcrumb-link:hover {
    color: #fff;
}

.tm-breadcrumb-separator {
    color: rgba(255, 255, 255, 0.5);
}

.tm-breadcrumb-current {
    color: #fff;
    font-weight: 500;
}

/* Hero Content */
.tm-reviews-hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.tm-reviews-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.3;
}

.tm-reviews-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Reviews Stats */
.tm-reviews-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.tm-reviews-stat-item {
    text-align: center;
}

.tm-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.tm-stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Reviews Main */
.tm-reviews-main {
    background: #f8fafc;
    padding: 60px 0 80px;
}

/* Reviews Grid */
.tm-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

/* Review Card */
.tm-review-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.tm-review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.15);
}

.tm-review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.tm-review-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tm-review-avatar img {
    width: 32px;
    height: 32px;
}

.tm-review-header-content {
    flex: 1;
}

.tm-review-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0c4a6e;
    margin: 0 0 4px;
}

.tm-review-rating {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 2px;
}

.tm-review-service {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #065f46;
    font-weight: 500;
}

.tm-review-service img {
    opacity: 0.8;
}

.tm-review-comment {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #475569;
    margin: 0 0 16px;
}

.tm-review-date {
    font-size: 13px;
    color: #94a3b8;
}

/* Pagination */
.tm-reviews-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.tm-pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #0369a1;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tm-pagination-btn:hover {
    background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 100%);
    color: #fff;
    border-color: transparent;
}

.tm-pagination-btn:hover img {
    filter: brightness(0) invert(1);
}

.tm-pagination-prev img {
    transform: rotate(180deg);
}

.tm-pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tm-pagination-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tm-pagination-number:hover {
    background: #e0f2fe;
    color: #0369a1;
}

.tm-pagination-active {
    background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 100%);
    color: #fff;
}

.tm-pagination-ellipsis {
    color: #94a3b8;
    padding: 0 8px;
}

/* Review Form Section */
.tm-review-form-section {
    background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 100%);
    padding: 80px 0;
}

.tm-review-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.tm-review-form-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}

.tm-review-form-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
}

/* Review Form */
#jqr_review_form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

#jqr_review_form input[type="text"],
#jqr_review_form textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    box-sizing: border-box;
}

#jqr_review_form input[type="text"]:focus,
#jqr_review_form textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

#jqr_review_form textarea {
    resize: vertical;
    min-height: 120px;
}

#jqr_review_form label {
    color: #334155;
    font-weight: 500;
}

.jqr_star-rating i {
    color: #e2e8f0;
    transition: color 0.2s ease;
}

.jqr_star-rating i.fas,
.jqr_star-rating i:hover,
.jqr_star-rating i.hovered {
    color: #f59e0b;
}

#jqr_submit {
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
}

#jqr_submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
}

.jqr_error-message {
    color: #ef4444;
    font-size: 13px;
    margin-bottom: 12px;
}

/* ===== Responsive Design ===== */

@media (max-width: 1024px) {
    .tm-reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tm-reviews-hero {
        padding: 100px 0 40px;
    }

    .tm-reviews-hero-title {
        font-size: 1.85rem;
    }

    .tm-reviews-hero-subtitle {
        font-size: 1rem;
    }

    .tm-reviews-stats {
        gap: 32px;
    }

    .tm-stat-number {
        font-size: 2rem;
    }

    .tm-reviews-main {
        padding: 40px 0 60px;
    }

    .tm-reviews-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tm-review-card {
        padding: 24px;
    }

    .tm-pagination-btn span {
        display: none;
    }

    .tm-pagination-btn {
        padding: 12px;
    }

    .tm-review-form-section {
        padding: 60px 0;
    }

    .tm-review-form-title {
        font-size: 1.65rem;
    }

    #jqr_review_form {
        padding: 30px 24px;
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .tm-reviews-hero {
        padding: 90px 0 30px;
    }

    .tm-reviews-hero-title {
        font-size: 1.5rem;
    }

    .tm-reviews-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .tm-reviews-stat-item {
        flex: 1 1 30%;
    }

    .tm-stat-number {
        font-size: 1.65rem;
    }

    .tm-stat-label {
        font-size: 12px;
    }

    .tm-review-header {
        flex-direction: column;
        text-align: center;
    }

    .tm-review-avatar {
        width: 48px;
        height: 48px;
    }

    .tm-pagination-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    #jqr_review_form {
        padding: 24px 18px;
    }

    #jqr_review_form input[type="text"],
    #jqr_review_form textarea {
        padding: 14px 16px;
    }

    #jqr_submit {
        padding: 16px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 375px) {
    .tm-reviews-hero {
        padding: 80px 0 25px;
    }

    .tm-reviews-hero-title {
        font-size: 1.35rem;
    }

    .tm-reviews-hero-subtitle {
        font-size: 0.9rem;
    }

    .tm-reviews-stats {
        gap: 16px;
    }

    .tm-stat-number {
        font-size: 1.5rem;
    }

    .tm-review-card {
        padding: 20px 16px;
    }

    .tm-review-name {
        font-size: 1rem;
    }

    .tm-review-comment {
        font-size: 0.9rem;
    }

    .tm-review-form-title {
        font-size: 1.4rem;
    }

    .tm-review-form-subtitle {
        font-size: 0.9rem;
    }

    #jqr_review_form {
        padding: 20px 15px;
        border-radius: 16px;
    }
}
