

/* 
==========================================================
 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

PREMIUM ENQUIRY FORM STYLE
Modern Study Abroad Theme
========================================================== */

.form-container{
    width:100%;
    max-width:980px;
    margin:0 auto;
    background:#fff;
    padding:35px;
    border-radius:16px;
    box-shadow:0 12px 35px rgba(0,0,0,0.06);
    border:1px solid #eee;
}

/* FORM LAYOUT */
form{
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    gap:14px;
}

/* INPUTS */
.input-field,
.select-field{
    width:49%;
    padding:13px 14px;
    border:1px solid #ddd;
    border-radius:10px;
    font-size:15px;
    background:#fafafa;
    transition:all .3s ease;
    outline:none;
}

.input-field:focus,
.select-field:focus{
    border-color:#4f2ca5;
    background:#fff;
    box-shadow:0 0 0 4px rgba(79,44,165,0.12);
}

/* FULL WIDTH */
.input-field.full-width,
.select-field.full-width,
textarea{
    width:100%;
}

textarea{
    min-height:120px;
    resize:vertical;
}

/* FILE INPUT */
[type="file"]{
    border:1px dashed #bbb;
    background:#f9f9f9;
    padding:10px;
    border-radius:10px;
    cursor:pointer;
}

/* SELECT */
.select-field{
    appearance:none;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat:no-repeat;
    background-position:right 12px center;
    background-size:12px;
}

.select-field option:first-child{
    color:#999;
}

/* CAPTCHA AREA */
.file-captcha-group{
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-top:10px;
}

.captcha-wrapper{
    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
}

.captcha-wrapper img{
    border-radius:8px;
    border:1px solid #ddd;
    background:#fff;
}

/* BUTTONS */
.button-group{
    width:100%;
    display:flex;
    justify-content:flex-end;
    gap:10px;
    margin-top:15px;
}

.submit-button{
    padding:12px 22px;
    border:none;
    border-radius:10px;
    font-weight:600;
    font-size:15px;
    cursor:pointer;
    transition:.3s;
}

/* PRIMARY BUTTON */
.submit-button[type="submit"]{
    background:linear-gradient(135deg,#4f2ca5,#6c3cff);
    color:#fff;
}

.submit-button[type="submit"]:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 25px rgba(79,44,165,0.35);
}

/* RESET BUTTON */
.submit-button[type="reset"]{
    background:#f2f2f2;
    color:#333;
}

.submit-button[type="reset"]:hover{
    background:#e6e6e6;
}

/* =========================
   LOADING INDICATOR
========================= */

#loadingIndicator{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width:80px;
    height:80px;
    z-index: 999999999;
}

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

#loadingIndicator :first-child{
    background:#4f2ca5;
    animation-delay:-1.5s;
}
#loadingIndicator :nth-child(2){
    background:#7c4dff;
    animation-delay:-1s;
}
#loadingIndicator :nth-child(3){
    background:#9b7dff;
    animation-delay:-0.5s;
}
#loadingIndicator :last-child{
    background:#2b1b60;
}

@keyframes spin{
    0%,100%{transform:translate(0);}
    25%{transform:translate(160%);}
    50%{transform:translate(160%,160%);}
    75%{transform:translate(0,160%);}
}

/* =========================
   MOBILE RESPONSIVE
========================= */

@media(max-width:768px){

    .form-container{
        padding:22px;
    }

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

    .file-captcha-group{
        flex-direction:column;
        align-items:flex-start;
    }

    .button-group{
        justify-content:center;
    }
}
