/* ============================================
   Healthcare Reviews - Main Stylesheet
   ============================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.reviews-header h1 {
    color:white;
    font-size: 4.5rem !important;
}



a {
    color: #10546b;
    text-decoration: none;
    background-color: transparent;
}


body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

/* Bootstrap Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
    align-items: center;
}

.col-md-3, .col-md-9, .col-xs-3 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.col-md-9 {
    flex: 0 0 75%;
    max-width: 75%;
}

.col-xs-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

@media (max-width: 768px) {
    .col-md-3, .col-md-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Icon Images - PNG Support */
.category-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.service-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

.service-icon-large {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Container */
.reviews-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Override WordPress theme constraints for service pages */
.zak-content .reviews-container.service-page,
.zak-row .reviews-container.service-page {
    max-width: 1400px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Ensure feedback form container uses full available width */
.zak-content .service-page .feedback-page .container,
.zak-row .service-page .feedback-page .container {
    max-width: 1400px !important;
    width: 100% !important;
}

/* Banner Header Spacing */
header.banner {
    padding-top: 40px;
    padding-bottom: 20px;
}

/* Header */
.reviews-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #004F6B 0%, #004F6B 100%);
    color: white;
    border-radius: 10px;
}

.reviews-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.reviews-header .subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Main Content Layout */
.reviews-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Sidebar */
.categories-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

.generic-content.sidebar {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.text-left {
    text-align: left;
}

.categories-sidebar .row {
    margin-bottom: 0;
    align-items: center;
}

.categories-sidebar h4 {
    font-size: 1.0rem;
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
}

.categories-sidebar a {
    text-decoration: none;
    color: #2c3e50;
    transition: color 0.2s ease;
}

.categories-sidebar a:hover {
    color: #667eea;
}

.categories-sidebar a:hover h4 {
    color: #667eea;
}

.categories-sidebar hr {
    margin: 12px 0;
    border: 0;
    border-top: 1px solid #eee;
}

/* Main Reviews/Services Area */
.reviews-main {
    width: 100%;
    flex: 1;
    min-width: 0;
}

.reviews-header-bar {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.reviews-header-bar h2 {
    font-size: 1.2rem;
    color: #2c3e50;
}

/* Services List */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Service Card */
.service-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.service-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    border-left-color: #667eea;
    transform: translateY(-2px);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 20px;
}

.service-title-section {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    flex: 1;
}


.service-title-content {
    flex: 1;
}

.service-name {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 5px;
    font-weight: 600;
}

.category-badge {
    display: inline-block;
    background: #e8f4f8;
    color: #3498db;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 1.0rem;
    font-weight: 500;
}

.category-badge.large {
    font-size: 1.0rem;
    padding: 6px 16px;
}

.service-rating-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.review-count {
    font-size: 1.6rem;
    color: #666;
}

.no-reviews-text {
    color: #999;
    font-style: italic;
}

/* Star Rating */
.star-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.star {
    font-size: 1.4rem;
    line-height: 1;
}

.star-full {
    color: #ffd700;
    text-shadow: 0 0 3px rgba(255, 215, 0, 0.5);
}

.star-half {
    color: #ffd700;
    opacity: 0.6;
    text-shadow: 0 0 3px rgba(255, 215, 0, 0.5);
}

.star-empty {
    color: #ddd;
}

.rating-number {
    margin-left: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

/* Larger stars in individual reviews on service page */
.review-item .star {
    font-size: 1.8rem;
}

.review-item .rating-number {
    font-size: 1.2rem;
}

/* Service Footer */
.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
    gap: 15px;
}

.service-contact-brief {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 1.1rem;
    color: #666;
}

.contact-item {
    display: block;
}

/* Buttons */
.btn-view-service {
    display: inline-block;
    padding: 10px 20px;
    background-color: #a81563;
    border-color: #a81563;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.btn-view-service:hover {
    background-color: #830c4b;
    border-color: #a81563;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Leave Feedback button on service cards */
.btn-leave-feedback-card {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    border: 2px solid #004F6B;
    color: #004F6B;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.8rem;
    margin-right: 10px;
}

.btn-leave-feedback-card:hover {
    background-color: #004F6B;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 79, 107, 0.3);
}

/* Service actions container */
.service-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 768px) {
    .service-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-leave-feedback-card,
    .btn-view-service {
        width: 100%;
        text-align: center;
        margin-right: 0;
    }
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f0f2f5;
    color: #555;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.btn-back:hover {
    background: #e0e3e8;
    color: #333;
}

/* No Reviews Message */
.no-reviews {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
    color: #999;
}

/* ============================================
   SERVICE PAGE STYLES
   ============================================ */

.service-page-header {
    margin: auto;
    width: 74%;
    background: #004f6b;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.service-info-main {
    display: flex;
    gap: 20px;
    align-items: center;
    flex: 1;
}

.headerBar {
    background-color: #004f6b;
    width: 100%;
    height: 165px;
}


.service-header-content h1 {
    font-size: 1.5rem !important;
    color: #ffffff;
    margin-bottom: 8px;
}

.btn-leave-feedback {
    display: inline-block;
    padding: 12px 24px;
    background-color: #a81563;
    border-color: #a81563;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-leave-feedback:hover {
    background-color: #830c4b;
    border-color: #830c4b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(168, 21, 99, 0.3);
}

/* Overall Rating Banner */
.overall-rating-banner {
    background: linear-gradient(135deg, #004F6B 0%, #005580 100%);
    padding: 40px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    color: white;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 79, 107, 0.3);
}

.rating-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.rating-score-large {
    font-size: 5.5rem;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: -2px;
}

/* Larger stars in the rating summary banner */
.overall-rating-banner .star {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.overall-rating-banner .star-rating {
    gap: 6px;
}

.overall-rating-banner .rating-number {
    font-size: 1.6rem;
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.rating-text {
    font-size: 1.3rem;
    opacity: 0.95;
    font-weight: 500;
}

/* Service Content Layout */
.service-content-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.service-reviews-column {
    flex: 1;
    min-width: 0;
}

.service-reviews-column h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

/* Reviews List on Service Page */
.reviews-list-service {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.review-item {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.review-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.review-title-service {
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 12px;
    font-style: italic;
}

.review-text-service {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.review-meta-service {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
    font-size: 0.8rem;
}
.reviewer-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-relationship-service, .review-location-service {
    color: #666;
}

.verified-badge {
    background: #27ae60;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.review-date {
    color: #999;
}

.review-actions-service {
    text-align: right;
}

.btn-provider-response {
    display: inline-block;
    padding: 10px 20px;
    background-color: #a81563;
    border-color: #a81563;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 1.7rem;
}

.btn-provider-response:hover {
    background-color: #830c4b;
    border-color: #830c4b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(168, 21, 99, 0.3);
}

/* Provider Response Styling */
.provider-response {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #004F6B;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.provider-response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.provider-badge {
    display: inline-block;
    background: linear-gradient(135deg, #004F6B 0%, #005580 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 79, 107, 0.3);
}

.response-date {
    color: #666;
    font-size: 1.1rem;
    font-style: italic;
}

.provider-response-text {
    color: #2c3e50;
    line-height: 1.7;
    margin-bottom: 12px;
    font-size: 1.0rem;
}

.response-by {
    text-align: right;
    color: #555;
    font-style: italic;
    font-size: 1.1rem;
    margin: 10px 0 0 0;
    font-weight: 500;
}

/* Service Details Sidebar */
.service-details-sidebar {
    width: 350px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

.service-details-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.service-details-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-label {
    font-weight: 600;
    color: #666;
    font-size: 1.3rem;
}

.contact-value {
    color: #333;
}

.contact-value a {
    color: #667eea;
    text-decoration: none;
}

.contact-value a:hover {
    text-decoration: underline;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
}

.cta-card {
    background: linear-gradient(135deg, #004F6B 0%, #004F6B 100%);
    color: white;
}

.cta-card h3 {
    border-bottom-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.cta-card p {
    margin-bottom: 15px;
    opacity: 0.95;
}

.btn-leave-feedback-large {
    display: block;
    text-align: center;
    padding: 12px 24px;
    background-color: #a81563;
    border-color: #a81563;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-leave-feedback-large:hover {
    background-color: #830c4b;
    border-color: #830c4b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 21, 99, 0.3);
}

/* ============================================
   PROVIDER RESPONSE PAGE STYLES
   ============================================ */

.provider-response-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.response-form-column {
    flex: 1;
    min-width: 0;
}

.original-review-sidebar {
    width: 350px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

.generic-content-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.generic-content-card h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.generic-content-card h3 {
    font-size: 1.3rem;
    margin: 20px 0 10px;
    color: #2c3e50;
}

.generic-content-card ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.generic-content-card li {
    margin-bottom: 8px;
}

.generic-content-card p {
    margin-bottom: 15px;
    line-height: 1.7;
}

/* Address Lookup Styles */
.address-results {
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    position: relative;
}

.address-dropdown-header {
    padding: 10px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
}

.address-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    font-size: 1.7rem;
}

.address-item:last-child {
    border-bottom: none;
}

.address-item:hover {
    background-color: #e9f5ff;
    padding-left: 20px;
}

.address-loading {
    padding: 15px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.address-no-results {
    padding: 15px;
    text-align: center;
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    margin: 5px;
}

.address-error {
    padding: 15px;
    text-align: center;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 5px;
}

.selected-address-display {
    margin-top: 10px;
    padding: 12px 15px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selected-address-display strong {
    color: #155724;
    margin-right: 10px;
}

.selected-address-display span {
    flex-grow: 1;
    color: #155724;
}

.selected-address-display .btn-link {
    color: #007bff;
    text-decoration: none;
    padding: 0;
    font-size: 0.875rem;
}

.selected-address-display .btn-link:hover {
    text-decoration: underline;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.small {
    max-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group label em {
    color: #e74c3c;
    font-style: normal;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal !important;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.btn-secondary {
    padding: 12px 30px;
    background-color: #a81563;
    border-color: #a81563;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #830c4b;
    border-color: #830c4b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(168, 21, 99, 0.3);
}

.form-note {
    margin-top: 10px;
    color: #666;
    font-size: 0.9rem;
}

/* Original Review in Sidebar */
.service-name-review {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.review-widget {
    margin: 15px 0;
}

.review-title-original {
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 600;
    margin: 15px 0 10px;
    font-style: italic;
}

.review-text-original {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.review-meta-original p {
    margin-bottom: 8px;
    font-size: 1rem;
    color: #666;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 968px) {
    .reviews-content {
        flex-direction: column;
    }
    
    .categories-sidebar {
        width: 100%;
        position: static;
    }
    
    .service-content-layout {
        flex-direction: column;
    }
    
    .service-details-sidebar {
        width: 100%;
        position: static;
    }
    
    .provider-response-layout {
        flex-direction: column-reverse;
    }
    
    .original-review-sidebar {
        width: 100%;
        position: static;
    }
    
    .reviews-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .reviews-container {
        padding: 10px;
    }
    
    .reviews-header {
        padding: 15px;
    }
    
    .reviews-header h1 {
        font-size: 1.75rem;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-header {
        flex-direction: column;
    }
    
    .service-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .service-page-header {
        width: 100%;
        padding: 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .service-info-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
        width: 100%;
    }
    
    .service-header-content {
        text-align: center;
    }
    
    .service-header-content h1 {
        font-size: 1.2rem !important;
    }
    
    .service-icon-large {
        width: 60px;
        height: 60px;
    }
    
    .btn-back {
        position: relative;
        z-index: 10;
        margin-top: 10px;
        margin-bottom: 15px;
        display: inline-flex;
        width: auto;
    }
    
    .rating-summary {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .reviews-header h1 {
        font-size: 1.5rem;
    }
    
    .service-name {
        font-size: 1.2rem;
    }
    
    .review-meta-service {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .rating-score-large {
        font-size: 2.5rem;
    }
}

/* ============================================
   FEEDBACK FORM STYLES
   ============================================ */

.feedback-page .container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.feedback-page h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.feedback-page h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #004F6B;
}

.feedback-page hr {
    margin: 25px 0;
    border: 0;
    border-top: 1px solid #eee;
}

.feedback-form {
    width: 100%;
}

/* Enhanced Feedback Form Container */
.service-reviews-column .feedback-form {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Full-width feedback form layout - hide sidebar when feedback form is present */
.service-content-layout .service-reviews-column:has(.feedback-form) ~ .service-details-sidebar {
    display: none !important;
}

/* Make feedback form column take full width when sidebar is hidden */
.service-content-layout .service-reviews-column:has(.feedback-form) {
    max-width: 100% !important;
    flex: 1 1 100% !important;
}

.review-pending {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #e8f4f8 0%, #d4edda 100%);
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px solid #004F6B;
    font-weight: 600;
    color: #004F6B;
}

.form-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid #004F6B;
}

.form-section h3 {
    font-size: 1.8rem;
    color: #004F6B;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #004F6B;
}

/* Star Rating Input - Enhanced */
.star-rating-input {
    display: flex;
    gap: 27px;
    margin: 20px 0;
    justify-content: flex-start;
    padding: 15px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    max-width: 280px;
}

.rating-star {
    font-size: 2rem;
    cursor: pointer;
    color: #ddd;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rating-star:hover {
    color: #ffd700;
    transform: scale(1.2);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.rating-star.active {
    color: #ffd700;
    transform: scale(1.15);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.rating-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
    margin-top: 10px;
    font-weight: 500;
    max-width: 280px;
}

.rating-labels span {
    flex: 1;
    text-align: center;
}

/* Enhanced Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.form-group label em {
    color: #a81563;
    font-style: normal;
    font-weight: bold;
    margin-left: 4px;
}

/* Enhanced Form Controls */
.form-control,
select.form-control {
    width: 100%;
   
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.0rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus,
select.form-control:focus {
    outline: none;
    border-color: #004F6B;
    box-shadow: 0 0 0 4px rgba(0, 79, 107, 0.1);
    background: #fff;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-color: #fff !important;
    padding-right: 40px;
    color: #333 !important;
    line-height: 1.5;
}

select.form-control option {
    color: #333 !important;
    background: white !important;
    padding: 8px;
}

select.form-control:focus {
    background-color: #fff !important;
    color: #333 !important;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
    font-size: 1rem;
}



/* Enhanced Checkboxes and Radio Buttons */
.form-check {
    margin-bottom: 15px;
    padding: 10px;
    padding-left: 39px;
    background: white;
    border-radius: 8px;
    transition: background 0.2s ease;
}

input#location {
    text-transform: uppercase;
}


.form-check .form-check-input {
    float: left;
    margin-left: -0.3em;
    margin-top: 0.0em;
}

.form-check:hover {
    background: #f8f9fa;
}

.form-check-inline {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    margin-right: 20px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #004F6B;
}




.form-check-input[type="checkbox"] {
    border-radius: 4px;
}

.form-check-label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #333;
    user-select: none;
}

.form-check-label a {
    color: #004F6B;
    text-decoration: underline;
}

/* Enhanced Submit Button */
.btn-secondary,
#btn-add-review {
    padding: 12px 30px;
    background: linear-gradient(135deg, #a81563 0%, #830c4b 100%);
    border: none;
    color: white;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(168, 21, 99, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-secondary:hover,
#btn-add-review:hover {
    background: linear-gradient(135deg, #830c4b 0%, #a81563 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 21, 99, 0.4);
}

.btn-secondary:active,
#btn-add-review:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(168, 21, 99, 0.3);
}

/* Small Helper Text */
small,
.form-text {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Required Indicator */
em {
    color: #a81563;
    font-style: normal;
    font-weight: bold;
}

/* Entry Content */
.entry-content {
    margin-top: 20px;
}

/* Form Note - Enhanced */
.form-note {
    color: #666;
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #004F6B;
    border-radius: 6px;
}

/* Question Label - Enhanced */
.form-group.question label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #004F6B;
    margin-bottom: 15px;
}

/* Demographics Section Styling */
.form-group hr {
    margin: 20px 0;
    border: 0;
    border-top: 2px solid #e0e0e0;
}

/* Complaint Message */
.complaint-message {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.complaint-message p {
    margin: 0;
    color: #856404;
    font-weight: 500;
}

/* Privacy Section Styling */
#hw-privacy {
    background: #e8f4f8;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    border: 2px solid #004F6B;
}

#hw-privacy .form-group {
    margin-bottom: 20px;
}

#hw-privacy label {
    color: #004F6B;
    font-weight: 600;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-danger {
    background: #f8d7da;
    border: 2px solid #f5c6cb;
    color: #721c24;
}

.alert-success {
    background: #d4edda;
    border: 2px solid #c3e6cb;
    color: #155724;
}

/* Responsive Form Improvements */
@media (max-width: 768px) {
    .service-reviews-column .feedback-form {
        padding: 20px;
    }
    
    .form-section {
        padding: 20px;
    }
    
.rating-star {
        font-size: 1.8rem;
    }
    
    .star-rating-input {
           gap: 27px;
        padding: 15px;
    }
    
    .btn-secondary,
    #btn-add-review {
        width: 100%;
        padding: 15px 20px;
    }
    
    .form-check-inline {
        display: block;
        margin-bottom: 10px;
    }
}

/* ============================================
   IFRAME OPTIMIZATION
   ============================================ */

body.iframe-mode {
    margin: 0;
    padding: 0;
    background: white;
}

body.iframe-mode .reviews-container {
    max-width: 100%;
    padding: 15px;
}

/* ============================================
   INFORMATION & SEARCH SECTION
   ============================================ */

.info-search-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    margin-top: -120px; /* Pull up to overlap the banner image by ~50% of card height */
    position: relative;
    z-index: 10;
}

/* ==========================================
   ENHANCED INFO-BOX CARD STYLES
   ========================================== */

.info-box-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.info-box-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #004F6B;
}

.info-box-icon {
    font-size: 2rem;
    line-height: 1;
}

.info-box-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #004F6B;
    font-weight: 700;
}

.info-box-intro {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1rem;
}

/* CTA Buttons */
.info-box-cta {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.btn-share-views-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #a81563 0%, #830c4b 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(168, 21, 99, 0.3);
}

.btn-share-views-primary:hover {
    background: linear-gradient(135deg, #830c4b 0%, #a81563 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 21, 99, 0.4);
    color: white;
    text-decoration: none;
}

.btn-search-services {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    border: 2px solid #004F6B;
    color: #004F6B;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-search-services:hover {
    background: #004F6B;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 79, 107, 0.3);
    text-decoration: none;
}

.btn-icon {
    font-size: 1.1rem;
}

/* Contact Section */
.info-box-contact {
    display: flex;
    gap: 25px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 200px;
}

.contact-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-details .contact-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-details a {
    color: #004F6B;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.contact-details a:hover {
    color: #a81563;
    text-decoration: underline;
}

/* Disclaimer */
.info-box-disclaimer {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.info-box-disclaimer a {
    color: #004F6B;
    text-decoration: underline;
}

.info-box-disclaimer a:hover {
    color: #a81563;
}

/* Responsive styles for info-box */
@media (max-width: 768px) {
    .info-box-card {
        padding: 20px;
    }
    
    .info-box-header h2 {
        font-size: 1.3rem;
    }
    
    .info-box-cta {
        flex-direction: column;
    }
    
    .btn-share-views-primary,
    .btn-search-services {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .info-box-contact {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-method {
        min-width: auto;
    }
}

.info-box,
.search-box {
    flex: 1;
}

.search-box h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.search-form {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-clear-search {
    padding: 8px 16px;
    background-color: #f0f2f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #555;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-clear-search:hover {
    background-color: #e0e3e8;
    color: #333;
}

.search-results-count {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
}

/* Responsive layout for info-search section */
@media (max-width: 968px) {
    .info-search-section {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: -80px; /* Reduced overlap on tablet */
    }
}

@media (max-width: 768px) {
    .info-search-section {
        margin-top: -40px; /* Minimal overlap on mobile */
        margin-left: 10px;
        margin-right: 10px;
    }
    
    /* Reduce banner image height on mobile */
    .reviews-container > img.rounded {
        max-height: 200px !important;
    }
    
    /* Reduce header bar height on mobile */
    .headerBar {
        height: 100px;
    }
    
    .reviews-header h1 {
        font-size: 1.8rem !important;
    }
    
    .reviews-header .subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .info-search-section {
        margin-top: -20px; /* Very minimal overlap on small mobile */
        margin-left: 5px;
        margin-right: 5px;
    }
    
    .headerBar {
        height: 80px;
    }
    
    .reviews-header h1 {
        font-size: 1.5rem !important;
    }
}

/* ============================================
   HEALTHWATCH COLOR BAR
   ============================================ */

.healthwatch-color-bar {
    display: flex;
    width: 100%;
    height: 10px;
    margin: 0;
    padding: 0;
}

.color-segment {
    flex: 1;
    height: 100%;
}

.segment-1 {
    background-color: #004F6B; /* Teal */
}

.segment-2 {
    background-color: #a81563; /* Magenta/Pink */
}

.segment-3 {
    background-color: #F39200; /* Orange */
}

.segment-4 {
    background-color: #7C3F96; /* Purple */
}

.segment-5 {
    background-color: #80BB42; /* Green */
}

/* ==========================================
   LATEST FEEDBACKS SECTION
   ========================================== */

.latest-feedbacks-section {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.latest-feedbacks-section .section-header {
    text-align: center;
    margin-bottom: 25px;
}

.latest-feedbacks-section .section-header h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

.latest-feedbacks-section .section-header p {
    color: #666;
    font-size: 1.1rem;
}

.latest-feedbacks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.latest-feedback-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.latest-feedback-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.feedback-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.service-icon-small {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.feedback-service-info {
    flex: 1;
    min-width: 0;
}

.feedback-service-info h4 {
    font-size: 1.0rem;
    margin: 0 0 4px 0;
    color: #2c3e50;
}

.feedback-service-info h4 a {
    color: #2c3e50;
    text-decoration: none;
}

.feedback-service-info h4 a:hover {
    color: #667eea;
}

.category-small {
    font-size: 0.85rem;
    color: #666;
    background: #e8f4f8;
    padding: 2px 8px;
    border-radius: 12px;
}

.feedback-rating {
    flex-shrink: 0;
}

.feedback-rating .star-rating {
    gap: 2px;
}

.feedback-rating .star {
    font-size: 1.1rem;
}

.feedback-rating .rating-number {
    font-size: 0.9rem;
    margin-left: 4px;
}

.feedback-content h5 {
    font-size: 1.0rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
}

.feedback-content p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.feedback-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 0.8rem;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 12px;
}

.feedback-meta .reviewer {
    font-weight: 500;
}

.feedback-meta .verified-badge {
    background: #27ae60;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* ==========================================
   SORT CONTROLS
   ========================================== */

.reviews-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-controls label {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

.sort-select {
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

.sort-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .latest-feedbacks-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-header-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sort-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .sort-select {
        flex: 1;
        min-width: 0;
    }
}

/* ==========================================
   SHARE YOUR VIEWS - SERVICE SEARCH PICKER
   ========================================== */

.share-your-views-header {
    text-align: center;
    width: 100%;
}

.share-your-views-header h1 {
    font-size: 2rem !important;
    margin-bottom: 10px;
}

.share-your-views-header .category-badge {
    font-size: 1.1rem;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Service Search Section */
.service-search-section {
    background: linear-gradient(135deg, #e8f4f8 0%, #d4edda 100%);
    border: 2px solid #004F6B;
    margin-bottom: 25px;
}

.service-search-section h3 {
    color: #004F6B;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.service-search-section .section-intro {
    color: #555;
    margin-bottom: 20px;
    font-size: 1rem;
}

.service-search-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.service-search-wrapper .form-control {
    flex: 1;
    font-size: 1.1rem;
    padding: 14px 18px;
}

.search-spinner {
    position: absolute;
    right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-spinner .spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 79, 107, 0.2);
    border-top-color: #004F6B;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Search Results */
.service-search-results {
    margin-top: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
}

.search-results-list {
    padding: 0;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f7fa 100%);
    padding-left: 25px;
}

.result-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}

.result-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.result-info {
    flex: 1;
    min-width: 0;
}

.result-info h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.result-category {
    display: inline-block;
    background: #e8f4f8;
    color: #004F6B;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.result-address {
    color: #666;
    font-size: 0.9rem;
    margin: 5px 0 0 0;
}

.result-rating {
    flex-shrink: 0;
    text-align: right;
}

.result-rating .rating-stars {
    color: #ffd700;
    font-weight: 600;
    font-size: 1rem;
}

.result-rating .rating-count {
    display: block;
    color: #666;
    font-size: 0.8rem;
}

.no-results-message,
.search-error-message {
    padding: 20px;
    text-align: center;
    color: #666;
}

.search-error-message {
    color: #e74c3c;
}

/* Selected Service Display */
.selected-service-display {
    margin-top: 15px;
}

.selected-service-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 2px solid #27ae60;
    box-shadow: 0 2px 10px rgba(39, 174, 96, 0.2);
}

.selected-service-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.selected-service-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

.selected-service-details h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.selected-service-details .category-badge {
    margin-bottom: 5px;
}

.selected-service-address {
    color: #666;
    font-size: 0.9rem;
    margin: 5px 0 0 0;
}

.btn-change-service {
    flex-shrink: 0;
    padding: 10px 20px;
    background: #f0f2f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #555;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-change-service:hover {
    background: #e0e3e8;
    color: #333;
}

/* Responsive adjustments for service search */
@media (max-width: 768px) {
    .selected-service-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .selected-service-info {
        flex-direction: column;
        text-align: center;
    }
    
    .btn-change-service {
        width: 100%;
    }
    
    .search-result-item {
        flex-wrap: wrap;
    }
    
    .result-rating {
        width: 100%;
        text-align: left;
        margin-top: 5px;
        padding-top: 5px;
        border-top: 1px solid #eee;
    }
}

/* ==========================================
   POSTCODE LOCATION FINDER
   ========================================== */

.postcode-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.postcode-input-wrapper .form-control {
    flex: 1;
    min-width: 0;
}

.location-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: auto;
    min-height: 42px;
    padding: 8px;
    background: linear-gradient(135deg, #004F6B 0%, #005580 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 79, 107, 0.3);
    flex-shrink: 0;
}

.location-btn:hover {
    background: linear-gradient(135deg, #005580 0%, #004F6B 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 79, 107, 0.4);
}

.location-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 79, 107, 0.3);
}

.location-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.location-icon {
    font-size: 1.4rem;
    line-height: 1;
}

.location-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-loading .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.location-status {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.location-status.success {
    color: #27ae60;
}

.location-status.error {
    color: #e74c3c;
}

.location-status.loading {
    color: #004F6B;
}

/* Mobile-friendly touch targets */
@media (max-width: 768px) {
    .location-btn {
        width: 52px;
        min-height: 46px;
    }
    
    .location-icon {
        font-size: 1.5rem;
    }
}
