/* Contact Page Styling */

/* Root Variables */
:root {
    --primary-color: #0056b3;
    --secondary-color: #00a859;
    --accent-color: #ffa500;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --light-gray: #f8fafc;
    --gray: #e2e8f0;
    --success: #10b981;
    --error: #ef4444;
    --gradient-primary: linear-gradient(135deg, #0056b3, #00a859);
    --gradient-secondary: linear-gradient(135deg, #00a859, #8ed1fc);
    --gradient-accent: linear-gradient(135deg, #ffa500, #ff6b6b);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.15);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-full: 9999px;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    display: none;
}

/* Hero Section */
.contact-hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    /* Replace missing image with gradient background */
    background: linear-gradient(135deg, #0056b3, #00a859);
    overflow: hidden;
}

/* Add pattern overlay to hero section */
.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.2;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hero-divider {
    width: 80px;
    height: 4px;
    background: var(--white);
    margin: 0 auto;
    border-radius: 2px;
}

/* Section Styling */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 1px;
    background: linear-gradient(to right, #e3f2fd, #bbdefb);
    color: var(--primary-color);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.section-badge.form-badge {
    background: linear-gradient(to right, #e8f5e9, #c8e6c9);
    color: var(--secondary-color);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 1.5rem auto;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.section-divider.form-divider {
    background: var(--gradient-secondary);
}

.section-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
    animation: shine 3s infinite;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Contact Cards Section */
.contact-cards-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    z-index: 1;
}

.contact-card:nth-child(2)::before {
    background: var(--gradient-secondary);
}

.contact-card:nth-child(3)::before {
    background: var(--gradient-accent);
}

.contact-card:nth-child(4)::before {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(10deg);
}

.phone-icon {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: var(--primary-color);
}

.email-icon {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: var(--secondary-color);
}

.location-icon {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    color: var(--accent-color);
}

.whatsapp-icon {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--white);
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.contact-links {
    background-color: var(--light-gray);
    padding: 1.25rem;
    border-radius: var(--border-radius-md);
}

.contact-links a {
    display: block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.contact-links a:last-child {
    margin-bottom: 0;
}

.contact-links a:hover {
    color: var(--secondary-color);
}

.contact-links.address {
    text-align: left;
    line-height: 1.8;
}

/* Contact Form Section */
.contact-form-section {
    padding: 5rem 0 8rem;
    background-color: var(--light-gray);
    position: relative;
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-group .required {
    color: var(--error);
}

.form-group .optional {
    color: var(--text-light);
    font-weight: normal;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    color: var(--text-dark);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23475569' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 2.5rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.error-message {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--error);
    background-color: #fef2f2;
}

.form-group.error .error-message {
    display: block;
}

.message-note {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
}

.message-note i {
    margin-right: 0.5rem;
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 15px rgba(0, 86, 179, 0.2);
    position: relative;
    overflow: hidden;
}

.submit-button i {
    margin-left: 0.75rem;
}

.submit-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.3), rgba(255,255,255,0));
    transform: rotate(30deg);
    transition: transform 0.7s ease;
    opacity: 0;
}

.submit-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 86, 179, 0.3);
}

.submit-button:hover::after {
    transform: translateX(100%) rotate(30deg);
    opacity: 1;
}

/* Success Message */
.success-message {
    padding: 3rem;
    text-align: center;
    background-color: #ecfdf5;
    border: 2px solid var(--success);
    border-radius: var(--border-radius-lg);
}

.success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 1.5rem;
}

.success-message h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #064e3b;
    margin-bottom: 1rem;
}

.success-message p {
    font-size: 1.125rem;
    color: #047857;
}

/* Animation Keyframes */
@keyframes shine {
    0% { transform: translateX(0); }
    100% { transform: translateX(200%); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .section-header h2 {
        font-size: 2.25rem;
    }
    
    .contact-cards {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .form-container {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .contact-hero {
        height: 350px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .contact-hero {
        height: 300px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .contact-cards-section,
    .contact-form-section {
        padding: 3rem 0;
    }
}

/* Office Locations Section */
.office-locations-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.offices-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.office-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--gray);
}

.office-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.office-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray);
}

.office-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.5rem;
}

.office-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.office-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-secondary);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--border-radius-full);
}

.office-address {
    text-align: left;
}

.office-address p {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.office-address address {
    font-style: normal;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.office-map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-sm);
}

.office-map-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

/* Responsive Design for Office Locations */
@media (max-width: 768px) {
    .offices-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .office-card {
        padding: 1.5rem;
    }
    
    .office-header h3 {
        font-size: 1.25rem;
    }
}