.contactpage-section {
    padding: 0px 0 50px 0;
    position: relative;
    z-index: 2;
    min-height: 100vh;
    width: 100%;
    margin-top: -60px;
}

/* Main header - moved up closer to navbar */
.contactpage-header h1 {
    text-align: center;
    font-size: 2.8rem;
    padding: 15px 30px;
    margin: 45px auto 25px;
    background-color: #0a0a0a;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    width: fit-content;
    color: white;
    position: relative;
    z-index: 4;
}

/* Main container */
.contactpage-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    z-index: 4;
}

/* Form section */
.contactpage-form-section {
    flex: 1;
    background-color: #0a0a0a;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    max-height: 680px;
    overflow: auto;
    z-index: 4;
}

.contactpage-form-section h2 {
    margin-top: -5px;
    font-size: 1.8em;
    color: #ffffff;
    margin-bottom: 15px;
}

.contactpageform-group {
    margin-bottom: 15px;
    padding: 0;
    width: 100%;
}

.contactpageform-group label {
    display: block;
    margin-bottom: 5px;
    color: #ffffff;
    font-size: 1em;
    padding-left: 0;
}

.contactpageform-group input,
.contactpageform-group textarea {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 1em;
}

.contactpageform-group textarea {
    height: 200px;
    resize: vertical;
}

.submit-btn {
    padding: 10px 20px;
    background: linear-gradient(45deg, #9e33e6, #505ed7);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    margin: 0 auto;
    width: auto;
    min-width: 150px;
}

.submit-btn:hover {
    box-shadow: 0 5px 15px rgba(160, 74, 226, 0.3);
    transform: translateY(-3px);
}

/* Info section */
.contactpage-info-section {
    flex: 1;
    background-color: #0a0a0a;
    padding: 25px;
    border-radius: 15px;
    max-height: 680px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 4;
}

.contactpage-info-section h2 {
    margin-top: -5px;
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 15px;
}

/* Divider */
.contactpage-divider {
    height: 2px;
    background: rgba(255, 255, 255, 0.452);
    width: 100%;
    margin-top: -10px;
    margin-bottom: 10px;
    border: none;
    display: block;
}

.contact-message-divider {
    width: 44%;
    height: 2px;
    background: white;
    margin-top: -10px;
    margin-bottom: 20px;
    border: none;
    display: block;
}

/* Contact methods */
.contactpage-method {
    background-color: rgb(24, 24, 24); 
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px; 
    padding: 15px 20px;
    margin-bottom: 20px;
}

.contactpage-method h3 {
    color: #ffffff;
    font-size: 1.2em;
    margin: 0 0 12px 0;
}

.contactpage-method p {
    color: #ffffff;
    font-size: 1rem;
    margin: 5px 0;
}

/* Social links */
.social-links {
    width: 100%;
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

.social-link {
    padding: 8px 15px;
    background: linear-gradient(45deg, #9e33e6, #505ed7);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    min-width: 100px;
    text-align: center;
    font-size: 1rem;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(160, 74, 226, 0.3);
}

.contactpage-separator {
    height: 4px;
    background: linear-gradient(to top, rgb(159, 159, 159) 0%, rgba(255, 255, 255, 0) 100%);
    width: 100%;
}

/* Popup modal */
.popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.5s forwards;
    transition: opacity 0.5s ease-in-out;
}

.popup-modal.fade-out {
    animation: fadeOut 0.5s forwards;
}

.popup-content {
    background-color: rgb(53, 103, 50);
    padding: 20px;
    border-radius: 15px;
    width: 60%;
    max-width: 450px;
    text-align: center;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

/* Video container */
.contact-video-container {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin: 30px auto 10px;
}

.contact-video-container video {
    margin: 10px auto;
    width: 80%;
    height: auto;
    display: block;
    border-radius: 10px;
    filter: brightness(1.3) contrast(1.1);
    object-fit: cover;
}

/* Animation keyframes */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Footer */
.base-footer {
    background-color: #0a0a0a !important;
    color: white;
    padding: 10px 0;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 5;
}

/* Large desktop screens */
@media (min-width: 1440px) {
    .contactpage-container {
        max-width: 1000px;
    }
}

@media screen and (min-width: 1920px) and (max-width: 1921px) {
    .contactpage-section {
        padding: 0px;
        position: relative;
        z-index: 2;
        min-height: 100vh;
        width: 100%;
        margin-top: -60px;
    }

    .contactpage-header h1 {
        font-size: 3.5rem;
    }

    .contactpage-container {
        max-width: 1500px;
        margin-left: 0px auto;
        margin-bottom: 50px;
        display: flex;
        justify-content: space-between;
        gap: 30px;
        position: relative;
        z-index: 4;
    }

    .contactpage-form-section {
        max-height: 1000px;
        width: 800px;
        font-size: 2rem;
    }

    .contactpageform-group label {
        display: block;
        margin-bottom: 15px;
        color: #ffffff;
        font-size: 1.1em;
        padding-left: 0;
    }

    .contactpage-info-section {
        max-height: 1000px;
        width: 800px;
        font-size: 2rem;
    }

    .contactpage-info-section h2 {
        font-size: 3rem;
        color: #ffffff;
        margin-bottom: 15px;
    }

    .contactpage-method h3 {
        color: #ffffff;
        font-size: 2rem;
        margin: 0 0 12px 0;
    }  
    
    .contactpage-method p {
        color: #ffffff;
        font-size: 0.8em;
        margin-bottom: 15px !important;
        margin: 5px 0;
    }

    .social-links {
        margin-top: 25px;
        display: block;
    }

    .social-link {
        margin-right: 25px;
    }
}

/* Medium screens */
@media (max-width: 992px) and (min-width: 769px) {
    .contactpage-container {
        max-width: 90%;
    }
    
    .contactpage-form-section,
    .contactpage-info-section {
        max-height: 100%;
        padding: 20px;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Page content */
    .contactpage-section {
        min-height: 100vh;
        padding: 20px 15px 40px;
        width: 100%;
        box-sizing: border-box;
        margin: -25px auto;
    }

    .contactpage-header h1 {
        font-size: 2.2em;
        padding: 15px 25px;
        margin: 15px auto 25px;
        width: auto;
        max-width: 90%;
    }
    
    .contactpage-container {
        flex-direction: column;
        gap: 25px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .contactpage-form-section, 
    .contactpage-info-section {
        width: 100%;
        max-height: 100%;
        padding: 20px;
        box-sizing: border-box;
    }
    
    .contactpage-form-section h2,
    .contactpage-info-section h2 {
        font-size: 1.6em;
        margin-bottom: 15px;
    }
    
    .contactpageform-group textarea {
        height: 150px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 12px 0;
    }
    
    .social-links {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
    }
    
    .social-link {
        text-align: center;
        padding: 10px 15px;
        flex: 1;
        min-width: 100px;
    }
    
    .popup-content {
        width: 85%;
        padding: 15px;
    }
    
    .contactpage-divider {
        width: 100%;
        margin: -5px 0 15px 0;
    }

    .contact-message-divider {
        width: 60%;
        margin: -5px auto 15px;
    }

    .contact-video-container {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        background: black;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .contactpage-section {
        padding: 20px 15px 50px 15px;
    }
    
    .contactpage-header h1 {
        font-size: 2em;
        padding: 12px 20px;
        margin: 10px auto 20px;
    }
    
    .contactpage-form-section, 
    .contactpage-info-section {
        max-height: 100%;
        padding: 15px;
    }
    
    .contactpageform-group label {
        font-size: 0.95em;
    }
    
    .submit-btn {
        font-size: 0.95em;
    }
    
    .popup-content {
        width: 90%;
        padding: 12px;
    }
    
    .social-link {
        width: 100%;
    }
}