#order-section {
    width: 100%;
    margin-top: 150px;
}


.section-header {
    max-width: 1300px;
    text-align: center;
    width: 100%;
    margin: 0px auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section-header p {
    max-width: 700px;
    text-align: center;
}
.section-header h2 {
    font-size: 26x;
    font-weight: bold;
    text-align: center;
}


.form-wrapper {
    display: flex;
    max-width: 1300px;
    margin: 50px auto;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    direction: rtl;
}

.form-image {
    width: 50%;
    background-image: url("/images/images/contact-image.jpg");
    background-size: cover;
    background-position: center;
}

#form-container {
    width: 50%;
    padding: 30px;
    box-sizing: border-box;
}

#form-container label {
    display: block;
    margin-top: 20px;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}


input.error::placeholder,
textarea.error::placeholder {
    color: #ff3737;
}

#form-container input.error,textarea.error {
    border: 1px solid #ff3838;
}

#form-container input,textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#form-container input:focus {
    border-color: #86b7fe;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}


.alert-danger {
    font-weight: 300;
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert span {
    text-align: right;
}

.alert .close-btn {
    background: transparent;
    border: none;
       font-weight: 300;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
}


.alert {
    padding: 0.75rem 1.25rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 0.4px solid transparent;
    border-radius: 0.375rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5;
    opacity: 0;
    animation: fadeInAndMoveAnimation 0.5s forwards;
}

#form-container textarea:focus {
    border-color: #86b7fe;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}
.alert > * {
    font-weight: 300;
}
@keyframes fadeInAndMoveAnimation {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    font-weight: 300;
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

#submitApplicationButton {
    margin-top: 30px;
    width: 100%;
    padding: 14px;
    background-color: #00a45a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#submitApplicationButton:hover:not(:disabled) {
    background-color: #006538;
}

#submitApplicationButton:disabled {
    background-color: #b1b1b1;
    color: #ffffff;
    cursor: not-allowed;
}



@media (max-width: 1024px) {
    #order-section {
        padding-left: 50px;
        padding-right: 50px;
    }

    .form-wrapper {
        flex-direction: column;
    }

        #form-container {
        width: 100%;
    }

    .form-image {
        width: 100%;
        height: 500px;
        background-image: url("/images/images/contact-image.jpg");
        background-size: cover;
        background-position: center;
    }

}


@media (max-width: 1300px) {

    #order-section {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width : 700px) {

    #order-section {
        padding-left: 20px;
        padding-right: 20px;
    }

      .form-image {
        height: 200px;
    }

    #form-container {
        padding: 10px;
    }
}


.button-spinner {
    border: 2px solid transparent;
    border-top: 2px solid #fff; /* color of spinner */
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}