/* --- CONTACT PAGE SPECIFIC STYLES --- */

:root {
    --dark-navy: #050528; 
    --gold-accent: #fbbd32;
    --navbar-height: 80px; /* Approximate height of the nav bar */
}

body {
    background-color: #ffffff;
}

/* Main content area for the contact page */
.contact-page-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Calculate height: full viewport height minus the combined height of top-bar and nav */
    min-height: calc(100vh - 100px); 
    position: relative;
    overflow: hidden;
    padding: 20px 5%;
    /* Add space between navbar and the form by using margin-top on the content wrapper */
    margin-top: 40px; 
}

/* New wrapper to keep all form elements together and centered */
.contact-card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px; /* Max width for the content area */
    z-index: 10;
}

/* Card containing contact info (now only for the heading and initial details) */
.contact-card {
    background-color: transparent; /* Changed to transparent, let the form handle the box */
    padding: 0;
    text-align: center;
    width: 100%;
    
    /* Animation initial state */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.contact-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-heading {
    color: var(--dark-navy);
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 25px;
    position: relative;
}

/* Underline for the heading */
.contact-heading::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--gold-accent);
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

.contact-details p {
    color: #333;
    font-size: 1.2rem;
    margin: 10px 0;
    font-weight: 500;
}

/* Background Logo */
.background-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    opacity: 0.08;
    pointer-events: none;
}

.background-logo img {
    max-width: 600px;
    height: auto;
    filter: grayscale(100%);
}

/* --- FORM STYLING (UPDATED) --- */

.contact-form-container {
    background-color: white; /* Give the form container a white background */
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); /* Add shadow to the whole form block */
    padding: 30px 40px;
    margin-top: 30px;
    width: 100%;
    max-width: 500px; /* Constrain the form width for aesthetic reasons */
    
    /* Animation initial state (fades up slightly delayed) */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s;
}

.contact-form-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.form-instruction {
    color: #333;
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form textarea {
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--gold-accent);
    box-shadow: 0 0 5px rgba(251, 189, 50, 0.5); 
}

.send-button {
    background-color: #e0e0e0;
    color: #333;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    margin-top: 10px;
}

.send-button:hover {
    background-color: var(--gold-accent);
    color: var(--dark-navy);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .contact-heading {
        font-size: 2rem;
    }
    .contact-details p {
        font-size: 1rem;
    }
    .background-logo img {
        max-width: 400px;
    }
    .contact-form-container {
        padding: 25px 30px;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .contact-heading {
        font-size: 1.8rem;
    }
    .background-logo img {
        max-width: 300px;
    }
}

/* --- 16. FOOTER SECTION --- */
.main-footer {
    background-color: rgb(176, 173, 173); /* Use a dark color for the footer */
    color: rgb(255, 255, 255);
    padding: 60px 5%;
    
    /* Animation initial state */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.main-footer.visible {
    opacity: 1;
    transform: translateY(0);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.footer-col {
    flex-basis: 30%; /* Allocate space for three columns */
    min-width: 250px;
}

/* Branding Column */
.footer-branding {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push copyright to the bottom */
}

.footer-logo-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.pantas-footer-logo, .area51-footer-logo {
    max-width: 150px;
    height: auto;
}

.copyright {
    font-size: 0.85rem;
    color: #000000;
    margin-top: 20px;
}

/* Links and Contact Columns */
.footer-col h3 {
    color: rgb(0, 0, 0);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-contact p,
.footer-contact address,
.footer-contact a {
    color: #292828;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.6;
    transition: color 0.3s;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--gold-accent);
}

.footer-contact address {
    font-style: normal;
    margin-bottom: 15px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .footer-container {
        justify-content: flex-start;
    }
    .footer-col {
        flex-basis: 45%; /* Two columns per row */
        margin-bottom: 30px;
    }
    .footer-branding {
        flex-basis: 100%; /* Branding goes full width at the top */
        align-items: center;
        text-align: center;
    }
    .footer-logo-group {
        flex-direction: row;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    .footer-col {
        min-width: 100%;
        text-align: center;
    }
    .footer-links ul {
        text-align: center;
    }
}

