/* Contact Page Specific Styles */

/* Contact Hero Section */
.contact-hero {
    background: linear-gradient(135deg, #1a2a6c 0%, #2a3a8c 100%);
    color: white;
    padding: 160px 0 80px; /* extra top space to clear fixed header */
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Ensure hero text is white for contrast */
.contact-hero h1,
.contact-hero p {
    color: #ffffff;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../../images/contact-bg.jpg') no-repeat center center/cover;
    opacity: 0.1;
    z-index: 0;
}

.contact-hero .container {
    position: relative;
    z-index: 1;
}

.contact-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* Contact Info Grid */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.contact-method {
    background: #fff;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.contact-icon {
    width: 80px;
    height: 80px;
    background: #f8f9ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: #1a2a6c;
    font-size: 30px;
}

.contact-method h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1a2a6c;
}

.contact-method p {
    color: #1a2a6c;
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-method a {
    color: #1a2a6c;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.contact-method a:hover {
    color: #3a5ccc;
}

.contact-method a i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.contact-method a:hover i {
    transform: translateX(5px);
}

.contact-method a:hover i.fa-phone-alt {
    transform: translateX(5px) scaleX(-1);
}

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

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #1a2a6c;
    margin-bottom: 15px;
}

.section-header p {
    color: #1a2a6c;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.form-content {
    padding: 50px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1a2a6c;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-control:focus {
    border-color: #3a5ccc;
    box-shadow: 0 0 0 3px rgba(58, 92, 204, 0.1);
    outline: none;
}

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

.submit-btn {
    background: #1a2a6c;
    color: white;
    border: none;
    padding: 14px 35px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.submit-btn:hover {
    background: #3a5ccc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 42, 108, 0.2);
}

.submit-btn i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

.form-image {
    background: linear-gradient(135deg, #1a2a6c 0%, #3a5ccc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.form-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../../images/contact-illustration.svg') no-repeat center center/contain;
    opacity: 0.1;
}

.form-image-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 400px;
}

/* Force white for headings and icons on gradient pane */
.form-image h3,
.contact-info-text h4 {
    color: #ffffff;
}

.contact-info-icon i {
    color: #ffffff;
}

.form-image h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.form-image p {
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-info-list {
    text-align: left;
    margin-top: 40px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-info-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-info-text h4 {
    margin: 0 0 5px;
    font-size: 1.1rem;
}

.contact-info-text p, 
.contact-info-text a {
    margin: 0;
    opacity: 0.9;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-info-text a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Map Section */
.map-section {
    padding: 80px 0;
    background: #fff;
}

.branch-selector {
    margin: 0 0 20px;
}

.branch-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.branch-item {
    padding: 8px 14px;
    background: #f0f4ff;
    color: #1a2a6c;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.branch-item:hover {
    background: #e3e9ff;
}

.branch-item.active {
    background: #1a2a6c;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(26, 42, 108, 0.2);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    height: 500px;
}

#map {
    width: 100%;
    height: 100%;
    border: none;
}

/* Business Hours */
.business-hours {
    background: #f8f9ff;
    padding: 80px 0;
}

.hours-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.hours-card {
    background: #fff;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.hours-card:hover {
    transform: translateY(-5px);
}

.hours-icon {
    width: 70px;
    height: 70px;
    background: #f0f4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: #1a2a6c;
    font-size: 28px;
}

.hours-card h3 {
    color: #1a2a6c;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

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

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.hours-list li:last-child {
    border-bottom: none;
}

.day {
    font-weight: 500;
    color: #1a2a6c;
}

.time {
    color: #1a2a6c;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1a2a6c 0%, #3a5ccc 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../../images/cta-bg-pattern.png') repeat;
    opacity: 0.1;
    z-index: 0;
}

.cta-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffffff; /* ensure white overrides global h2 color */
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    color: #ffffff;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: #fff;
    color: #1a2a6c;
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn i {
    margin-right: 10px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: #f0f4ff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .form-container {
        grid-template-columns: 1fr;
    }
    
    .form-image {
        display: none;
    }
    
    .contact-hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 80px 0 60px;
    }
    
    .contact-hero h1 {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .contact-method {
        padding: 30px 20px;
    }
    
    .form-content {
        padding: 30px 20px;
    }
    
    .map-section {
        padding: 40px 0;
    }
    
    .map-container {
        height: 400px;
    }
}
