body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.header {
    background: linear-gradient(90deg, #6f42c1, #d63384);
    color: white;
    text-align: center;
    padding: 20px 0;
    position: relative;
    height: 200px;
}

.header h1 {
    margin: 0;
    font-size: 24px;
    padding: 10px 20px;
    border: 2px solid white; /* Added border for box */
    display: inline-block; /* Ensure the text is wrapped in the box */
    border-radius: 5px; /* Optional: rounded corners */
    margin-top: 90px;
}

.contact-section {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
}

.form-container {
    flex: 1 1 400px;
    max-width: 500px;
}

.form-container h2 {
    font-size: 20px;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.form-container h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: blue;
    transition: width 0.3s ease-in-out;
}

.form-container h2:hover::after {
    width: 100%;
}

.form-container form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-container input,
.form-container textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.form-container textarea {
    resize: vertical;
    height: 100px;
}

.form-container button {
    background-color: #6f42c1;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-container button:hover {
    background-color: #5a34a8;
}

.map-container {
    flex: 1 1 400px;
    max-width: 500px;
    margin-top: 80px;
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 5px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 100px; /* Increased gap for distance between phone and location */
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.info-box {
    text-align: center;
    max-width: 300px;
}

.info-box img {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

.info-box h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.info-box p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #555;
}

@media (max-width: 768px) {
    .contact-section {
        flex-direction: column;
    }

    .form-container {
        order: 1;
    }

    .map-container {
        margin-top: 20px;
        order: 2;
    }

    .map-container iframe {
        height: 250px;
    }

    .contact-info {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 20px;
    }

    .form-container h2 {
        font-size: 18px;
    }

    .map-container iframe {
        height: 200px;
    }
}