/* Contact Page Specific Styles */

.contact-page {
    padding-top: 140px; /* Space for fixed navbar */
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #4287f5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 20px rgba(66, 135, 245, 0.3);
}

.contact-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Container Layout */
.contact-container {
    display: flex;
    gap: 40px;
    align-items: stretch; /* Make both columns equal height if content allows, or just align top */
}

.contact-form-column {
    flex: 3;
    display: flex; /* Verify this allows child to grow */
    flex-direction: column;
}

.contact-info-column {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Glassmorphism Cards */
.form-card, .info-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 50px; /* Increased padding for bigger feel */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Fill column height */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically if needed, or flex-start */
}

.form-card:hover, .info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(66, 135, 245, 0.3);
}

.form-card h2, .info-card h3 {
    font-size: 2rem; /* Slightly larger */
    margin-bottom: 30px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

/* Form Styles */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px; /* More spacing */
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px; /* More spacing */
}

.form-group label {
    font-size: 1rem; /* Larger label */
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    margin-left: 5px;
}

.form-group input,
.form-group textarea {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px; /* Larger padding */
    color: #fff;
    font-size: 1.05rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4287f5;
    background: rgba(66, 135, 245, 0.05);
    box-shadow: 0 0 0 4px rgba(66, 135, 245, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 250px; /* Much taller textarea */
}

.btn-submit {
    background: linear-gradient(135deg, #0d47a1 0%, #4287f5 100%);
    color: white;
    border: none;
    padding: 18px 40px; /* Larger button */
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(13, 71, 161, 0.3);
    margin-top: 10px;
}
/* ... existing code ... */


.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(13, 71, 161, 0.5);
    filter: brightness(1.2);
}

/* Info Column Styles */
.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: center; /* Better vertical alignment */
}

/* Link Wrapper Styling */
.info-item-link {
    text-decoration: none;
    display: block;
    color: inherit;
    transition: all 0.3s ease;
}

.info-item-link:hover .info-item i {
    background: #4287f5;
    color: #fff;
    transform: scale(1.1);
}

.info-item-link:hover .info-item h4 {
    color: #4287f5;
}

.info-item-group {
    display: flex;
    flex-direction: column;
}

.info-item i {
    font-size: 1.5rem;
    color: #4287f5;
    background: rgba(66, 135, 245, 0.1);
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex; /* Fix icon centering */
    align-items: center;
    justify-content: center;
    width: 50px; /* Fixed width for alignment */
    height: 50px;
    min-width: 50px; /* Ensure it doesn't shrink */
    flex-shrink: 0; /* Extra safety */
}

.info-item h4 {
    margin: 0 0 2px 0;
    color: #fff;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    text-align: left; /* Explicitly set alignment */
}

.info-item p, .info-item span, .info-item a {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.3s ease;
    text-align: left; /* Explicitly set alignment */
    display: block;
}

.info-item a:hover {
    color: #4287f5;
}

/* Social Links */
.social-links-contact {
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center; /* Center the title too if desired, user said icons centered */
}

.social-links-contact h4 {
    text-align: center;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.social-icons {
    display: flex;
    gap: 20px;
    justify-content: center; /* Center icons */
    margin-top: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.4rem;
}

.social-icons a:hover {
    background: #4287f5;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(66, 135, 245, 0.3);
}

/* Map Container */
.map-container {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    height: 300px;
}

.map-container iframe {
    filter: grayscale(100%) invert(92%) contrast(83%); /* Dark mode map check */
}

/* Light Mode Styles */
body.light-mode .contact-header h1 {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d47a1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

body.light-mode .contact-header p {
    color: #666;
}

body.light-mode .form-card,
body.light-mode .info-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

body.light-mode .form-card h2,
body.light-mode .info-card h3 {
    color: #333;
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .form-group label {
    color: #555;
}

body.light-mode .form-group input,
body.light-mode .form-group textarea {
    background: #f5f7fa;
    border-color: #dce0e6;
    color: #333;
}

body.light-mode .form-group input:focus,
body.light-mode .form-group textarea:focus {
    background: #fff;
    border-color: #4287f5;
}

body.light-mode .info-item h4 {
    color: #333;
}

body.light-mode .info-item p,
body.light-mode .info-item a,
body.light-mode .info-item span {
    color: #666;
}

body.light-mode .info-item a:hover {
    color: #0d47a1;
}

body.light-mode .social-links-contact {
    border-top-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .social-icons a {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

body.light-mode .social-icons a:hover {
    background: #0d47a1;
    color: #fff;
}

body.light-mode .map-container {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

body.light-mode .map-container iframe {
    filter: none; /* Default normal map */
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
    }
    
    .contact-form-column, .contact-info-column {
        width: 100%;
        flex: auto;
    }
    
    .contact-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-card, .info-card {
        padding: 25px;
    }
    
    .contact-header h1 {
        font-size: 2rem;
    }
}
