/* =====================================
   TESTIMONIALS PAGE STYLES
   Patient reviews and ratings - Modern Design
   Card grid with quotes, star ratings, and statistics
   ===================================== */

/* ===== PAGE HEADER ===== 
   Modern gradient header with animation
*/
.page-header {
    background: linear-gradient(135deg, #0a2540 0%, #4A90A4 50%, #68B3C8 100%);
    color: white;
    padding: 5rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::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");
    opacity: 0.3;
}

.page-header h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.95;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== STATISTICS SECTION ===== 
   Key metrics showcase
*/
.stats-section {
    background: linear-gradient(to bottom, #0a2540, #1a3550);
    padding: 3rem 0;
    margin-top: -1px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    color: white;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #68B3C8, #4A90A4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ===== TESTIMONIALS SECTION ===== 
   Main content area with review cards
*/
.testimonials-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-intro h2 {
    font-size: 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #0a2540;
    margin-bottom: 1rem;
}

.section-intro p {
    font-size: 1.2rem;
    color: #64748b;
    line-height: 1.6;
}

/* Responsive grid - auto-fits cards based on screen width */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

/* ===== TESTIMONIAL CARD ===== 
   Individual review card with modern styling
*/
.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(10, 37, 64, 0.08);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 1px solid rgba(74, 144, 164, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Decorative gradient accent */
.testimonial-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4A90A4, #68B3C8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover::after {
    opacity: 1;
}

/* Decorative quotation mark - large, subtle, behind content */
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 8rem;
    color: #4A90A4;
    opacity: 0.05;
    font-family: Georgia, serif;
    line-height: 1;
    font-weight: bold;
}

/* Lift card on hover with enhanced shadow */
.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(10, 37, 64, 0.15);
    border-color: rgba(74, 144, 164, 0.3);
}

/* ===== STAR RATING ===== 
   5-star rating display with CSS-generated stars
*/
.stars {
    color: #FFD700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 4px;
    font-size: 0;             /* Hide HTML text content */
    display: inline-block;
}

/* Generate stars using CSS to avoid encoding issues */
.stars::before {
    content: '\2605\2605\2605\2605\2605';  /* 5 filled star Unicode characters */
    font-size: 1.5rem;
    letter-spacing: 4px;
    text-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

/* 4-star rating variant */
.stars-4::before {
    content: '\2605\2605\2605\2605\2606';  /* 4 filled stars + 1 empty star */
}

/* ===== REVIEW TEXT ===== 
   The actual testimonial content
*/
.testimonial-text {
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    z-index: 1;
    flex-grow: 1;
}

/* ===== REVIEWER INFO ===== 
   Name and location
*/
.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-top: 1.5rem;
    margin-top: auto;
    border-top: 2px solid #f1f5f9;
    position: relative;
    z-index: 1;
}

/* Reviewer name - prominent */
.testimonial-author strong {
    color: #0a2540;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Location info */
.testimonial-author span {
    color: #64748b;
    font-size: 0.9rem;
}

/* =====================================
   REVIEW PLATFORMS SECTION
   Links to third-party review sites - Enhanced
   ===================================== */
.review-platforms {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
}

.review-platforms h2 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0a2540;
}

.platforms-intro {
    text-align: center;
    color: #64748b;
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

/* Grid of review platform cards */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Individual platform card (Google, Yelp, etc.) */
.platform-card {
    background: linear-gradient(135deg, #0a2540 0%, #1a4d6b 100%);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 20px rgba(10, 37, 64, 0.08);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

/* Gradient background effect on hover */
.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 144, 164, 0.05), rgba(104, 179, 200, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.platform-card:hover::before {
    opacity: 1;
}

/* Hover effect - lift and enhance */
.platform-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

/* Platform icon container */
.platform-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(10, 37, 64, 0.08);
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.platform-card:hover .platform-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Platform logo/icon */
.platform-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.platform-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.platform-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Platform-specific accent colors */
.platform-card.google:hover {
    border-color: #4285F4;
}

.platform-card.yelp:hover {
    border-color: #D32323;
}

.platform-card.demandforce:hover {
    border-color: #4A90A4;
}

/* =====================================
   LEAVE A REVIEW SECTION
   Prominent CTA for patients to share reviews
   ===================================== */
.leave-review-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2f7 100%);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.leave-review-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(74, 144, 164, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(104, 179, 200, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.leave-review-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.review-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50%;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
    animation: pulse-glow 2s ease-in-out infinite;
}

.review-icon svg {
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 50px rgba(255, 215, 0, 0.5);
    }
}

.leave-review-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #0a2540;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.leave-review-section > .container > .leave-review-content > p {
    font-size: 1.2rem;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Google Review Button */
.btn-review {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #4285F4, #34A853);
    color: white;
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 8px 30px rgba(66, 133, 244, 0.4);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-review::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-review:hover::before {
    left: 100%;
}

.btn-review:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(66, 133, 244, 0.6);
}

.btn-review svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.btn-review .arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    margin-left: 4px;
    display: inline-block;
}

/* Add arrow using CSS to avoid encoding issues */
.btn-review .arrow::before {
    content: '\2192';  /* Right arrow Unicode escape */
}

.btn-review:hover .arrow {
    transform: translateX(8px);
}

/* Review options layout (QR + Button) */
.review-options {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    padding: 2rem 0;
}

/* QR Code styling */
.review-qr-code {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.qr-wrapper {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(10, 37, 64, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qr-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(10, 37, 64, 0.18);
}

.qr-wrapper img {
    width: 200px;
    height: 200px;
    display: block;
    border-radius: 8px;
}

.qr-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1rem;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, #f1f5f9, #ffffff);
    border-radius: 20px;
    font-weight: 600;
    color: #0a2540;
    font-size: 0.85rem;
}

.qr-label svg {
    width: 18px;
    height: 18px;
}

.qr-instruction {
    color: #94a3b8;
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
}

/* Divider styling */
.review-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-divider span {
    background: linear-gradient(135deg, #e0f2f7, #f8fafc);
    padding: 0.8rem 1.2rem;
    border-radius: 50%;
    font-weight: 600;
    color: #64748b;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(10, 37, 64, 0.08);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Button container styling */
.review-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.button-subtext {
    color: #94a3b8;
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
}

.review-note {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #94a3b8;
    font-style: italic;
}

/* =====================================
   CTA SECTION
   Call-to-action with gradient background
   ===================================== */
.cta {
    background: linear-gradient(135deg, #0a2540 0%, #1a3550 50%, #2a4560 100%);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::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.03'%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");
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.cta p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta .btn-light {
    background: white;
    color: #0a2540;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}

.cta .btn-light:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* =====================================
   RESPONSIVE DESIGN
   ===================================== */

/* ===== TABLET (768px and below) ===== 
   Single column for testimonials
*/
@media (max-width: 768px) {
    .page-header {
        padding: 3rem 0 2.5rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .section-intro h2 {
        font-size: 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .platforms-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .leave-review-section h2 {
        font-size: 2rem;
    }
    
    /* QR Code responsive layout */
    .review-options {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .review-divider {
        display: none; /* Hide "or" on mobile */
    }
    
    .qr-wrapper img {
        width: 180px;
        height: 180px;
    }
    
    .btn-review {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
    
    .cta p {
        font-size: 1.1rem;
    }
}

/* ===== MOBILE (480px and below) ===== */
@media (max-width: 480px) {
    .page-header {
        padding: 2.5rem 0 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .stars::before {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
    
    .leave-review-section {
        padding: 3rem 0;
    }
    
    .leave-review-section h2 {
        font-size: 1.8rem;
    }
    
    .review-icon {
        width: 80px;
        height: 80px;
    }
    
    .review-icon svg {
        width: 60px;
        height: 60px;
    }
    
    .qr-wrapper img {
        width: 160px;
        height: 160px;
    }
    
    .btn-review {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        gap: 8px;
    }
    
    .btn-review svg {
        width: 24px;
        height: 24px;
    }
    
    .cta {
        padding: 3rem 0;
    }
    
    .cta h2 {
        font-size: 1.8rem;
    }
    
    .cta .btn-light {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}

/* =====================================
   ACCESSIBILITY MODE OVERRIDES
   Hide QR code section in accessibility mode
   ===================================== */

/* Hide QR code section in accessibility mode (no visual QR code needed) */
.accessibility-mode .review-qr-code {
    display: none;
}

/* Adjust review options grid when QR code is hidden */
.accessibility-mode .review-options {
    grid-template-columns: 1fr;
    justify-items: center;
}

.accessibility-mode .review-divider {
    display: none;
}
