@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --font-family: 'Poppins', sans-serif;
    --transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    --arrow-size: 50px;
    --primary: #0d6efd;
    --secondary: #28a745;
    --dark: #0f172a;
    --light-bg: #f8fafc;
    --glass: rgba(255, 255, 255, 0.8);
}

.contact-hero {
    /* background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)),
        url('https://images.unsplash.com/photo-1534536281715-e28d76689b4d?q=80&w=2070&auto=format&fit=crop') center/cover; */
    color: #fff;
    padding: 120px 20px;
    text-align: center;
}

.contact-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

/* Person Contect section start */
.person-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: -40px;
    margin-bottom: 40px;
}

.p-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.p-img img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #eee;
    margin-bottom: 15px;
    object-fit: cover;
}

.p-card h3 {
    margin: 5px 0;
    color: var(--primary);
}

.p-tag {
    color: var(--secondary);
    font-weight: bold;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 10px;
}

.p-card p {
    font-size: 0.9rem;
    color: #555;
    margin: 5px 0;
}

.p-card i {
    color: var(--primary);
    margin-right: 5px;
}

/* Person Contect section end*/

/* Contact Layout section start */
.contact-grid {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: stretch;
    /* Ensures equal height */
}

.office-card,
.form-card {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.office-card h3,
.form-card h3 {
    color: var(--primary);
    border-bottom: 2px solid var(--secondary);
    display: inline-block;
    padding-bottom: 5px;
}

.inst-name {
    font-weight: bold;
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 15px;
}

.addr {
    line-height: 1.6;
    color: #444;
}

.web {
    margin-top: 10px;
    color: #555;
}

.web strong {
    color: var(--primary);
}

.input-row {
    display: flex;
    gap: 15px;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: var(--font-family);
}

.btn-submit {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 18px;
    margin-top: 15px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.btn-submit:hover {
    background-color: #218838;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.map-full {
    width: 100%;
    height: 450px;
    margin-top: 20px;
    margin-bottom: 40px;
}

/* Contact Layout section end */

/* Responsive Design */
/* Extra large devices (large desktops, 1920px and up) */
@media (min-width: 1920px) {
    .container {
        max-width: 1850px;
        margin: 0 auto;
    }
}

/* Large devices (desktops, 1366px) */
@media (max-width: 1366px) {
    .container {
        max-width: 1280px;
        margin: 0 auto;
    }
}

/* Medium devices (tablets, 768px) */
@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 2.5rem;
    }

    .person-grid,
    .contact-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .office-card,
    .form-card {
        width: 100% !important;
    }

    .contact-layout {
        flex-direction: column !important;
    }

    .form-wrapper,
    .map-wrapper {
        width: 100% !important;
        flex: 0 0 100%;
    }

    .p-card {
        padding: 15px;
    }

    .inst-name {
        font-size: 1rem;
    }

    .addr {
        font-size: 12px;
    }
}

/* Small devices (large mobiles, 480px) */
@media (max-width: 480px) {
    .contact-hero h1 {
        font-size: 1.8rem;
    }

    .contact-hero {
        padding: 60px 15px;
    }

    .office-info {
        flex-direction: column;
        gap: 20px;
    }

    .office-card {
        padding: 25px 20px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .map-wrapper iframe {
        height: 300px;
    }

    .section-title {
        font-size: 1.5rem !important;
    }
}

/* Extra small devices (small mobiles, 364px) */
@media (max-width: 364px) {
    .contact-hero h1 {
        font-size: 1.8rem;
    }
}