/* DEDICATED STYLES FOR CONTACT.PHP */

body {
    background-color: var(--background-dark);
    margin: 0;
    padding: 0;
}

.content-frame {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 30px 40px;
    box-sizing: border-box;
    border: 15px solid;
    border-image-slice: 1;
    border-image-source: var(--theme-gradient);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5), inset 0 0 25px rgba(0,0,0,0.7);
}

/* --- Header & Footer (Consistent with other pages) --- */
.top-row {
    width: 100%;
    flex-shrink: 0;
}

.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.header-spacer { flex: 1 1 0px; }
.main-nav { justify-self: center; display: flex; gap: 40px; }
.main-nav a {
    color: var(--text-secondary); 
    font-weight: 600; 
    text-decoration: none;
    transition: color 0.3s ease;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--text-primary); }
.main-nav a.active { 
    color: var(--text-primary); 
    border-image-slice: 1;
    border-image-source: var(--theme-gradient);
}
.social-links { justify-self: end; display: flex; align-items: center; gap: 25px; }
.social-links a i { font-size: 22px; color: var(--text-secondary); transition: all 0.3s ease; }
.social-links a:hover i { color: var(--text-primary); transform: scale(1.1); }

.menu-toggle, .hamburger-menu {
    display: none;
}

.bottom-row { 
    width: 100%;
    text-align: center; 
    padding-top: 40px; 
    color: var(--text-secondary); 
    font-size: 0.9rem; 
    flex-shrink: 0;
}

/* --- Main Content Area Styling --- */
.page-container {
    flex-grow: 1;
    width: 100%;
    max-width: 800px; 
    margin: 40px auto;
    text-align: center;
}
.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
}
.page-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 15px auto 40px auto;
}
.gradient-text {
    background: var(--theme-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* --- Contact Form Styling --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}
.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 20px;
    background-color: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(230, 237, 243, 0.2);
}
.contact-form textarea {
    resize: vertical; /* Allow vertical resizing, disable horizontal */
}

.contact-button {
    width: 100%;
    padding: 16px;
    border-radius: 8px;
    border: none;
    background: var(--theme-gradient);
    color: var(--theme-button-text-color);
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-family);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
}
.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* --- Feedback Message Styles --- */
.error-messages {
    background-color: #5c2a2a; color: #ffc4c4; border: 1px solid #e06d6d;
    border-radius: 8px; padding: 15px; margin-bottom: 20px; text-align: left;
}
.error-messages p { margin: 0; font-size: 0.9rem; }

.success-message {
    background-color: #2a5c3d; color: #c4ffe1; border: 1px solid #6de09d;
    border-radius: 8px; padding: 15px; margin-bottom: 20px; text-align: left;
}
.success-message p { margin: 0; font-size: 0.9rem; }


/* --- Responsive Styles --- */

/* Tablets and below */
@media (max-width: 1024px) {
    .main-nav {
        gap: 20px;
    }
}


/* Mobile devices */
@media (max-width: 768px) {
    .content-frame {
        padding: 20px;
        border-width: 10px;
    }

    .header-content {
        grid-template-columns: auto 1fr auto;
        position: relative;
    }

    .hamburger-menu {
        display: block;
        font-size: 24px;
        cursor: pointer;
        color: var(--text-primary);
        z-index: 1001;
        grid-column: 1 / 2;
        padding-right: 15px;
    }

    /* --- ADJUSTED MOBILE NAVIGATION --- */
    .main-nav {
        display: none; 
        flex-direction: column; 
        position: fixed; /* Use fixed to cover the whole screen */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%; /* Full height */
        background-color: var(--background-dark); 
        padding-top: 60px; /* Space for a close button if you add one */
        z-index: 1000; 
        gap: 0;
        justify-content: center; /* Center links vertically */
        align-items: center; /* Center links horizontally */
    }

    .menu-toggle:checked ~ .main-nav {
        display: flex;
    }
    
    .main-nav a {
        text-align: center;
        padding: 20px 0;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        font-size: 1.2rem;
    }
    
    .main-nav a:last-child {
        border-bottom: none;
    }

    .main-nav a.active {
        border-bottom: 1px solid var(--border-color); /* Maintain consistency */
    }
    
    /* --- END OF NAVIGATION ADJUSTMENTS --- */

    .social-links {
        grid-column: 3 / 4;
        justify-self: end;
    }

    .header-spacer {
        display: none;
    }

    .page-container {
        margin: 40px auto;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .page-header p {
        font-size: 1.1rem;
    }
}