﻿
.wsCtForm
{
    position: relative;
    min-height: -webkit-calc(100% - 10px);
    min-height: -moz-calc(100% - 10px);
    min-height: calc(100% - 10px);
    min-width: -webkit-calc(100% - 10px);
    min-width: -moz-calc(100% - 10px);
    min-width: calc(100% - 10px);
    padding: 5px;
}

.wsCtForm textarea
{
    resize: none;
    height: 100px;
}

.wsCtForm .wsInputWrapper
{
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.wsCtForm .wsInputWrapper input[type=text],
.wsCtForm .wsInputWrapper textarea,
.wsCtForm .wsInputWrapper select,
.wsCtForm .wsInputFileWrapper
{
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border: 1px solid #777;
    padding: 12px 15px;
    font-size: 16px;
    width: 100%;
    border-radius: 0px;
    font-family: arial;
}

.wsCtForm .wsDatePickerWrapper
{
    display: inline-block;
    position: relative;
    width: 100%;
}

.wsCtForm .wsDatePickerWrapper input[type=text]
{
    padding-right: 32px;
}

.wsCtForm .wsDatePickerWrapper::after
{
    content: '';
    background-image: url(file/app/1/editor/icon/form/field/date.svg?color1=r51g51b51);
    background-size: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    cursor: pointer;
    position: absolute;
    right: 6px;
    top: 4px;
    width: 24px;
    height: 24px;
}

.wsCtForm .wsInputWrapper.wsColumns2
{
    -moz-column-count: 2;
    -webkit-column-count: 2;
    column-count: 2;
    max-width: 400px;
}

.wsCtForm .wsInputWrapper.wsColumns3
{
    -moz-column-count: 3;
    -webkit-column-count: 3;
    column-count: 3;
    max-width: 600px;
}

.wsCtForm .wsInputWrapper.wsColumns2 > div,
.wsCtForm .wsInputWrapper.wsColumns3 > div
{
    overflow: hidden;
    -ms-text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wsCtForm .wsField
{
    margin-bottom: 20px;
    line-height: 1;
}

.wsCtForm .wsField > span
{
    display: inline-block;
    cursor: default;
}

.wsCtForm .wsField.wsHide
{
    display: none;
}

.wsCtForm .wsField > span [name=FormTitle],
.wsCtForm .wsField > span [name=ButtonTitle],
.wsCtForm .wsField > span [name=TitlePosition]
{
    display: inline-block !important;
}

.wsCtForm .wsField:not(.wsRequired) > span:after,
.wsCtForm .wsField:not(.wsRequired) > label:after,
.wsCtForm label:not(.wsRequired):after
{
    margin-left: 5px;
    position: relative;
    font-size: 0.8em;
    font-style: italic;
}

.wsCtForm .wsFieldOption > label:not(.wsRequired):after
{
    content: '';
}

.wsCtForm .wsField.wsError > span,
.wsCtForm .wsField.wsError label.wsRequired
{
    color: #ef2626;
}

.wsCtForm .wsField.wsError input,
.wsCtForm .wsField.wsError textarea,
.wsCtForm .wsField.wsError select
{
    border-color: #ef2626;
}

.wsCtForm .wsField .wsErrorMessage
{
    visibility: hidden;
    height: 20px;
}

.wsCtForm .wsField.wsError .wsErrorMessage:not(:empty)
{
    visibility: visible;
    color: #ef2626;
    font-size: 80%;
}

.wsCtForm.wsTitleLeft .wsField
{
    display: flex;
}

.wsCtForm.wsTitleLeft .wsField > span
{
    width: 30%;
    max-width: 150px;
    text-align: right;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    flex-grow: 0;
}

.wsCtForm.wsTitleLeft .wsField .wsInputWrapper
{
    display: block;
    padding-left: 15px;
    position: relative;
    flex-grow: 1;
}

.wsCtForm.wsTitleLeft .wsField > span,
.wsCtForm.wsTitleLeft .wsField .wsInputWrapper:before
{
    line-height: 33px;
}

.wsCtForm.wsTitleLeft .wsField .wsInputWrapperSingle
{
    text-align: center;
}

.wsCtForm .wsField .wsInputWrapperSingle
{
    text-align: left;
}

.wsCtForm .wsField .wsInputWrapperSingle > label
{
    margin-left: 5px;
}

.wsCtForm.wsTitleLeft .wsField .wsInputWrapper:before
{
    content: ":";
    position: absolute;
    left: 5px;
    vertical-align: top;
}

.wsCtForm.wsTitleLeft .wsField > span,
.wsCtForm.wsTitleLeft .wsField > .wsInputWrapper
{
    vertical-align: middle;
}

.wsCtForm.wsTitleLeft .wsField > .wsInputWrapper.wsNotAlignable
{
    vertical-align: top;
}

.wsCtForm.wsTitleTop .wsField > span
{
    display: block;
    margin-bottom: 10px;
}

.wsCtForm.wsTitleIn .wsField > span.wsRemovable
{
    display: none;
}

.wsCtForm.wsTitleIn .wsField.wsRequired > span.wsRemovable + .wsInputWrapper
{
    position: relative;
    padding-right: 10px;
}

.wsCtForm.wsTitleIn .wsField.wsRequired > span.wsRemovable + .wsInputWrapper:after
{
    content: "*";
    color: #ef2626;
    position: absolute;
    top: -2px;
    margin-left: 3px;
}

.wsCtForm .wsCaptcha
{
    width: 220px;
    padding: 10px;
    background-color: #eeeeee;
    border: solid 1px #e1e1e1;
    margin-top: 20px;
    border-radius: 0px;
    text-align: center;
}

.wsCtForm.wsTitleLeft .wsCaptcha
{
    margin-left: 15px;
}

.wsCtForm .wsCaptchaLeft
{
    display: none;
}

.wsCtForm.wsTitleLeft .wsCaptchaLeft
{
    display: block;
    width: 30%;
    max-width: 150px;
    height: 1em;
}

.wsCtForm .wsCaptcha *
{
    vertical-align: middle;
}

    .wsCtForm .wsCaptcha .wsImageContainer {
        background-color: #ffffff;
        padding-left: 0px;
        padding-top: 5px;
        width: 160px;
        height: 35px;
        border: solid thin #e1e1e1;
        margin-bottom: 10px;
    }

.wsCtForm .wsCaptcha .wsImageContainer img
{
    width: 150px;
    height: 30px;
}

    .wsCtForm .wsCaptcha input[type="text"] {
        width: 160px;
        height: 26px;
        border: 1px solid #e1e1e1;
        font-size: 14px;
        padding: 4px 8px;
        border-radius: 0px;
    }

.wsCtForm .wsCaptcha input[type="image"]
{
    width: 30px;
    height: 30px;
    margin-left: 8px;
}

.wsCtForm .wsError .wsCaptcha input[type="text"]
{
    border-color: #ef2626;
}

.wsCtForm .wsError .wsCaptcha input[type="text"]::-webkit-input-placeholder
{
    color: #ef2626;
}

.wsCtForm .wsError .wsCaptcha input[type="text"]::-moz-placeholder
{
    color: #ef2626;
}

.wsCtForm .wsError .wsCaptcha input[type="text"]:-ms-input-placeholder
{
    color: #ef2626;
}

.wsCtForm .wsError .wsCaptcha input[type="text"]:-moz-placeholder
{
    color: #ef2626;
}

.wsCtForm .wsFormConfirm
{
    text-align: center;
}

.wsCtForm .wsTitleField
{
    margin: 30px 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #000;
    font-size: 120%;
}

.wsCtForm .wsFieldOption
{
    font-size: 90%;
}

.wsCtForm .wsFieldOption > *
{
    vertical-align: middle;
}

.wsCtForm input[type="button"],
.wsCtForm input[type="image"]
{
    cursor: pointer;
}

.wsCtForm input[type="button"]
{
    background-color: #0bafc2;
    margin: 8px 0;
    padding: 13px 30px;
    border: none;
    font-size: 16px;
    border-radius: 0px;
    vertical-align: middle;
    letter-spacing: .5px;
}

.wsCtForm input[type="button"]:hover
{
    background-color: #23c4d6;
}

.wsCtForm.wsDisabled input[type="button"][action="sendForm"]
{
    opacity: 0.5;
}

.wsCtForm.wsDisabled input[type="button"][action="sendForm"]:hover
{
    background-color: #0bafc2;
    opacity: 0.5;
}

.wsCtForm .wsFile
{
    display: flex;
    align-items: center;
}

.wsCtForm .wsFile .wsPreview
{
    width: 30px;
    height: 30px;
    flex-grow: 0;
    background-color: #fff;
    background-image: url("/file/app/1/editor/icon/file.svg?color1=r0g0b0");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.wsCtForm .wsFile span
{
    max-width: 190px;
    margin: 0 10px;
    white-space: nowrap;
    -ms-text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    overflow: hidden;
}

.wsCtForm .wsFile .wsProgress
{
    flex-grow: 1;
    padding: 19px 10px;
}

.wsCtForm .wsFile .wsProgress .wsProgressBarContainer
{
    height: 12px;
    width: 100%;
    background: #F1F1F1; /* TODO arrière plan des champs */
}

.wsCtForm .wsFile .wsProgress .wsProgressBarFiller
{
    height: 100%;
    background: #333;
    -moz-transition: width 0.2s;
    -o-transition: width 0.2s;
    -webkit-transition: width 0.2s;
    transition: width 0.2s;
}

.wsCtForm .wsLoadingWrapper
{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    -ms-flex-direction: column;
    -webkit-flex-direction: column;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 0;
    display: flex;
    display: -webkit-flex;
    background-color: rgba(0,0,0,0.7);
}

.wsCtForm .wsLoadingWrapper .wsLoadingSpinner
{
    font-size: 6px;
    border-left-color: #0bafc2;
    margin: 6em auto;
    position: relative;
    text-indent: -9999em;
    border-top: 1.1em solid rgba(255, 255, 255, 0.2);
    border-right: 1.1em solid rgba(255, 255, 255, 0.2);
    border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);
    border-left: 1.1em solid #ffffff;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation: load8 1.1s infinite linear;
    -moz-animation: load8 1.1s infinite linear;
    -o-animation: load8 1.1s infinite linear;
    animation: load8 1.1s infinite linear;
}

.wsCtForm .wsLoadingWrapper .wsLoadingSpinner,
.wsCtForm .wsLoadingWrapper .wsLoadingSpinner:after
{
    border-radius: 50%;
    width: 10em;
    height: 10em;
    outline: 1px solid transparent;
}

.wsCtForm .wsLoadingWrapper .wsLoadingText
{
    font-size: 20px;
    color: #fff;
}

.wsCtForm .wsInputFileWrapper
{
    width: 100%;
    height: 50px;
    line-height: 50px;
    position: relative;
    border-radius: 3px;
    text-align: center;
    background: white;
    font-size: 0.8em;
    padding: 0;
}

.wsCtForm .wsInputFileWrapper .wsInputFileLink
{
    margin-right: 5px;
    text-decoration: underline;
}

.wsCtForm .wsInputFileWrapper a.deleteBtn,
.wsCtForm .wsInputFileWrapper a.deleteBtn:link,
.wsCtForm .wsInputFileWrapper a.deleteBtn:visited,
.wsCtForm .wsInputFileWrapper a.deleteBtn:hover,
.wsCtForm .wsInputFileWrapper a.deleteBtn:active
{
    text-decoration: none;
    color: inherit;
    text-decoration: none;
    color: inherit;
    transform: rotate(45deg);
    font-size: 24px;
}

.wsCtForm .wsInputFileWrapper input[type=button]
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
}

.wsCtForm .wsInputFileWrapper.uploading,
.wsCtForm .wsInputFileWrapper.completed
{
    background: none;
    border: 0;
}

.wsCtForm .wsInputFileWrapper.uploading .wsInputFileElement,
.wsCtForm .wsInputFileWrapper.completed .wsInputFileElement
{
    display: none;
}

.wsCtForm .wsInputFileElement
{
    line-height: 24px;
    vertical-align: middle;
}

.wsCtForm .wsInputFileWrapper .wsInputFileIcon
{
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 10px;
    background: url(/file/app/1/Content/Icon/Upload.svg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
}

/*Message*/
.wsFormMessageWrapper {
    position: fixed;
    display: flex;
    display: -webkit-flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    background-color: rgba(0,0,0,0.7);
    height: 100%;
    width: 100%;
    top: 0;
}

.wsFormMessageWrapper > div 
{
    padding: 50px;
    display: flex;
    font-family: Arial;
	height: 66%;
	width:75%;
	max-width: 600px;
	max-height: 800px;
}

.wsFormMessageWrapper > div > .wsClose {
    margin: 8px 0;
    padding: 15px 25px;
    border: none;
    border-radius: 3px;
    vertical-align: middle;
    cursor: pointer;
    background-color: #ddd;
    margin-top: 20px;
    text-transform: uppercase;
    color: #000;
	height:20px;
	width:30px;
}

.wsFormMessageText {
	background-color: #fff;
	text-align: left;
    overflow-y: scroll;
}

.wsCtForm .privacyPolicyWrapper {
    position: relative;
}

.wsCtForm .wsInputWrapper.wsPrivacyPolicy {
    padding-left: 24px;
    position: relative;
    font-size: 0.875em;
}

.wsCtForm .wsInputWrapper.wsPrivacyPolicy input[type=checkbox] {
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
}

.wsCtForm .wsInputWrapper.wsPrivacyPolicy p {
    margin: 0;
}