/* Contact Page Styles */

/* Hero Section */
.contact-hero {
    padding: 200px 0 120px 0;
    background: linear-gradient(rgba(10, 22, 40, 0.85), rgba(10, 22, 40, 0.9)), url('../images/contact.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.contact-hero::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 1200 120"><path fill="%2300d4ff" fill-opacity="0.05" d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25"/></svg>') repeat-x;
    background-size: 1200px 120px;
    opacity: 0.3;
}

.contact-hero .subtitle {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

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

.contact-hero .lead {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Region Badge - Now in Content Section with Dark Gradient */
.region-badge-content {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #1a2845 0%, #0f1c35 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    padding: 16px 35px;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 20px rgba(10, 22, 40, 0.3),
        0 1px 4px rgba(0, 212, 255, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.region-badge-content:hover {
    background: linear-gradient(135deg, #1e2f4d 0%, #12213d 100%);
    border-color: rgba(0, 212, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 
        0 6px 30px rgba(10, 22, 40, 0.4),
        0 2px 8px rgba(0, 212, 255, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.region-flag {
    font-size: 2rem;
    line-height: 1;
}

.region-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00d4ff;
    letter-spacing: 1px;
}

/* Region Selector Buttons */
.region-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.region-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.region-btn .flag {
    font-size: 1.3rem;
}

.region-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.2);
}

.region-btn.active {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    color: #00d4ff;
}

/* Contact Section - Soft Gradient Background */
.contact-section {
    padding: 80px 0 100px 0;
    background: linear-gradient(180deg, #e8eef5 0%, #f0f4f9 30%, #f8fafc 50%, #f0f4f9 70%, #e8eef5 100%);
    position: relative;
    overflow: hidden;
}

/* Add subtle animated background elements */
.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: float 20s ease-in-out infinite;
}

.contact-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(100, 150, 255, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(50px, 50px);
    }
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #00d4ff 50%, transparent 100%);
}

/* Contact Form Wrapper - Dark Blue Gradient */
.contact-form-wrapper {
    background: linear-gradient(180deg, #1a2845 0%, #0f1c35 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(100, 150, 255, 0.2);
    border-radius: 20px;
    padding: 45px;
    transition: all 0.4s ease;
    box-shadow: 
        0 8px 32px rgba(10, 22, 40, 0.3),
        0 2px 8px rgba(0, 212, 255, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #00d4ff 50%, transparent 100%);
    opacity: 0.8;
}

/* Subtle glow effect inside card */
.contact-form-wrapper::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.contact-form-wrapper:hover {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 
        0 12px 48px rgba(10, 22, 40, 0.4),
        0 4px 16px rgba(0, 212, 255, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.contact-form-wrapper h3 {
    font-size: 1.9rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.7rem;
    opacity: 0.9;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 
        0 0 0 4px rgba(0, 212, 255, 0.1),
        0 2px 8px rgba(0, 212, 255, 0.2);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%2300d4ff" d="M6 9L1 4h10z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 45px;
}

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

/* Submit Button */
.btn-main {
    display: inline-block;
    padding: 16px 45px;
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #0a1628;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-main:hover::before {
    left: 100%;
}

.btn-main:hover {
    background: linear-gradient(135deg, #00b8e6 0%, #0088bb 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.btn-main span {
    position: relative;
    z-index: 2;
}

/* Contact Info Wrapper - Dark Blue Gradient */
.contact-info-wrapper {
    background: linear-gradient(180deg, #1a2845 0%, #0f1c35 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 45px 35px;
    box-shadow: 
        0 8px 32px rgba(10, 22, 40, 0.3),
        0 2px 8px rgba(0, 212, 255, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(100, 150, 255, 0.2);
    z-index: 1;
}

.contact-info-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #00d4ff 50%, transparent 100%);
    opacity: 0.8;
}

/* Subtle glow effect inside card */
.contact-info-wrapper::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.contact-info-wrapper:hover {
    box-shadow: 
        0 12px 48px rgba(10, 22, 40, 0.4),
        0 4px 16px rgba(0, 212, 255, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.4);
}

.contact-info-wrapper h3 {
    font-size: 1.9rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

/* Contact Info Items */
.contact-info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    border-left: 4px solid rgba(0, 212, 255, 0.5);
    transition: all 0.3s ease;
    position: relative;
}

.contact-info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.03) 0%, transparent 100%);
    border-radius: 14px;
    pointer-events: none;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: #00d4ff;
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.2);
}

.contact-icon {
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    background: rgba(0, 212, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00d4ff;
    transition: all 0.3s ease;
}

.contact-info-item:hover .contact-icon {
    background: rgba(0, 212, 255, 0.3);
    transform: scale(1.1);
}

.contact-details h5 {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.contact-details p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* Emergency Contact */
.emergency-contact {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.1) 0%, rgba(255, 59, 59, 0.05) 100%);
    border: 2px solid rgba(255, 59, 59, 0.3);
    border-radius: 12px;
    text-align: center;
}

.emergency-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 59, 59, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff3b3b;
    margin: 0 auto 20px;
}

.emergency-contact h5 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.emergency-contact p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.emergency-phone {
    display: inline-block;
    padding: 12px 30px;
    background: #ff3b3b;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.emergency-phone:hover {
    background: #e63333;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 59, 59, 0.4);
}

/* Map Section */
.map-section {
    position: relative;
    background: #0a1628;
}

.map-section iframe {
    width: 100%;
    height: 450px;
    border: none;
    filter: grayscale(100%) invert(92%) contrast(90%);
}

/* Responsive */
@media (max-width: 991px) {
    .contact-hero {
        padding: 150px 0 80px 0;
    }
    
    .contact-hero h1 {
        font-size: 2.5rem;
    }

    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 35px 30px;
    }

    .contact-info-wrapper {
        margin-top: 40px;
    }
    
    .region-selector {
        gap: 10px;
    }
    
    .region-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 120px 0 60px 0;
    }

    .contact-hero h1 {
        font-size: 2rem;
    }

    .contact-hero .lead {
        font-size: 1rem;
    }

    .contact-section {
        padding: 60px 0;
    }

    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 30px 25px;
    }

    .contact-info-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin: 0 auto 15px;
    }
    
    .region-badge {
        padding: 10px 20px;
    }
    
    .region-flag {
        font-size: 1.5rem;
    }
    
    .region-name {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .contact-hero h1 {
        font-size: 1.75rem;
    }

    .btn-main {
        width: 100%;
        text-align: center;
    }

    .emergency-phone {
        display: block;
        width: 100%;
    }
    
    .region-selector {
        flex-direction: column;
        align-items: stretch;
    }
    
    .region-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animation for WOW.js */
.wow {
    visibility: hidden;
}

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

.fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading Animation for Region Switching */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-in;
}