/* Contact page specific styles */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
    margin: 0;
    padding: 0;
    height: 100vh;
}

/* Make the body a flex container to center content */
body {
    display: flex;
    flex-direction: column;
}

/* Ensure navbar doesn't interfere with centering */
.navbar {
    flex-shrink: 0;
    /* Prevent navbar from shrinking */
}

/* Main content should take remaining space and center its content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-content {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    max-width: 100%;
    overflow-x: hidden;
    /* Remove any default margins that might push content down */
    margin: 0;
}

.contact-content h1 {
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #333;
    max-width: 100%;
    word-wrap: break-word;
}

.contact-content p {
    font-size: 18px;
    max-width: 500px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
    word-wrap: break-word;
}

/* Contact Button */
.contact-btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    background: linear-gradient(135deg, #333, #555);
    color: white;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%;
}

.contact-btn:hover {
    background: linear-gradient(135deg, #555, #777);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.contact-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Modal styles to prevent overflow */
.modal {
    max-width: 100%;
    box-sizing: border-box;
}

.modal-content {
    max-width: 90%;
    margin: 5% auto;
    box-sizing: border-box;
    word-wrap: break-word;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-content {
        padding: 15px 10px;
    }

    .contact-content h1 {
        font-size: 32px;
    }

    .contact-content p {
        font-size: 16px;
        padding: 0 10px;
        max-width: 100%;
    }

    .contact-btn {
        padding: 12px 28px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .contact-content {
        padding: 10px 5px;
    }

    .contact-content h1 {
        font-size: 28px;
    }

    .contact-content p {
        font-size: 15px;
        max-width: 100%;
    }
}