/* --- CSS Reset & Variables --- */
:root {
    --primary-color: #0056b3; /* Professional Blue */
    --secondary-color: #00a8cc; /* Cyan accent */
    --dark-text: #333;
    --light-text: #666;
    --bg-color: #f4f7f6;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    line-height: 1.6;
    color: var(--dark-text);
}

/* --- Header Section --- */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 4rem 1rem 5rem 1rem; /* Added extra bottom padding for the overlap effect on desktop */
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* --- Main Container --- */
.container {
    max-width: 1200px;
    /* Negative margin creates the overlap effect */
    margin: -60px auto 50px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    position: relative;
    z-index: 10;
}

/* --- Info Card (Left Side) --- */
.contact-info {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    height: 100%; /* Makes sure it matches height of form */
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-right: 15px;
    margin-top: 5px;
    min-width: 20px; /* Ensures icon alignment */
}

.info-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.info-item p {
    font-size: 0.9rem;
    color: var(--light-text);
}

/* --- Contact Form (Right Side) --- */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form h2 {
    margin-bottom: 20px;
    color: var(--dark-text);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    background: #fff;
}

button.btn-submit {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    font-weight: 600;
}

button.btn-submit:hover {
    background: #004494;
}

/* --- Map Section --- */
.map-section {
    max-width: 1200px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: #fff;
    font-size: 0.9rem;
}

/* --- RESPONSIVE DESIGN FIXES --- */
/* Changed breakpoint to 900px to catch tablets */
@media (max-width: 900px) {
    header {
        padding: 3rem 1rem 3rem 1rem; /* Remove extra bottom padding */
    }

    header h1 {
        font-size: 2rem;
    }

    .container {
        grid-template-columns: 1fr; /* Stack items vertically */
        margin: 0 auto 30px; /* REMOVED negative margin */
        padding: 0 15px;
        gap: 20px;
    }

    .contact-info,
    .contact-form {
        padding: 25px 20px; /* Reduced padding for mobile */
    }

    /* Order: Put Info first, Form second (Default behavior, but good to be explicit if needed) */
    .contact-info {
        order: 1;
    }
    .contact-form {
        order: 2;
    }

    iframe {
        height: 300px; /* Slightly shorter map on mobile */
    }
}
