/**
 * Single Business Profile Template Styles
 * Version: 2.0.0 - Modern Hero Layout
 */

/* ========================================
   WRAPPER AND BASE STRUCTURE
   ======================================== */

.business-profile-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    background: #f9fafb;
}

/* ========================================
   HERO SECTION
   ======================================== */

.business-profile-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: start;
}

/* Hero Left - Logo Container */
.hero-left {
    flex-shrink: 0;
}

/* Hero Right - Content Container */
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    align-self: start;
}

/* Business Logo */
.business-logo,
.business-profile-logo {
    width: 200px;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.business-logo img,
.business-profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-placeholder,
.business-profile-logo.placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e7ff, #f0f4ff);
}

/* Hero Title Row */
.hero-title-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.business-profile-title {
    font-size: 2.5em;
    font-weight: 700;
    margin: 0;
    color: #fff;
    line-height: 1.2;
}

/* Hero Title and Meta */
.hero-title-meta {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-title-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.business-title {
    font-size: 2.8em;
    font-weight: 700;
    margin: 0;
    color: #fff;
    line-height: 1.2;
}

.featured-badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.featured-badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

/* Hero Categories */
.hero-categories,
.business-profile-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-badge,
.business-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-badge:hover,
.business-category-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.category-icon {
    width: 16px;
    height: 16px;
}

/* Hero Rating */
.hero-rating,
.business-star-rating-hero {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
}

.rating-stars-large {
    display: flex;
    gap: 4px;
    font-size: 1.5rem;
}

.rating-meta-large {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 1rem;
}

.rating-average {
    font-size: 1.8rem;
    font-weight: 700;
}

.rating-separator,
.rating-max {
    font-size: 1.2rem;
    opacity: 0.9;
}

.rating-count {
    font-size: 0.9rem;
    opacity: 0.85;
}

.rating-value-large {
    font-size: 2rem;
    font-weight: 700;
}

.rating-count-large {
    font-size: 1rem;
    opacity: 0.9;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.hero-btn,
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.hero-btn-primary,
.btn-primary {
    background: #fff;
    color: #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-btn-primary:hover,
.btn-primary:hover {
    background: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.hero-btn-secondary,
.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-btn-secondary:hover,
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* ========================================
   TWO-COLUMN LAYOUT
   ======================================== */

.business-profile-layout {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px 60px;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 50px;
    align-items: start;
    background: transparent;
}

/* ========================================
   MAIN CONTENT COLUMN
   ======================================== */

.business-profile-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 0;
}

.profile-section {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.profile-section:hover {
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

/* Section Headings with Icons */
.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.section-icon {
    width: 32px;
    height: 32px;
    color: #667eea;
}

/* About Section */
.business-description {
    line-height: 1.8;
    color: #4b5563;
    font-size: 1.05rem;
}

.business-description p {
    margin-bottom: 15px;
}

.business-description p:last-child {
    margin-bottom: 0;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.service-card {
    background: linear-gradient(135deg, #f9fafb, #ffffff);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #eef2ff, #ffffff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.service-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-icon-svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.service-name,
.service-item-card span {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.service-item-card {
    background: linear-gradient(135deg, #f9fafb, #ffffff);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.service-item-card:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, #eef2ff, #ffffff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.service-item-card svg {
    color: #667eea;
    flex-shrink: 0;
}

/* ========================================
   CONTACT FORM SECTION
   ======================================== */

.contact-form-section {
    /* Inherits from .profile-section */
}

.contact-intro {
    margin-bottom: 25px;
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
}

.business-contact-form-modern {
    margin-top: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
}

.form-group label .required {
    color: #dc3545;
    margin-left: 3px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control::placeholder {
    color: #9ca3af;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.submit-btn-modern {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn-modern:hover {
    background: linear-gradient(135deg, #5568d3, #6a3f8f);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.submit-btn-modern:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
}

.submit-btn-modern .btn-text {
    display: flex;
    align-items: center;
    gap: 10px;
}

.submit-btn-modern .btn-loading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-messages {
    margin-bottom: 20px;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
}

.form-messages.success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.form-messages.error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #dc3545;
}

/* ========================================
   SIDEBAR
   ======================================== */

.business-profile-sidebar {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.sidebar-card:hover {
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.12);
    border-color: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.sidebar-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.sidebar-icon {
    width: 24px;
    height: 24px;
    color: #667eea;
}

/* Contact Info Card */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.contact-info-item:hover {
    background: #f3f4f6;
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: #667eea;
    flex-shrink: 0;
}

.contact-info-item a {
    color: #1f2937;
    text-decoration: none;
    word-break: break-word;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.contact-info-item a:hover {
    color: #667eea;
    text-decoration: underline;
}

/* Social Media Card */
.social-links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    color: #fff;
}

.social-link:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-link.facebook {
    background: linear-gradient(135deg, #1877f2, #0d65d9);
}

.social-link.twitter {
    background: linear-gradient(135deg, #1da1f2, #0c85d0);
}

.social-link.linkedin {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.social-link.instagram {
    background: linear-gradient(135deg, #e4405f, #d6249f);
}

.social-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Share Card */
.share-buttons,
.share-buttons-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.share-btn,
.share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: #fff;
    border: none;
    cursor: pointer;
}

.share-btn:hover,
.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook,
.share-button.share-facebook {
    background: #1877f2;
}

.share-btn.twitter,
.share-button.share-twitter {
    background: #1da1f2;
}

.share-btn.linkedin,
.share-button.share-linkedin {
    background: #0077b5;
}

.share-btn.copy,
.share-button.share-copy {
    background: #6b7280;
}

.share-btn.copy.copied,
.share-button.share-copy.copied {
    background: #10b981;
}

.share-btn-icon {
    width: 18px;
    height: 18px;
}

.share-button svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

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

@media (max-width: 1024px) {
    .business-profile-layout {
        grid-template-columns: 1fr;
        padding: 0 30px 50px;
        gap: 35px;
    }
    
    .business-profile-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .business-profile-hero {
        padding: 40px 20px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero-left {
        display: flex;
        justify-content: center;
    }
    
    .hero-right {
        align-items: center;
    }
    
    .business-logo,
    .business-profile-logo {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }
    
    .hero-title-row {
        justify-content: center;
        flex-direction: column;
    }
    
    .hero-title-wrapper {
        justify-content: center;
        flex-direction: column;
    }
    
    .business-title,
    .business-profile-title {
        font-size: 2rem;
    }
    
    .hero-categories,
    .business-profile-categories {
        justify-content: center;
    }
    
    .hero-rating,
    .business-star-rating-hero {
        justify-content: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .business-profile-layout {
        padding: 0 20px 40px;
        gap: 25px;
    }
    
    .profile-section {
        padding: 30px 20px;
        border-radius: 12px;
    }
    
    .sidebar-card {
        padding: 25px 20px;
        border-radius: 12px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .business-profile-hero {
        padding: 30px 15px;
    }
    
    .business-logo,
    .business-profile-logo {
        width: 120px;
        height: 120px;
    }
    
    .business-title,
    .business-profile-title {
        font-size: 1.6rem;
    }
    
    .rating-display {
        font-size: 1.4rem;
    }
    
    .rating-average {
        font-size: 1.5rem;
    }
    
    .rating-value-large {
        font-size: 1.6rem;
    }
    
    .hero-btn,
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .business-profile-layout {
        padding: 0 15px 30px;
        gap: 20px;
    }
    
    .profile-section {
        padding: 25px 15px;
        border-radius: 10px;
    }
    
    .sidebar-card {
        padding: 20px 15px;
        border-radius: 10px;
    }
    
    .section-heading {
        font-size: 1.5rem;
    }
    
    .sidebar-heading {
        font-size: 1.2rem;
    }
    
    .share-buttons {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   REVIEWS WRAPPER - FULL WIDTH AT BOTTOM
   ======================================== */

.business-reviews-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 60px;
}

.business-reviews-wrapper .profile-section {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .business-reviews-wrapper {
        padding: 0 20px 40px;
    }
    
    .business-reviews-wrapper .profile-section {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .business-reviews-wrapper {
        padding: 0 15px 30px;
    }
    
    .business-reviews-wrapper .profile-section {
        padding: 25px 15px;
    }
}

/* ========================================
   LEGACY CLASSES (Keep for compatibility)
   ======================================== */
/* ========================================
   LEGACY CLASSES (Keep for compatibility)
   ======================================== */

/* Star Rating */
.business-star-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.star-rating-display {
    display: inline-flex;
    gap: 3px;
    font-size: 20px;
}

.star {
    color: #ddd;
}

.star.filled {
    color: #ffc107;
}

.star.half {
    position: relative;
    color: #ddd;
}

.star.half::before {
    content: '★';
    position: absolute;
    left: 0;
    color: #ffc107;
    width: 50%;
    overflow: hidden;
}

.rating-value {
    font-weight: 600;
    color: #666;
    font-size: 16px;
}

.comment-form-rating {
    margin-bottom: 20px;
}

.comment-form-rating label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}

.comment-form-rating .required {
    color: #d63638;
}

/* Star Rating Input */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
    font-size: 32px;
    margin-bottom: 8px;
}

.star-rating-input input[type="radio"] {
    display: none;
}

.star-rating-input label.star {
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s ease;
}

.star-rating-input label.star:hover,
.star-rating-input label.star:hover ~ label.star,
.star-rating-input input[type="radio"]:checked ~ label.star {
    color: #ffc107;
}

.comment-form-rating .description {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* Comment Rating Display */
.comment-rating {
    margin-bottom: 12px;
}

.comment-rating .star-rating-display {
    font-size: 16px;
}

/* Business Rating Summary */
.business-rating-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.rating-stars {
    display: flex;
    align-items: center;
}

.rating-meta {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 16px;
}

.rating-average {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.rating-separator,
.rating-max {
    font-size: 18px;
    color: #666;
}

.rating-count {
    font-size: 14px;
    color: #888;
    margin-left: 4px;
}

/* Reviews Section */
.business-reviews-section {
    max-width: 900px;
    margin: 60px auto 0;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
}

.business-reviews-section .section-title {
    font-size: 2em;
    margin-bottom: 40px;
    color: #333;
    text-align: center;
}

/* Reviews Wrapper */
.business-reviews-wrapper {
    width: 100%;
}

/* Rating Summary */
.reviews-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    text-align: center;
    color: #fff;
}

.summary-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.summary-score {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.score-number {
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
}

.score-max {
    font-size: 32px;
    opacity: 0.8;
}

.summary-stars {
    font-size: 32px;
}

.summary-stars .star-rating-display {
    gap: 8px;
}

.summary-count {
    font-size: 16px;
    opacity: 0.9;
}

/* Reviews List */
.reviews-list-container {
    margin-bottom: 50px;
}

.reviews-title {
    font-size: 1.6em;
    margin-bottom: 25px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.reviews-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.review-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.review-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Review Header */
.review-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.reviewer-avatar {
    flex-shrink: 0;
}

.reviewer-avatar img {
    border-radius: 50%;
    width: 60px;
    height: 60px;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.reviewer-rating {
    margin-bottom: 5px;
}

.reviewer-rating .star-rating-display {
    font-size: 16px;
}

.review-date {
    font-size: 13px;
    color: #888;
}

/* Review Text */
.review-text {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.review-text p {
    margin-bottom: 10px;
}

/* Review Actions */
.review-actions {
    display: flex;
    gap: 15px;
    font-size: 14px;
}

.review-actions a {
    color: #2271b1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.review-actions a:hover {
    color: #135e96;
    text-decoration: underline;
}

.review-awaiting-moderation {
    padding: 10px 15px;
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    color: #856404;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Comment Navigation */
.comment-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.comment-navigation a {
    color: #2271b1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.comment-navigation a:hover {
    color: #135e96;
}

/* Review Form */
.review-form-container {
    background: #f9f9f9;
    padding: 35px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

.review-form-title {
    font-size: 1.6em;
    margin-bottom: 25px;
    color: #333;
    text-align: center;
}

.review-form-container .comment-form > p {
    margin-bottom: 20px;
}

.review-form-container label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.review-form-container input[type="text"],
.review-form-container input[type="email"],
.review-form-container input[type="url"],
.review-form-container textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: #fff;
}

.review-form-container input:focus,
.review-form-container textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.review-form-container textarea {
    min-height: 120px;
    resize: vertical;
}

.review-form-container .required {
    color: #d63638;
}

/* Submit Button */
.btn-submit-review {
    background: #2271b1;
    color: #fff;
    padding: 14px 35px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-submit-review:hover {
    background: #135e96;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.reviews-closed {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
    font-style: italic;
    border: 2px dashed #ddd;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .business-rating-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .star-rating-input {
        font-size: 28px;
    }
    
    .business-reviews-section {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .reviews-summary {
        padding: 30px 20px;
    }
    
    .score-number {
        font-size: 48px;
    }
    
    .score-max {
        font-size: 24px;
    }
    
    .summary-stars {
        font-size: 24px;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .review-form-container {
        padding: 25px 20px;
    }
    
    .comment-navigation {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .review-item {
        padding: 20px 15px;
    }
    
    .reviewer-avatar img {
        width: 50px;
        height: 50px;
    }
    
    .reviewer-name {
        font-size: 16px;
    }
    
    .review-form-container {
        padding: 20px 15px;
    }
}

/* ========================================
   BUSINESS CONTACT FORM SECTION
   ======================================== */

.business-contact-section {
    max-width: 900px;
    margin: 60px auto 40px;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.business-contact-section .section-title {
    margin: 0 0 25px 0;
    font-size: 2em;
    color: #333;
    border-bottom: 3px solid #2271b1;
    padding-bottom: 15px;
}

.contact-form-intro {
    margin-bottom: 30px;
}

.contact-form-intro p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
    padding: 35px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

/* Form Messages */
.form-messages {
    display: none;
    margin-bottom: 25px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 15px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-messages.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 2px solid #28a745;
}

.form-messages.error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 2px solid #dc3545;
}

.message-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.message-icon {
    font-size: 22px;
    font-weight: bold;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

/* Form Group */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.form-group label .required {
    color: #dc3545;
    margin-left: 3px;
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.form-control.error {
    border-color: #dc3545;
    background: #fff5f5;
}

.form-control::placeholder {
    color: #999;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Field Error Message */
.field-error {
    display: block;
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #2271b1, #135e96);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:hover::before {
    width: 400px;
    height: 400px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #135e96, #0d4572);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 113, 177, 0.4);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.submit-btn:disabled:hover {
    box-shadow: none;
}

/* Button Loading State */
.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Contact Unavailable Message */
.contact-unavailable {
    padding: 40px;
    text-align: center;
    background: linear-gradient(135deg, #f9f9f9, #f0f0f0);
    border-radius: 10px;
    border: 2px dashed #ddd;
}

.contact-unavailable p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.contact-unavailable::before {
    content: '📧';
    display: block;
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Responsive Design for Contact Form */
@media (max-width: 768px) {
    .business-contact-section {
        padding: 30px 20px;
        margin: 40px 20px;
    }
    
    .contact-form-wrapper {
        padding: 25px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .business-contact-section .section-title {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .business-contact-section {
        padding: 25px 15px;
        margin: 30px 15px;
    }
    
    .contact-form-wrapper {
        padding: 20px 15px;
    }
    
    .business-contact-section .section-title {
        font-size: 1.5em;
    }
    
    .submit-btn {
        padding: 14px 25px;
        font-size: 15px;
    }
}
