/* Global Variables */
:root {
    --contact-primary: #00897b;
    /* Teal */
    --contact-secondary: #004d40;
    --contact-accent: #ff6f00;
    /* Amber/Orange */
    --contact-bg: #f0f4f8;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 35px rgba(0, 137, 123, 0.15);
}

body {
    background-color: var(--contact-bg);
}

/* Hero Section */
.contact-hero {
    background: linear-gradient(135deg, var(--contact-secondary), var(--contact-primary));
    color: white;
    padding: 80px 20px 60px;
    text-align: center;
    border-radius: 0 0 50px 50px;
    margin-bottom: 50px;
}

.contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.contact-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Info Cards Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: -100px auto 60px;
    /* Overlap Hero */
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.info-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: var(--glass-border);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.info-icon {
    font-size: 2.5rem;
    color: var(--contact-primary);
    margin-bottom: 20px;
    display: inline-block;
    padding: 15px;
    background: rgba(0, 137, 123, 0.1);
    border-radius: 50%;
}

.info-card h3 {
    margin-bottom: 10px;
    color: #333;
}

.info-card p,
.info-card a {
    color: #555;
    font-size: 1.1rem;
    text-decoration: none;
    line-height: 1.6;
}

/* Map Section */
.map-section {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.map-container {
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 5px solid white;
}

#contact-map {
    height: 100%;
    width: 100%;
}

/* Forms Section */
.forms-container {
    max-width: 1000px;
    margin: 0 auto 80px;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-wrap: wrap;
}

.form-toggle {
    display: flex;
    width: 100%;
    border-bottom: 1px solid #eee;
}

.toggle-btn {
    flex: 1;
    padding: 20px;
    background: #f8f9fa;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
}

.toggle-btn.active {
    background: white;
    color: var(--contact-primary);
    border-top: 4px solid var(--contact-primary);
}

.form-content {
    padding: 40px;
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: 0.3s;
    background: #f9f9f9;
}

.form-control:focus {
    border-color: var(--contact-primary);
    background: white;
    outline: none;
}

.form-label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: #999;
    pointer-events: none;
    transition: 0.3s;
    background: transparent;
    padding: 0 5px;
}

.form-control:focus+.form-label,
.form-control:not(:placeholder-shown)+.form-label {
    top: -10px;
    left: 10px;
    font-size: 0.85rem;
    color: var(--contact-primary);
    background: white;
    font-weight: 600;
}

.btn-submit {
    background: var(--contact-primary);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 137, 123, 0.3);
}

.btn-submit:hover {
    background: var(--contact-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 137, 123, 0.4);
}

/* Partners Section */
.partners-section {
    padding: 60px 20px;
    background: white;
    text-align: center;
}

.partners-title {
    margin-bottom: 40px;
    color: #333;
    font-size: 2rem;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.partner-logo {
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: 0.3s;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
}

@media (max-width: 768px) {
    .contact-hero {
        padding-bottom: 40px;
        margin-bottom: 20px;
    }

    .info-grid {
        margin-top: 0;
    }

    .contact-hero h1 {
        font-size: 2rem;
    }
}

/* --- Department Directory Section --- */
.dept-section {
    padding: 20px 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.search-dept input:focus {
    border-color: var(--contact-primary);
    box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.1);
}

.dept-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--contact-primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dept-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, transparent 50%, rgba(0, 137, 123, 0.05) 50%);
    pointer-events: none;
}

.dept-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.dept-icon {
    font-size: 2.2rem;
    color: var(--contact-primary);
    margin-bottom: 15px;
    display: inline-block;
}

.dept-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 5px;
    color: #333;
}

.dept-subtitle {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
    display: block;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    color: #555;
    font-size: 0.95rem;
}

.contact-row i {
    color: var(--contact-accent);
    width: 20px;
    text-align: center;
}

.contact-row a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-row a:hover {
    color: var(--contact-primary);
}