/* Reset and box-sizing for all elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

/* Contact section centered using Flexbox */
.contact {
    display: flex;
    justify-content: center;  /* Center horizontally */
    align-items: center;      /* Center vertically */
    min-height: 100vh;
    padding: 40px;
    background-color: #f4f4f4;
}

/* Content box styling */
.content {
    max-width: 1000px;
    width: 100%;
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Title and paragraph */
.content h2 {
    text-align: center;
    margin-bottom: 20px;
}

.content p {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
}

/* Info box and form side-by-side */
.contactInfo,
.contactForm {
    width: 48%;
}

.contactInfo {
    float: left;
}

.contactForm {
    float: right;
}

/* Contact info box */
.box {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.icon {
    font-size: 24px;
    color: #333;
    margin-right: 15px;
}

.text h3 {
    margin-bottom: 5px;
    font-size: 18px;
}

/* Input and textarea styling */
.inputBox {
    position: relative;
    margin-bottom: 20px;
}

.inputBox input,
.inputBox textarea {
    width: 100%;
    padding: 10px;
    background: #f9f9f9;
    border: none;
    border-bottom: 2px solid #333;
    outline: none;
    resize: none;
}

/* Floating label effect */
.inputBox span {
    position: absolute;
    left: 10px;
    top: 10px;
    color: #999;
    transition: 0.3s;
    pointer-events: none;
}

.inputBox input:focus + span,
.inputBox input:valid + span,
.inputBox textarea:focus + span,
.inputBox textarea:valid + span {
    top: -20px;
    left: 0;
    color: #333;
    font-size: 12px;
}

/* Submit button style */
.inputBox input[type="submit"] {
    background: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.inputBox input[type="submit"]:hover {
    background: #555;
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
    .contactInfo,
    .contactForm {
        width: 100%;
        float: none;
    }

    .content {
        padding: 20px;
    }
}
