body#module-psy_formbuilder-form{
    background: #f6f6f6;
    height: auto;
}

#module-psy_formbuilder-form #wrapper{
    background: none;
    box-shadow: none;
    /*padding: 0;*/
    margin: 0;
}

.content-psyformbuilder{
    width: 100%;
    direction: rtl;
    margin: 20px 0;
}
.content-psyformbuilder a{
    /*color: #384047;*/
}
.content-psyformbuilder a:focus,
.content-psyformbuilder a:hover {
    text-decoration: none;
}
.content-psyformbuilder .alert p {
    margin-bottom: 0;
}

#psyformbuilder {
    background: #fff;
    width: 100%;
    margin: auto;
    padding:20px 20px 40px;
}
.content-psyformbuilder #psy-logo a {
    display: block;
    text-align: center;
    margin: 30px auto;
}

.form-header {
    margin-bottom: 50px;
}
.form-submit {
    text-align: left;
}
.btn.form-control-submit {
    font-size: 18px;
    padding: 10px 60px;
}
.form-section .field_required{
    color: red;
}

#psyformbuilder .form-control-comment {
    display: block;
}



.file-upload__box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 150px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.file-upload__box:hover {
    border-color: #007bff;
    background-color: #f7f7f7;
}

.file-upload__text {
    margin: 0;
    font-size: 16px;
    color: #666;
}

.file-upload__loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.file-upload__loading-text {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.file-upload__preview {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.file-upload__preview-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
}

.file-upload__text--default,
.file-upload__loading,
.file-upload__preview {
    display: none;
}

.file-upload__text--default.active {
    display: block;
}

.file-upload__text--default.error {
    color: red;
}

.file-upload__loading.active,
.file-upload__preview.active {
    display: flex;
    align-items: center;
    justify-content: center;
}


.file-upload__loading:after {
    content: '';
    display: block;
    width: 30px;
    height: 30px;
    margin: 10px auto;
    border: 4px solid #ccc;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}



/* mobile */
@media (max-width: 575px) {
    #module-psy_formbuilder-form .container,
    #module-psy_paymenthelper-validation .container{
        padding-top: 0;
        margin-top: 0;
    }
    .content-psyformbuilder{
        margin: 0;
    }
    #psyformbuilder{
        background: transparent;
        width: 100%;
        max-width: 100%;
        margin:0;
        box-shadow: none;
        border-radius: 0;
    }
}