/* Contact Page Styles */

/* Contact Hero Section */
.contact-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 800px;
    display: flex;
    align-items: center;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light);
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(17, 17, 17, 0.85) 0%, rgba(17, 17, 17, 0.95) 100%);
    z-index: 1;
}

.contact-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 107, 0, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 2;
}

.contact-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
}

.contact-hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    padding-top: 20px;
    margin-bottom: 10px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: fadeInDown 1s ease-out;
}

.contact-hero-content p {
    font-size: 1.3rem;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: both;
}

/* Contact Cards */
.contact-cards {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.contact-card {
    background: rgba(34, 34, 34, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    width: 300px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 107, 0, 0.3);
}

.contact-card-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
}

.contact-card-icon i {
    font-size: 28px;
    color: white;
}

.contact-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: white;
}

.contact-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.contact-link {
    display: block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    margin: 8px 0;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #ff9100;
    transform: translateX(5px);
}

/* Contact Main Section */
.contact-main {
    background-color: var(--dark);
    padding: 100px 0;
    position: relative;
}

.contact-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 107, 0, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.contact-main-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: space-between;
}

.contact-form-section {
    flex: 1;
    min-width: 300px;
    background-color: rgba(34, 34, 34, 0.8);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info-section {
    flex: 1;
    min-width: 300px;
}

/* Section Headings */
.section-heading {
    text-align: center;
    margin-bottom: 40px;
}

.section-subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.2rem;
    color: var(--light);
    margin-bottom: 15px;
    position: relative;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 3px;
}

/* Form Styles */
.contact-form {
    margin-top: 30px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--light);
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.required {
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    color: var(--light);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

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

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    min-width: 200px;
}

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

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

/* Office Locations */
.office-location {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.office-card {
    background-color: rgba(34, 34, 34, 0.8);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.office-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 107, 0, 0.3);
}

.office-card-header {
    padding: 20px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    gap: 15px;
}

.country-flag {
    width: 30px;
    height: 20px;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.country-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.office-card-header h3 {
    color: white;
    font-size: 1.2rem;
    margin: 0;
}

.office-card-body {
    padding: 25px;
}

.office-info {
    display: flex;
    margin-bottom: 15px;
}

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

.office-info i {
    color: var(--primary);
    margin-right: 15px;
    font-size: 16px;
    margin-top: 3px;
}

.office-info p {
    color: #ddd;
    font-size: 14px;
    line-height: 1.6;
}

/* Social Connect */
.social-connect {
    margin-top: 40px;
    text-align: center;
}

.social-connect h3 {
    color: var(--light);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 18px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
}

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

.map-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 30px 0;
}

.map-tab {
    padding: 15px 30px;
    background-color: rgba(34, 34, 34, 0.8);
    border: none;
    border-radius: 30px;
    color: var(--light);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
}

.map-tab.active {
    background: var(--gradient-primary);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

.map-tab:hover:not(.active) {
    background-color: rgba(255, 107, 0, 0.2);
}

.map-container {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.map-container iframe.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 500px;
    background-color: var(--dark);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 107, 0, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--primary);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
}

.success-icon i {
    font-size: 40px;
    color: white;
}

.modal h3 {
    color: var(--light);
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.modal p {
    color: #aaa;
    margin-bottom: 25px;
    font-size: 15px;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .contact-hero {
        height: auto;
        padding: 150px 0 80px;
    }
    
    .contact-hero-content h1 {
        font-size: 3rem;
    }
    
    .contact-main-wrapper {
        flex-direction: column;
    }
}

@media screen and (max-width: 768px) {
    .contact-hero-content h1 {
        font-size: 2rem;
        margin-top: 20px;
    }
    
    .contact-hero-content p {
        font-size: 1rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .contact-card {
        height: 260px;
        width: 90%;
        max-width: 250px;
        margin:0 auto;
    }
    .contact-card-icon {
        width: 50px;
        height: 50px;
    }
    .contact-card-icon i {
        font-size: 24px;
    }
    .contact-card h3 {
        font-size: 1.2rem;
    }
    .contact-card p {
        font-size: 0.8rem;
    }
    .contact-link {
        font-size: 0.9rem;
    }
    .map-selector {
        padding: 20px;
        gap: 10px;
    }
    
    .map-tab {
        padding: 10px 15px;
        font-size: 13px;
    }
}