﻿.contact-section {
    display: flex;
    flex-flow: row wrap;
}

.contact-image-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
    padding: 20px;
}

.form-container {
    flex: 1;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    height: 100%;
    width: 100%;
    align-self: center;
    border: 1px solid #11101b;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.input-group label {
    margin-bottom: 5px;
    font-weight: bold;
}

.input-group input,
.input-group select,
.input-group textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: none;
}

.input-group textarea {
    min-height: 100px;
}

.input-row {
    display: flex;
    gap: 10px;
}

.input-row > .input-group {
    flex: 1;
}

.form-container button {
    width: 100%;
    padding: 10px;
    margin-top: 20px;
    border: none;
    background: #005ed6;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
}

.form-container button:hover {
    background: #333333;
}

.required {
    color: red;
}

/* mobile */
@media (max-width: 450px) {
    .contact-section {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .form-container {
        text-align: center;
    }

    .contact-image-text img {
        max-width: 80%;
        width: 100%; 
    }

    .input-group {
        box-sizing: border-box;
        width: 100%;
        margin-bottom: 15px; 
    }

    .input-group label {
        text-align: left; 
    }

    .input-group input,
    .input-group textarea {
        width: calc(100% - 20px); 
        padding: 10px;
        margin: 0 auto; 
    }

    .contact-image-text,
    .form-container {
        box-sizing: border-box;
    }

    .input-row {
        display: flex;
        flex-direction: column;
    }
    .contact-section .contact-image-text,
    .contact-section .form-container {
        flex: 1 1 auto; 
    }
}


/* tablet */
@media (max-width: 768px) and (min-width: 450px) {
    .contact-section {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .contact-image-text img {
        justify-self: center;
        max-width: 70%;
    }

    .contact-image-text,
    .form-container {
        box-sizing: border-box;
    }

    .input-row {
        flex-direction: column;
    }
}
