body {
    font-family: 'Poppins', sans-serif;
    background-color: #e2e2e2;
    margin: 0;
    padding: 0;
}

/* ---------- MAIN CONTAINER ---------- */
.container1 {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    gap: 60px;
    padding: 40px 20px;
    flex-wrap: wrap;
    margin-top: 70px;
}

/* ---------- IMAGE SECTION ---------- */
.image-container1 {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 300px;
    margin-top: 100px;
}

.image-container img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

/* ---------- FORM SECTION ---------- */
.form-container {
    flex: 1;
    background-color: #ffffff;
    border-radius: 18px;
    padding: 40px 45px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    min-width: 280px;
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
}

.form-group {
    display: flex;
    gap: 12px;
}

input, select, textarea {
    width: 100%;
    padding: 13px 14px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background-color: #f8f8f8;
    font-size: 15px;
    transition: all 0.2s ease-in-out;
    outline: none;
}

input:focus, select:focus, textarea:focus {
    border-color: #e63946;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(230, 57, 70, 0.4);
}

textarea {
    resize: none;
    height: 90px;
}

button {
    width: 100%;
    background: linear-gradient(90deg, #e63946, #ff4757);
    color: #fff;
    font-size: 18px;
    padding: 14px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: 0.3s ease;
}

button:hover {
    background: linear-gradient(90deg, #ff4757, #e63946);
    transform: translateY(-2px);
}

form > * {
    margin-bottom: 18px;
}

/* ---------- FOOTER ---------- */
.footer {
    font-family: 'Poppins', sans-serif;
    background: #fff;
    color: #333;
}

.footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    padding: 50px 20px;
    gap: 40px;
}

.footer-section {
    flex: 1;
    min-width: 230px;
}

.footer-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-section p {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-section a {
    color: #333;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-section button {
    background: #888;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 18px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

.footer-section button:hover {
    background: #555;
}

.footer-bottom {
    background: #0056d2;
    color: #fff;
    padding: 15px 40px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom span {
    font-weight: 600;
}

/* ---------- MOBILE RESPONSIVE FIX ---------- */
@media (max-width: 950px) {
    /* Stack image & form vertically */
    .container {
        flex-direction: column;
        gap: 20px;
        padding-top: 10px; /* prevent navbar overlap */
        align-items: center;
     
    }

    .image-container img {
    display: none !important;
    }

    .form-container {
        margin-right: 0;
        width: 90%;
        padding: 25px;
    }

    .form-group {
        flex-direction: column;
        gap: 10px;
    }

    /* Footer becomes vertical */
    .footer{
        display: none !important;
    }

 
}

@media (max-width: 500px) {
    h2 {
        font-size: 20px;
    }

    button {
        font-size: 16px;
        padding: 12px;
    }
}
