/* Contact Page Styles */
.contact-page {
    overflow-x: hidden;
}

/* Hero Section */
.contact-hero {
    padding: 120px 0 60px !important;
    background: linear-gradient(135deg, #f6f9fc 0%, #f1f5f9 100%);
    text-align: center;
    position: relative;
    z-index: 1;
}

.contact-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 20px;
}

.contact-hero p {
    font-size: 1.2rem;
    color: #5d6d7e;
    max-width: 700px;
    margin: 0 auto 30px;
}

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

.contact-form-container {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: -40px;
}

.contact-form-container .row {
    margin: 0;
}

/* Contact Info Section */
.contact-info-section {
    padding: 40px 30px;
    height: 100%;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: #fff;
}

.contact-info-section h2 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 28px;
    position: relative;
    padding-bottom: 15px;
}

.contact-info-section h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: #e74c3c;
    border-radius: 2px;
}

.contact-info-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.7;
}

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

.contact-info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 15px;
    color: white;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.15) !important;
}

.contact-info-content h4 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-info-content a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info-content a:hover {
    color: #e74c3c;
    text-decoration: none;
}

/* Form Styling */
#contact {
    padding: 40px 30px;
}

#contact h2 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 28px;
    position: relative;
    padding-bottom: 15px;
}

#contact h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: #e74c3c;
    border-radius: 2px;
}

#contact .form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    height: auto;
    margin-bottom: 15px;
}

#contact .form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

#contact .input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-right: none;
    border-radius: 8px 0 0 8px !important;
    color: #7f8c8d;
}

#contact .form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

#contact .btn-primary {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border: none;
    padding: 14px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

#contact .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .contact-hero {
        padding: 100px 0 40px !important;
    }
    
    .contact-form-container {
        margin-top: 0;
    }
    
    .contact-info-section, #contact {
        padding: 30px 25px;
    }
    
    .contact-form-container .row > div:first-child {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .contact-form-container .row > div:last-child {
        border-top: none;
    }
}

@media (max-width: 767.98px) {
    .contact-hero h1 {
        font-size: 2.2rem;
    }
    
    .contact-hero p {
        font-size: 1rem;
    }
    
    .contact-info-item {
        margin-bottom: 20px;
    }
    
    .contact-info-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

.contact-info-content p, 
.contact-info-content a {
    margin-bottom: 0;
    color: #7f8c8d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-content a:hover {
    color: #3498db;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .contact-hero {
        padding: 120px 0 80px !important;
    }
    
    .contact-form-container .col-lg-6 {
        padding: 20px;
    }
    
    .contact-info-section {
        margin-bottom: 30px;
    }
}

@media (max-width: 767.98px) {
    .contact-hero {
        padding: 100px 0 60px !important;
    }
    
    .contact-hero h1 {
        font-size: 2.2rem !important;
    }
    
    .contact-cards {
        margin-top: 0;
        padding-top: 30px;
    }
    
    .contact-card {
        margin-bottom: 20px;
    }
    
    .contact-form-section {
        padding: 40px 0;
    }
}
.contact-hero {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 150px 0 100px;
    position: relative;
    overflow: hidden;
    text-align: center;
    margin-top: -80px;
    padding-top: 200px;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgcGF0dGVyblRyYW5zZm9ybT0icm90YXRlKDQ1KSI+PHJlY3Qgd2lkdGg9IjUwJSIgaGVpZ2h0PSI1MCUiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wMikiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjcGF0dGVybikiLz48L3N2Zz4=');
    opacity: 0.1;
}

.contact-hero .hero-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: inline-block;
    text-transform: uppercase;
}

.contact-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

/* Contact Cards */
.contact-cards {
    margin-top: 50px;
    position: relative;
    z-index: 10;
}

.contact-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c, #3498db);
    transition: width 0.4s ease;
    z-index: 0;
}

.contact-card:hover::after {
    width: 100%;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.contact-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 25px;
    color: white;
    background: linear-gradient(135deg, #e74c3c 0%, #3498db 100%);
    box-shadow: 0 10px 20px rgba(231, 76, 60, 0.3);
}

.contact-card h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.contact-card p {
    color: #7f8c8d;
    margin-bottom: 15px;
}

.contact-card a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: #c0392b;
}

/* Contact Form Section */
.contact-form-section {
    padding: 100px 0;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, #fff, rgba(248, 249, 250, 0));
    z-index: 0;
}

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

.contact-form-container {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #e74c3c, #3498db);
}

.form-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 15px;
}

.form-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c, #3498db);
    border-radius: 2px;
}

.form-control {
    height: 55px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 0 20px;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

textarea.form-control {
    height: 150px;
    padding: 15px 20px;
    resize: none;
}

.btn-submit {
    background: linear-gradient(135deg, #e74c3c 0%, #3498db 100%);
    border: none;
    color: white;
    padding: 16px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    width: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #3498db 0%, #e74c3c 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    opacity: 0;
}

.btn-submit:hover::before {
    width: 100%;
    opacity: 1;
}

.btn-submit:active {
    transform: translateY(2px);
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.2);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(231, 76, 60, 0.4);
    color: white;
}

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

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

.map-container {
    height: 500px;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

/* Form Validation Styles */
.was-validated .form-control:invalid, 
.form-control.is-invalid {
    border-color: #e74c3c;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23e74c3c'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23e74c3c' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: #2ecc71;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%232ecc71' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #e74c3c;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-control:invalid ~ .invalid-tooltip,
.form-control.is-invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-tooltip {
    display: block;
}

.was-validated .form-control:invalid ~ .invalid-tooltip,
.form-control.is-invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-tooltip {
    display: block;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .contact-hero {
        padding: 120px 0 80px;
    }
    
    .contact-form-container {
        padding: 30px;
    }
    
    .map-container {
        height: 400px;
    }
}

@media (max-width: 767.98px) {
    .contact-hero {
        padding: 100px 0 60px;
    }
    
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-card {
        margin-bottom: 30px;
    }
    
    .map-container {
        height: 350px;
    }
}

@media (max-width: 767.98px) {
    .contact-hero {
        padding: 80px 0 60px;
    }
    
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-form-container {
        padding: 25px 20px;
    }
    
    .form-title {
        font-size: 1.75rem;
    }
}
