/* Branch Contact Styling for Footer and Contact Pages */

/* Contact Page Header - Improved Design */
.contact-form-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-form-section .container {
    position: relative;
}

.contact-form-section .row {
    align-items: flex-start;
}

/* Page Title and Breadcrumb */
.page-title {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    padding: 40px 0;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.page-title h1 {
    font-size: 36px;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    background: rgba(255,255,255,0.1);
    padding: 8px 20px;
    border-radius: 25px;
    display: inline-block;
    margin-top: 15px;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #ffc107;
}

/* Two Column Layout - Common Styles */
.branch-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 20px;
}

/* Full Width Branch Columns for Contact Page */
.contact-form-section .branch-columns {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
    margin: 0;
}

.branch-column {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    border-top: 3px solid;
    transition: all 0.3s ease;
}

.branch-column:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.branch-column h3, .branch-column h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.branch-column h3 i, .branch-column h4 i {
    margin-right: 8px;
    font-size: 14px;
}

.branch-column p {
    color: #fff;
    line-height: 1.4;
    font-size: 13px;
    margin: 8px 0;
    display: flex;
    align-items: flex-start;
}

.branch-column p i {
    margin-right: 8px;
    margin-top: 2px;
    font-size: 12px;
    width: 14px;
    text-align: center;
}

.branch-column a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.branch-column a:hover {
    color: #007bff;
}

/* Nigeria Column Styling */
.nigeria-column {
    border-top-color: #28a745;
}

.nigeria-column h3 i, .nigeria-column h4 i {
    color: #28a745;
}

.nigeria-column p i {
    color: #28a745;
}

/* India Column Styling */
.india-column {
    border-top-color: #ffc107;
}

.india-column h3 i, .india-column h4 i {
    color: #ffc107;
}

.india-column p i {
    color: #ffc107;
}

/* Footer Address Section */
.address-link {
    padding: 10px 0;
}

.address-link h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

/* Contact Page Two Column Layout - Improved Design */
.address .branch-columns {
    margin-top: 25px;
    gap: 30px;
    width: 100%;
}

.address .branch-column {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 25px;
    border-top: 5px solid;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.address .branch-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #007bff, #0056b3);
}

.address .branch-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.address .branch-column h3 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.address .branch-column h3 i {
    margin-right: 12px;
    font-size: 18px;
    background: rgba(0,123,255,0.1);
    padding: 8px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.address .branch-column p {
    color: #34495e;
    line-height: 1.7;
    margin: 15px 0;
    font-size: 15px;
    display: flex;
    align-items: flex-start;
    font-weight: 500;
}

.address .branch-column p i {
    margin-right: 12px;
    margin-top: 4px;
    font-size: 16px;
    width: 20px;
    text-align: center;
    background: rgba(0,123,255,0.1);
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.address .branch-column a {
    color: #007bff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    border-bottom: 1px solid transparent;
}

.address .branch-column a:hover {
    color: #0056b3;
    border-bottom-color: #0056b3;
}

/* Contact Page Nigeria Column - Enhanced */
.address .nigeria-column {
    border-top-color: #28a745;
}

.address .nigeria-column h3 i {
    color: #28a745;
    background: rgba(40,167,69,0.1);
}

.address .nigeria-column p i {
    color: #28a745;
    background: rgba(40,167,69,0.1);
}

/* Contact Page India Column - Enhanced */
.address .india-column {
    border-top-color: #ffc107;
}

.address .india-column h3 i {
    color: #ffc107;
    background: rgba(255,193,7,0.1);
}

.address .india-column p i {
    color: #ffc107;
    background: rgba(255,193,7,0.1);
}

/* Contact Form - Improved Design */
.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #28a745, #ffc107);
}

.contact-form h3 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 700;
    text-align: center;
}

.contact-form p {
    color: #6c757d;
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
}

/* Contact Form Fields */
.wpcf7-form p {
    margin-bottom: 20px;
    text-align: left;
}

.wpcf7-form label {
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #007bff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.wpcf7-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Submit Button */
.wpcf7-form input[type="submit"] {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wpcf7-form input[type="submit"]:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,123,255,0.3);
}

/* Math Captcha */
.wpcf7-form p:has(.wpcf7-mathcaptcha) {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.wpcf7-form .wpcf7-mathcaptcha {
    width: 60px !important;
    text-align: center;
    font-weight: 600;
    color: #007bff;
}

/* Map Section */
.map {
    margin-top: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.map iframe {
    width: 100%;
    height: 300px;
    border: none;
}

/* Footer size optimization - Keep original size */
.site-footer {
    padding: 30px 0 25px;
}

.site-footer .container {
    max-width: 1200px;
}

.site-footer .row {
    margin: 0;
}

.site-footer .col-md-4 {
    padding: 0 15px;
}

/* Responsive Design for Two Columns */
@media (max-width: 768px) {
    .page-title {
        padding: 30px 0;
        margin-bottom: 30px;
    }
    
    .page-title h1 {
        font-size: 28px;
    }
    
    .breadcrumb {
        font-size: 12px;
        padding: 6px 15px;
    }
    
    .branch-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-form-section .branch-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .branch-column {
        padding: 20px;
    }
    
    .branch-column h3, .branch-column h4 {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .branch-column p {
        font-size: 12px;
        margin: 6px 0;
    }
    
    .address .branch-columns {
        gap: 20px;
    }
    
    .address .branch-column {
        padding: 20px;
    }
    
    .address .branch-column h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .address .branch-column p {
        font-size: 14px;
        margin: 12px 0;
    }
    
    .contact-form-section {
        padding: 40px 0;
    }
    
    .contact-form {
        padding: 25px;
        margin-top: 20px;
    }
    
    .contact-form h3 {
        font-size: 20px;
    }
    
    .map iframe {
        height: 250px;
    }
}
