/* Contact Page Styles */

/* Contact-specific card styles - only for contact page cards */
.contact-page .card-body {
    /* Use main card-body styles from common.css */
}

.contact-page .card-title {
    /* Use main card-title styles from common.css */
}

.contact-page .card-text {
    /* Use main card-text styles from common.css */
}

/* Hero Section */
.contact-hero {
    position: relative;
    height: 400px;
    background-image: url('https://images.unsplash.com/photo-1566385101042-1a0aa0c1268c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 3rem;
}

/* Contact page specific hero text styling */
#contactHeroText {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.6;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Categories Grid - Contact page specific layout - STACKED VERTICAL */
.categories-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

/* All screen sizes: keep stacked vertical */
@media (min-width: 768px) and (max-width: 991px) {
    .categories-grid {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
}

/* Enhanced Category Tiles - Left-Right Layout */
.category-tile {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fff;
    display: flex;
    width: 350px;
    height: 150px;
    border: 1px solid #e9ecef;
    flex-shrink: 0;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.category-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #dc3545;
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
    overflow: hidden;
}

.category-info::after {
    content: '';
    position: absolute;
    top: 0;
    right: -10px;
    width: 20px;
    height: 100%;
    background: #dc3545;
    filter: blur(10px);
    z-index: 4;
    pointer-events: none;
}

.category-tile:hover .category-info {
    background: #c82333;
}

.category-image-section {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.category-image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 20px;
    height: 100%;
    background: #f8f9fa;
    filter: blur(10px);
    z-index: 4;
    pointer-events: none;
}

.category-image-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.category-image-slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
    transform: scale(1.1);
}

.category-image-slideshow img.active {
    opacity: 1;
    transform: scale(1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.1) 0%, rgba(220, 20, 60, 0.3) 100%);
    z-index: 3;
    opacity: 0;
    transition: all 0.3s ease;
}

.category-tile:hover .category-overlay {
    opacity: 1;
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.category-content h6 {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    text-align: center;
}

/* Contact Form Styles */
.contact-form {
    background: var(--card-bg, #f8f9fa);
    color: var(--card-text, #2c5530);
    padding: 1.5rem;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 0;
    padding: 10px 12px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: #4a7c59;
    box-shadow: 0 0 0 0.2rem rgba(74, 124, 89, 0.25);
}

.contact-form .btn-primary {
    background: linear-gradient(45deg, #4a7c59, #2c5530);
    border: none;
    padding: 10px 24px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
    background: linear-gradient(45deg, #2c5530, #4a7c59);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Contact Information Styles */
.contact-info {
    background: var(--card-bg, #f8f9fa);
    color: var(--card-text, #2c5530);
    padding: 1.5rem;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.2rem;
}

.contact-details h5 {
    color: #2c5530;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-details p {
    color: #666;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Social Media Styles */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-link:hover {
    transform: translateY(-3px);
    color: white;
    text-decoration: none;
}

.social-link.facebook {
    background: #1877f2;
}

.social-link.twitter {
    background: #1da1f2;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-link.youtube {
    background: #ff0000;
}

/* Map Container */
.map-container {
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Form Validation Styles */
.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: #198754;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success Message */
.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .contact-hero {
        height: 300px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        align-self: center;
    }
}

@media (max-width: 576px) {
    .contact-hero {
        height: 250px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .contact-info {
        padding: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
} 

/* Mobile reordering for contact page */
@media (max-width: 767.98px) {
    /* Contact Information - Move to top */
    .contact-info-section {
        order: 1;
    }
    
    /* Contact Form - Move to second */
    .contact-form-section {
        order: 2;
    }
    
    /* Categories - Move to third */
    .contact-categories-section {
        order: 3;
    }
    
    /* Our Values - Move to fourth */
    .contact-values-section {
        order: 4;
    }
    
    /* Reviews - Move to fifth */
    .contact-reviews-section {
        order: 5;
        display: block !important; /* Show on mobile */
    }
    
    /* Special Offers - Move to last */
    .contact-offers-section {
        order: 6;
        display: block !important; /* Show on mobile */
    }
    
    /* Make the row a flex container to enable ordering */
    .contact-page-row {
        display: flex;
        flex-direction: column;
    }
    
    /* Ensure all columns take full width on mobile */
    .contact-page-row .col-lg-3,
    .contact-page-row .col-lg-6,
    .contact-page-row .col-md-6,
    .contact-page-row .col-md-12 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
} 