/* 
==========================================================
 Application: Responsive Feedback Form
 Copyright 2024 - Present, All Rights Reserved
 Developer: Sagar Autade | mipl.co.in
 ==========================================================
 File: form.css
 File Date: 09-10-2024
 Description:
 Responsive Feedback Form
 ==========================================================
*/
.form-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 15px;
    background: #005e9be5;
    border-radius: 20px;
    box-shadow: 2px 2px 4px 2px rgba(0, 0, 0, 0.37);
}

form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.input-field,
.select-field {
    width: 100%;
    padding: 7px;
    margin: 7px 0;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 14px;
}

.input-field.full-width,
.select-field.full-width {
    width: 100%;
}

textarea {
    resize: vertical;
}

.submit-button {
    background-color: #edbf2f;
    color: #020202;
    padding: 5px 13px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.submit-button:hover {
    background-color: #e6c153;
}

.captcha-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: end;
}

.captcha-image {
    margin-right: 10px;
    border-radius: 20px;
    /* Space between the image and the input */
}

.button-group {
    text-align: right;
    width: 100%;
}

.file-captcha-group {
    display: flex;
    justify-content: space-between;
    /* Aligns items at the ends */
    align-items: center;
    width: 100%;
}

.select-field {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff !important;
    color: #333;
    font-size: 14px;
    padding: 8px;
    /* Match input padding */
    border: 1px solid #ccc;
    /* Match input border */
    border-radius: 20px;
    /* Match input border radius */
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10"><polygon points="0,0 10,0 5,7"/></svg>') no-repeat right 10px center;
    background-size: 10px 10px;
}

.select-field option:first-child {
    color: #999;
    /* Light color for placeholder */
}

.select-field option:disabled {
    display: none;
    /* Hide the placeholder */
}

@media (max-width: 768px) {

    .input-field,
    .select-field {
        width: 100%;
    }

    .file-captcha-group {
        flex-direction: column;
        /* Stack on smaller screens */
    }
}

#loadingIndicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /*change these sizes to fit into your project*/
    width: 100px;
    height: 100px;
}

#loadingIndicator hr {
    border: 0;
    margin: 0;
    width: 40%;
    height: 40%;
    position: absolute;
    border-radius: 50%;
    animation: spin 2s ease infinite
}

#loadingIndicator :first-child {
    background: #19A68C;
    animation-delay: -1.5s
}

#loadingIndicator :nth-child(2) {
    background: #F63D3A;
    animation-delay: -1s
}

#loadingIndicator :nth-child(3) {
    background: #FDA543;
    animation-delay: -0.5s
}

#loadingIndicator :last-child {
    background: #193B48
}

@keyframes spin {

    0%,
    100% {
        transform: translate(0)
    }

    25% {
        transform: translate(160%)
    }

    50% {
        transform: translate(160%, 160%)
    }

    75% {
        transform: translate(0, 160%)
    }
}