/* Modal Background */
#formModal.custom-modal {
    position: fixed;
    top: 0;
    padding-top: 12vh;;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    z-index: 1234;
    display: none;
}

/* Modal Box */
#formModal .custom-modal-dialog {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

/* Modal Content */
#formModal .custom-modal-content {
    padding: 20px;
    font-family: Boogaloo;
}

/* Header */
#formModal .custom-modal-header {
    display: flex;
    justify-content: flex-end;
}

/* Close Button */
#formModal .close-btn {
    background: none;
    border: none;
    font-size: 20px;
    line-height: 20px;
    cursor: pointer;
    padding:1px  5px 3px;
    /* border: solid; */
    margin-bottom: 5px;
    background:gray;
    color: white;
}
#formModal .close-btn:hover {
}

/* Title */
#formModal .title {
    text-align: center;
    font-weight: bold;
    color: var(--secondary-color);
    /* font-size: 1.3rem; */
   margin-bottom: 10px;
}

/* Form Group */
#formModal .form-group {
    margin-bottom: 15px;
}

#formModal .form-group input,
#formModal .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    color: black;
}
/* #formModal .form-group input::placeholder{
    color: black;
} */
#formModal .form-group select  {
   
    color: #979797;
}

/* Submit Button */
#formModal .submit-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 90px;
    padding: 8px 40px 8px;
    /* font-size: 18px; */
    cursor: pointer;
    min-width: 172px;

    display: flex;
    justify-content: center;
}

#formModal .submit-btn:hover {
    background-color:#027902 ;
}

/* Error Message */
#formModal .error-msg {
    color: red;
    display: none;
    text-align: center;
}

/* Textarea Styling */
#formModal .form-group textarea {
    width: 100%;
    height: 80px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: vertical;
}

 
/* Custom File Upload Styling */
#formModal .custom-file-upload {
    display: flex;
    align-items: center;
    width: 100%;
}

#formModal #customFileLabel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    /* font-size: 14px; */
}

#formModal #customFileBtn {
    background-color:var(--secondary-color);
    color: white;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
    /* font-size: 14px; */

    width: 90px;
    padding: 8px 12px 5px;
}

#formModal #file-chosen {
    /* font-size: 14px; */
    color: #555;
    flex-grow: 1;
    text-align: left;
}


 /* Overlay background */
.custom-thankyou-modal-container.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: flex-start;
    z-index: 1000;
}

/* Modal box */
.custom-thankyou-modal-container .custom-modal {
    margin-top: 15vh;
    background: #222;
    color: white;
    width: 90%;
    height: fit-content;
    max-width: 400px;
    padding: 40px 30px 30px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

/* Close button */
.custom-thankyou-modal-container .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    line-height: 20px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    background-color: white;
    color: black;
    border-radius: 1px;
    padding: 0 5px 3px;
}
#thankModal  .close-btn:hover {
    /* color: white; */
    
}

/* Text styles */
.custom-thankyou-modal-container .modal-title {
    /* font-size: 20px; */
    font-family: Boogaloo;
    /* margin-bottom: 10px; */
}

/* Share div */
.custom-thankyou-modal-container .share {
    margin-top: 10px;
    /* font-size: 14px; */
}

/* Fade In Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}


/*** loader ***/
.loader {
    width: 30px;
    height: 30px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid rgb(255, 213, 0);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

/* Keyframes for rotation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media screen and (max-width:768px) {
    /* Modal Box */
    #formModal .custom-modal-dialog {
        width: 90%;
        
    }
    .custom-thankyou-modal-container .custom-modal-dialog {
        width: 90%;
    }
}


