<?php $pageTitle = "Contact Us - Sigma Healthcare"; ?>
<?php include 'includes/header.php'; ?>

<style>
/* Contact Page Specific Styles */
body {
    padding-top: 0;
}

/* Updated Contact Hero Section */
.contact-hero-section {
    background: url('images/contact/contact-hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 120px;
}

.contact-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  
    z-index: 1;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 600px;
}

.contact-hero-title {
    color: #07427D;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-hero-subtitle {
    color: #1B4763;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.contact-hero-description {
    color: #1B4763;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
    opacity: 0.9;
}

/* Contact Information Cards */
.contact-info-section {
    padding: 80px 0;
    background: #ffffff;
    margin-top: -100px;
    position: relative;
    z-index: 3;
}

.contact-info-container {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.contact-info-card {
    background: white;
    padding: 40px 30px;
    text-align: center;
    flex: 1;
    border-right: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.contact-info-card:last-child {
    border-right: none;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    background: #07427D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.contact-info-icon i {
    font-size: 24px;
    color: white;
}

.contact-info-title {
    color: #333;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.contact-info-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Contact Form Section */
.contact-form-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact-form-wrapper {
    background: #2c3e50;
    border-radius: 20px;
    padding: 60px 50px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

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

.contact-form-title {
    color: white;
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.contact-form-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
}

.contact-form-grid {
    display: grid;
    gap: 20px;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-input-contact {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px 20px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-input-contact::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-input-contact:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #FE4600;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(254, 70, 0, 0.25);
    color: white;
}

.form-textarea-contact {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px 20px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    min-height: 120px;
    resize: vertical;
}

.form-textarea-contact::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-textarea-contact:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #FE4600;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(254, 70, 0, 0.25);
    color: white;
}

.btn-send-contact {
    background: #FE4600;
    color: white;
    border: none;
    padding: 15px 60px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.btn-send-contact:hover {
    background: #e03d00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(254, 70, 0, 0.3);
}

/* Animation Classes */
.slide-in-up {
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from { 
        opacity: 0; 
        transform: translateY(50px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

.fade-in-delayed {
    animation: fadeInDelayed 1s ease-out 0.3s both;
}

@keyframes fadeInDelayed {
    from { 
        opacity: 0; 
        transform: translateY(30px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .contact-hero-title {
        font-size: 3.5rem;
    }
    
    .contact-info-container {
        max-width: 900px;
    }
}

@media (max-width: 992px) {
    .contact-hero-title {
        font-size: 3rem;
    }
    
    .contact-hero-section {
        min-height: 80vh;
        padding-top: 100px;
    }
    
    .contact-info-container {
        flex-direction: column;
        max-width: 600px;
    }
    
    .contact-info-card {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .contact-info-card:last-child {
        border-bottom: none;
    }
    
    .contact-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-hero-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .contact-hero-subtitle {
        font-size: 1rem;
        text-align: center;
    }
    
    .contact-hero-description {
        text-align: center;
    }
    
    .contact-hero-content {
        text-align: center;
    }
    
    .contact-hero-section {
        min-height: 70vh;
        padding: 100px 0 60px; /* Increased top padding */
        margin-top: 15px; /* Added margin for spacing */
    }
    
    .contact-info-section {
        padding: 60px 0;
        margin-top: -80px;
    }
    
    .contact-info-card {
        padding: 30px 20px;
    }
    
    .contact-form-wrapper {
        padding: 40px 30px;
        margin: 0 15px;
    }
    
    .contact-form-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .contact-hero-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .contact-hero-description {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .contact-hero-section {
        padding: 90px 0 50px; /* Adjusted padding for mobile */
        margin-top: 15px; /* Added margin for mobile spacing */
    }
    
    .contact-info-container {
        flex-direction: column;
        max-width: 600px;
    }
    
    .contact-info-card {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .contact-info-card:last-child {
        border-bottom: none;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .contact-form-title {
        font-size: 1.5rem;
    }
    
    .btn-send-contact {
        width: 100%;
        max-width: none;
    }
}

/* iPhone SE and similar small devices */
@media (max-width: 375px) {
    .contact-hero-section {
        min-height: 60vh;
        padding: 100px 0 40px; /* Increased top padding */
        margin-top: 15px; /* Margin for smaller devices */
    }
    
    .contact-hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .contact-hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .contact-hero-description {
        font-size: 0.85rem;
        line-height: 1.5;
        text-align: center;
        br {
            display: none;
        }
    }
    
    .contact-info-section {
        padding: 60px 0;
        margin-top: -60px;
    }
    
    .contact-info-container {
        max-width: 100%;
        margin: 0 15px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }
    
    .contact-info-card {
        padding: 25px 20px;
    }
    
    .contact-info-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .contact-info-icon i {
        font-size: 20px;
    }
    
    .contact-info-title {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .contact-info-text {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .contact-form-section {
        padding: 60px 0;
    }
    
    .contact-form-wrapper {
        padding: 25px 15px;
        margin: 0 10px;
        border-radius: 15px;
    }
    
    .contact-form-title {
        font-size: 1.3rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    .contact-form-subtitle {
        font-size: 0.85rem;
        margin-bottom: 25px;
    }
    
    .contact-form-grid {
        gap: 15px;
    }
    
    .contact-form-row {
        gap: 15px;
    }
    
    .form-input-contact,
    .form-textarea-contact {
        padding: 12px 15px;
        font-size: 0.9rem;
        border-radius: 6px;
    }
    
    .form-textarea-contact {
        min-height: 100px;
    }
    
    .btn-send-contact {
        padding: 12px 25px;
        font-size: 0.9rem;
        border-radius: 6px;
        margin-top: 15px;
        width: 100%;
        max-width: 150px;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Extra small devices */
@media (max-width: 320px) {
    .contact-hero-title {
        font-size: 1.6rem;
    }
    
    .contact-hero-description {
        font-size: 0.8rem;
    }
    
    .contact-form-title {
        font-size: 1.1rem;
    }
    
    .contact-form-wrapper {
        padding: 20px 12px;
    }
    
    .btn-send-contact {
        width: 100%;
        max-width: none;
    }
}
</style>

<!-- Contact Hero Section -->
<section class="contact-hero-section">
    <div class="container">
        <div class="row">
            <div class="col-lg-6">
                <div class="contact-hero-content slide-in-left">
                    <h1 class="contact-hero-title">CONTACT US</h1>
                    <p class="contact-hero-subtitle">GET IN TOUCH WITH OUR TEAM</p>
                    <p class="contact-hero-description">
                        Contact Sigma Healthcare For Expert Advice On Laboratory<br>
                        Equipment And Diagnostic Solutions Tailored To Your Needs
                    </p>
                </div>
            </div>
        </div>
    </div>
</section>

<!-- Contact Information Section -->
<section class="contact-info-section">
    <div class="container">
        <div class="contact-info-container slide-in-up">
            <!-- Phone Card -->
            <div class="contact-info-card">
                <div class="contact-info-icon">
                    <i class="fas fa-phone"></i>
                </div>
                <h5 class="contact-info-title">TEL:</h5>
                <p class="contact-info-text">0112 828068</p>
                <h5 class="contact-info-title">FAX:</h5>
                <p class="contact-info-text">0112 828069</p>
            </div>
            
            <!-- Address Card -->
            <div class="contact-info-card">
                <div class="contact-info-icon">
                    <i class="fas fa-map-marker-alt"></i>
                </div>
                <h5 class="contact-info-title">ADDRESS:</h5>
                <p class="contact-info-text">
                    404/4A/1, Mathreedasa<br>
                    Mawatha, Pitipana North, Homagama
                </p>
            </div>
            
            <!-- Email Card -->
            <div class="contact-info-card">
                <div class="contact-info-icon">
                    <i class="fas fa-envelope"></i>
                </div>
                <h5 class="contact-info-title">EMAIL:</h5>
                <p class="contact-info-text">info@sigmawork.lk</p>
            </div>
        </div>
    </div>
</section>

<!-- Contact Form Section -->
<section class="contact-form-section">
    <div class="container">
        <div class="contact-form-wrapper fade-in-delayed">
            <div class="contact-form-header">
                <h2 class="contact-form-title">GET IN TOUCH WITH US</h2>
                <p class="contact-form-subtitle">We're Here To Help With Your Laboratory And Diagnostic Equipment Needs</p>
            </div>
            
            <form id="contactForm" method="POST" action="process_contact.php">
                <div class="contact-form-grid">
                    <div class="contact-form-row">
                        <input type="text" name="last_name" class="form-input-contact" placeholder="Last Name" required>
                        <input type="text" name="first_name" class="form-input-contact" placeholder="First Name" required>
                    </div>
                    
                    <input type="email" name="email" class="form-input-contact" placeholder="Email" required>
                    <input type="tel" name="phone" class="form-input-contact" placeholder="Phone Number" required>
                    <textarea name="message" class="form-textarea-contact" placeholder="Message" required></textarea>
                    
                    <button type="submit" class="btn-send-contact">SEND</button>
                </div>
            </form>
        </div>
    </div>
</section>

<script>
// Contact Form Handling
document.addEventListener('DOMContentLoaded', function() {
    const contactForm = document.getElementById('contactForm');
    
    if (contactForm) {
        contactForm.addEventListener('submit', function(e) {
            e.preventDefault();
            
            // Get form data
            const formData = new FormData(this);
            const submitBtn = this.querySelector('.btn-send-contact');
            
            // Show loading state
            submitBtn.textContent = 'SENDING...';
            submitBtn.disabled = true;
            
            // Simulate form submission (replace with actual AJAX call)
            setTimeout(() => {
                // Reset form
                this.reset();
                
                // Show success message
                alert('Thank you for your message! We will get back to you soon.');
                
                // Reset button
                submitBtn.textContent = 'SEND';
                submitBtn.disabled = false;
            }, 2000);
        });
    }
});

// Add smooth scrolling for any anchor links
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
    anchor.addEventListener('click', function (e) {
        e.preventDefault();
        const target = document.querySelector(this.getAttribute('href'));
        if (target) {
            target.scrollIntoView({
                behavior: 'smooth',
                block: 'start'
            });
        }
    });
});
</script>

<?php include 'includes/footer.php'; ?>