/* Contact Section Styles */
.contact-section {
    padding: 4rem 0;
}

.contact-section .container {
    max-width: 700px;
    background: #fff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-section p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.contact-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #5061C4;
    box-shadow: 0 0 5px rgba(80, 97, 196, 0.2);
}

/* Note: .cta-button is now in global.css */
.contact-form .cta-button {
    width: 100%;
    padding: 15px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

/* Responsive Design for Contact Section */
@media (max-width: 768px) {
    .contact-section .container {
        padding: 2rem;
    }
}

/* Contact Section General Styling */
.contact-section {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.contact-section h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.contact-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
    color: #555;
    font-size: 1.1rem;
}

/* Two-column grid layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: #fff;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Left Column: Contact Info */
.contact-info h3 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 2rem;
    color: #333;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.info-item svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #5061C4;
    margin-right: 1rem;
    margin-top: 5px;
}

.info-item div {
    display: flex;
    flex-direction: column;
}

.info-item strong {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.25rem;
}

.info-item a, .info-item p {
    font-size: 1rem;
    color: #555;
    text-decoration: none;
    margin: 0;
    line-height: 1.6;
}

.info-item a:hover {
    color: #5061C4;
    text-decoration: underline;
}

/* Right Column: Contact Form */
.contact-form h3 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #5061C4;
    box-shadow: 0 0 0 3px rgba(80, 97, 196, 0.15);
}

.contact-form .cta-button {
    width: 100%;
    padding: 0.8rem;
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}

/* --- Main Form Container Styling --- */
.form-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 3rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-out; /* Add fade-in animation */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-top: 0.5rem;
}

/* --- General Form Element Styling --- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #444;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #5061C4;
    box-shadow: 0 0 0 4px rgba(80, 97, 196, 0.1);
}

/* --- Replaces the old .form-row rule --- */

/* This ID selector targets ONLY the Student Alumni form */
#contact-form.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr; /* This creates the strict 2-column grid */
    gap: 1.5rem;
    text-align: left; /* Overrides any centered text from parent classes */
}

/* This is a utility class we added to the HTML */
#contact-form .form-span-2 {
    grid-column: 1 / -1; /* Tells an item to span both columns */
}

/* This rule is no longer needed for the alumni form */


/* --- File Upload Styling --- */
.file-upload-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

input[type="file"] {
    display: none; /* Hide the default file input */
}

.custom-file-upload {
    display: inline-block;
    padding: 0.7rem 1.2rem;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.custom-file-upload:hover {
    background-color: #e0e0e0;
}

.custom-file-upload span {
    margin-right: 0.5rem;
}

.file-name {
    margin-left: 1rem;
    font-style: italic;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Submit Button --- */
#submit-button.cta-button {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* --- Form Status Message --- */
#form-status {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    min-height: 1.2em; /* Reserve space to prevent layout shift */
}

/* --- Responsive Design for smaller screens --- */
@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .form-container {
        padding: 2rem;
        margin: 2rem auto;
    }
    .page-title {
        font-size: 2rem;
    }
}

/* --- Batch Year Grid Styling --- */

#batch-grid-container {
    display: grid;
    /* Creates columns of boxes, each at least 60px wide */
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 8px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    
    /* Makes the grid scrollable if years don't fit */
    max-height: 200px;
    overflow-y: auto;
}

.year-box {
    padding: 10px 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    background-color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.year-box:hover {
    background-color: #eef0f8; /* Light purple on hover */
    color: #5061C4;
}

.year-box.selected {
    background-color: #5061C4; /* Primary color when selected */
    color: #fff;
    border-color: #5061C4;
    font-weight: 600;
}


/* Specific style for the Alumni Connect button */
.alumni-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    /* Dark gray background to separate it from the main Submit button */
    background-color: #4a4a4a; 
    color: #fff;
    
    /* Sizing - Matches the submit button */
    width: auto;
    min-width: 150px;
    padding: 12px 30px;
    
    /* Standard button styling */
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Hover Effect */
.alumni-btn:hover {
    background-color: #333; /* Slightly darker on hover */
    transform: translateY(-2px); /* Slight lift effect */
}