/* ==========================================================================
   Contact Page Styles
   ========================================================================== */

/* Active nav link */
.nav-link.active {
    color: var(--primary);
}

.nav-link.active:after {
    width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.contact-hero {
    position: relative;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 75px;
    overflow: hidden;
}

.contact-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/contact-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.contact-hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(26, 36, 61, 0.85) 0%, rgba(28, 34, 55, 0.65) 50%, rgba(28, 34, 55, 0.4) 100%);
}

.contact-hero .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 5;
}

.contact-hero .hero-content {
    position: relative;
    max-width: 550px;
    z-index: 10;
    color: var(--white);
    padding: var(--spacing-l);
    margin-left: var(--spacing-m);
    border-radius: var(--radius-md);
    background-color: rgba(26, 36, 61, 0.75);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-hero .hero-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-m);
    color: var(--white);
    font-family: var(--heading-font);
}

.contact-hero .text-highlight {
    color: var(--secondary);
    position: relative;
}

.contact-hero .hero-text {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-m);
    color: var(--gray-200);
}

.contact-hero .hero-cta {
    display: flex;
    justify-content: flex-start;
}

.contact-hero .hero-cta .btn {
    padding: 0.7rem 1.5rem;
    font-weight: 600;
}

/* ==========================================================================
   Talent Solution Section
   ========================================================================== */
.contact-talent-solution {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-talent-solution::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 300px;
    height: 500px;
    background: radial-gradient(circle, rgba(217, 71, 1, 0.03) 0%, rgba(217, 71, 1, 0) 70%);
    z-index: 1;
}

.talent-solution-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
    position: relative;
    z-index: 2;
}

.talent-solution-text {
    flex: 1;
}

.talent-solution-text .section-title {
    font-size: 2.25rem;
    margin-bottom: var(--spacing-m);
    color: var(--text-primary);
    font-family: var(--heading-font);
    line-height: 1.3;
}

.talent-solution-description {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-l);
    color: var(--gray-600);
}

.talent-solution-cta {
    display: flex;
    justify-content: flex-start;
}

.talent-solution-image {
    flex: 1;
    position: relative;
    z-index: 3;
}

.talent-solution-image .image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.talent-solution-image .image-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.talent-solution-image .image-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background-color: rgba(217, 71, 1, 0.1);
    border-radius: 50px 0 0 0;
    z-index: 1;
}

.talent-solution-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.talent-solution-image:hover img {
    transform: scale(1.02);
}

/* ==========================================================================
   Data Privacy Section
   ========================================================================== */
.contact-data-privacy {
    padding: var(--spacing-xl) 0;
    background-color: var(--gray-100);
    position: relative;
}

.data-privacy-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.data-privacy-content .section-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-m);
    color: var(--text-primary);
    font-family: var(--heading-font);
}

.data-privacy-description {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-l);
    color: var(--gray-600);
}

.data-privacy-cta {
    display: flex;
    justify-content: center;
}

.data-privacy-cta .btn {
    min-width: 180px;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (min-width: 768px) {
    .contact-hero .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 992px) {
    .contact-hero {
        min-height: 450px;
    }
    
    .contact-hero .hero-content {
        padding: var(--spacing-l);
    }
}

@media (max-width: 992px) {
    .talent-solution-content {
        flex-direction: column;
        gap: var(--spacing-l);
    }
    
    .talent-solution-text, 
    .talent-solution-image {
        flex: none;
        width: 100%;
    }
    
    .talent-solution-text .section-title {
        font-size: 2rem;
    }
    
    .talent-solution-image .image-wrapper {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .talent-solution-image .image-accent {
        top: -15px;
        left: -15px;
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        min-height: 350px;
    }
    
    .contact-hero .container {
        justify-content: center;
    }
    
    .contact-hero .hero-content {
        padding: var(--spacing-m);
        margin-left: 0;
        max-width: 100%;
    }
    
    .contact-hero .hero-title {
        font-size: 2rem;
    }
    
    .contact-hero .hero-text {
        font-size: 1rem;
    }
    
    .contact-hero .hero-cta {
        justify-content: center;
    }
    
    .contact-hero .hero-cta .btn {
        width: 100%;
    }
    
    .talent-solution-text .section-title {
        font-size: 1.75rem;
        text-align: center;
    }
    
    .talent-solution-description {
        text-align: center;
    }
    
    .talent-solution-cta {
        justify-content: center;
    }
    
    .talent-solution-cta .btn {
        width: 100%;
    }
    
    .talent-solution-image .image-accent {
        width: 50px;
        height: 50px;
        top: -10px;
        left: -10px;
    }
    
    .data-privacy-content .section-title {
        font-size: 1.75rem;
    }
    
    .data-privacy-description {
        font-size: 1rem;
    }
    
    .data-privacy-cta .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .contact-hero .hero-cta .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .talent-solution-text .section-title,
    .data-privacy-content .section-title {
        font-size: 1.5rem;
    }
    
    .talent-solution-description,
    .data-privacy-description {
        font-size: 0.9rem;
    }
    
    .talent-solution-image .image-wrapper {
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    }
    
    .talent-solution-image .image-accent {
        display: none;
    }
}

/* ==========================================================================
   Form Modal Styles
   ========================================================================== */
.form-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(25, 31, 40, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.form-modal.active {
    display: flex;
}

.form-modal-content {
    position: relative;
    width: 90%;
    max-width: 650px;
    background-color: var(--dark-blue);
    border-radius: var(--radius-md);
    padding: var(--spacing-l) var(--spacing-xl);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    color: var(--white);
}

/* Add scrolling for both form modals */
#formModal .form-modal-content,
#contactFormModal .form-modal-content {
    max-height: 80vh;
    overflow-y: auto;
    padding-right: calc(var(--spacing-xl) - 5px); /* Adjust for scrollbar */
}

#formModal .form-modal-content::-webkit-scrollbar,
#contactFormModal .form-modal-content::-webkit-scrollbar {
    width: 8px;
}

#formModal .form-modal-content::-webkit-scrollbar-track,
#contactFormModal .form-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

#formModal .form-modal-content::-webkit-scrollbar-thumb,
#contactFormModal .form-modal-content::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

#formModal .form-modal-content::-webkit-scrollbar-thumb:hover,
#contactFormModal .form-modal-content::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.form-modal-content h2 {
    margin-bottom: var(--spacing-l);
    color: var(--white);
    text-align: center;
    font-size: 2.5rem;
}

.form-modal-close {
    position: absolute;
    top: -40px;
    right: -10px;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1010;
}

.form-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Make close button fixed for both modals to ensure it's visible when scrolling */
#formModal .form-modal-close,
#contactFormModal .form-modal-close {
    position: fixed;
    top: calc(10vh - 40px); /* Adjust based on modal position */
    right: calc(5% - 10px); /* Adjust based on modal width */
}

@media (min-width: 768px) {
    #formModal .form-modal-close,
    #contactFormModal .form-modal-close {
        right: calc((100% - 650px) / 2 - 10px); /* Center relative to modal width */
    }
}

/* Position the close button for mobile */
@media (max-width: 768px) {
    .form-modal-content {
        width: 95%;
        padding: var(--spacing-l) var(--spacing-m);
    }
    
    #formModal .form-modal-content,
    #contactFormModal .form-modal-content {
        padding-right: calc(var(--spacing-m) - 5px); /* Adjust for scrollbar on mobile */
    }
    
    .form-modal-content h2 {
        font-size: 2rem;
    }
    
    .form-modal-close {
        position: fixed;
        top: 10px;
        right: 10px;
        background-color: rgba(25, 31, 40, 0.8); /* Darker background for better visibility */
        z-index: 1020; /* Higher z-index to appear above content */
    }
}

.hubspot-form-container {
    width: 100%;
}

/* Customizing HubSpot form styles to match the website */
.form-modal .hs-form-field {
    margin-bottom: var(--spacing-m);
}

.form-modal .hs-form-field label {
    color: var(--white);
    margin-bottom: var(--spacing-xs);
    display: block;
    font-weight: 500;
}

.form-modal .hs-input {
    width: 100%;
    padding: var(--spacing-s) var(--spacing-m);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-600);
    background-color: var(--dark-blue);
    color: var(--white);
}

.form-modal .hs-button {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: var(--spacing-s) var(--spacing-l);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
}

.form-modal .hs-button:hover {
    background-color: var(--primary-dark);
}

.form-modal .hs-error-msg {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-top: var(--spacing-xxs);
}

/* Responsive adjustments for form modal */
@media (max-width: 768px) {
    .form-modal-content {
        width: 95%;
        padding: var(--spacing-l) var(--spacing-m);
    }
    
    .form-modal-content h2 {
        font-size: 2rem;
    }
    
    .form-modal-close {
        top: -40px;
        right: 0;
    }
}

@media (max-width: 576px) {
    .form-modal-content h2 {
        font-size: 1.75rem;
    }
}

/* Add scrolling for the contact form modal on mobile */
@media (max-width: 768px) {
    #contactFormModal .form-modal-content {
        max-height: 80vh;
        overflow-y: auto;
        padding-right: calc(var(--spacing-m) - 5px); /* Adjust for scrollbar */
    }
    
    #contactFormModal .form-modal-content::-webkit-scrollbar {
        width: 8px;
    }
    
    #contactFormModal .form-modal-content::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
    }
    
    #contactFormModal .form-modal-content::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 4px;
    }
    
    #contactFormModal .form-modal-content::-webkit-scrollbar-thumb:hover {
        background-color: rgba(255, 255, 255, 0.3);
    }
}

/* Position the close button for the contact form modal on mobile */
@media (max-width: 768px) {
    #contactFormModal .form-modal-close {
        position: fixed;
        top: 10px;
        right: 10px;
        background-color: rgba(25, 31, 40, 0.8); /* Darker background for better visibility */
        z-index: 1020; /* Higher z-index to appear above content */
    }
} 