/* EPI FORM RADIO STYLING */

.EPiServerForms {
    max-width: 740px;
    margin: 20px auto;
    color: #666;
    font-family: open sans,sans-serif;
    line-height: 1.5;
    padding: 1.5rem 1.25rem;
    background-color: #f1f0ef;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgb(0 0 0 / 12%), 0 1px 2px rgb(0 0 0 / 24%);
}

.EPiServerForms .Form__Element {;
    margin: 0 0 15px 0 !important;
}

/* TEXT AND HEADER STYLES */

.EPiServerForms h2.Form__Title,
.EPiServerForms .FormParagraphText.Form__Element--NonData h3,
.EPiServerForms .Form__Status__Message.Form__Success__Message h3 {
    color: #013b5b;
}

.EPiServerForms h2.Form__Title {
    padding: 0 0 15px;
    font-size: 30px;
    font-size: 1.875rem;
    line-height: 1;
    font-weight: 700;
}

.EPiServerForms h3.FormStep__Title {
    color: #fff !important;
    padding: 5px 10px;
    text-transform: uppercase;
    background-color: #7a9a01;
}

.EPiServerForms .Form__Element.FormParagraphText.Form__Element--NonData {
    clear: both;
    margin-bottom: 5px !important;
}

.EPiServerForms .Form__Element.FormParagraphText.Form__Element--NonData h3 {
    border-bottom: 5px solid #7a9a01;
    padding: 0;
}

.EPiServerForms .Form__Element.FormParagraphText.Form__Element--NonData h3, 
.EPiServerForms h3.FormStep__Title,
.EPiServerForms .Form__Status__Message.Form__Success__Message h3 {
    font-size: 1.5em;
    line-height: 1.4;
    margin-bottom: 5px;
}

.EPiServerForms .Form__Element__Caption,
.EPiServerForms .Form__Description,
.EPiServerForms .FormStep__Description,
.EPiServerForms label,
.EPiServerForms p {
    font-size: .875rem !important;
}

.EPiServerForms .Form__Element label.Form__Element__Caption,
.EPiServerForms .Form__Element legend.Form__Element__Caption,
.EPiServerForms input, 
.EPiServerForms select, 
.EPiServerForms textarea,
.EPiServerForms .Form__Status .Form__Status__Message.Form__Success__Message {
     color: #666;
}

.EPiServerForms .Form__Element__Caption {
    font-weight: 600;
    margin-bottom: 5px !important;
    line-height: 1.3;
    display: block !important;
}

.EPiServerForms .Form__Element.FormParagraphText.Form__Element--NonData p:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.EPiServerForms .Form__Element.FormParagraphText a,
.EPiServerForms .Form__Status__Message.Form__Success__Message a {
    text-decoration: none !important;
    font-weight: bold;
}

.EPiServerForms .Form__Element .Form__Element__ValidationError {
    font-size: 12px;
    font-weight: 400;
    padding-top: 3px;
}

/* INPUT BOX STYLES */

.EPiServerForms select, 
.EPiServerForms .FormTextbox__Input, 
.EPiServerForms input[type=text], 
.EPiServerForms input[type=url], 
.EPiServerForms textarea,
.EPiServerForms .Form__Element.FormChoice fieldset label,
.EPiServerForms .FormFileUpload__Input,
.EPiServerForms .FormDateTime .FormDateTime__Input,
.EPiServerForms .Form__Element.FormRange span:not(.FormRange__Max):not(.FormRange__Min) {
    padding: 10px 8px;
    font-size: .875rem !important;
    border-radius: 5px;
    border: none;
    background: #fff;
    width: 97%;
    box-shadow: 0 3px 2px rgb(122 154 1 / 35%);
}

.EPiServerForms .Form__Element.FormRange span:not(.FormRange__Max):not(.FormRange__Min) {
    display: block;
}

.EPiServerForms .FormRange .FormRange__Input {
    max-width: none !important;
    width: 80%;
}

.EPiServerForms .FormDateTime .FormDateTime__Input {
    width: 97% !important;
}

.EPiServerForms fieldset.Form__Element.Form__CustomElement.FormDateTimeRange {
     margin-bottom: 5px !important;
}

.EPiServerForms fieldset.Form__Element.Form__CustomElement.FormDateTimeRange input {
    margin-bottom: 11px;
}

.Form__Element.FormSelection {
    min-height: 64.2px !important;
}

/* RADIO/CHECK BOX SELECTION STYLES */

.EPiServerForms fieldset label {
    margin: 0 10px 5px 0;
    width: initial !important;
    float: left;
    line-height: 1.15rem !important;
    padding-right: 20px !important;
}

.EPiServerForms fieldset label:last-child {
    margin-right: 0 !important;
}

.EPiServerForms fieldset { 
    border: 0;
    padding: 0 !important;
    margin-left: 0;
}

.EPiServerForms fieldset input[type="checkbox"], 
.EPiServerForms fieldset input[type="radio"] {
    margin: 3px;
}

.EPiServerForms .Form__Element .FormChoice {
     margin-bottom: 10px !important;
}

/*HALF-WIDTH STYLES */

.EPiServerForms select, 
.EPiServerForms .FormCaptcha .FormTextbox__Input, 
.EPiServerForms input[type=text], 
.EPiServerForms input[type=url], 
.EPiServerForms textarea {
    max-width: none !important;
}

.EPiServerForms .FormFileUpload__Input, 
.EPiServerForms .Form__Element.FormTextbox.FormTextbox--Textarea{
    width: 100% !important;
}

.EPiServerForms .Form__Element.FormTextbox, 
.EPiServerForms fieldset.Form__Element.FormDateTimeRange,
.EPiServerForms .FormSelection,
.EPiServerForms .Form__Element.Form__CustomElement.FormDateTime {
     width: 50%;
     float: left;
     padding: 0 !important;
     margin-bottom: 15px !important;
}

@media screen and (max-width: 500px) {
    .EPiServerForms .Form__Element.FormTextbox,
    .EPiServerForms .Form__Element.FormChoice, 
    .EPiServerForms .Form__Element.FormSelection,
    .EPiServerForms fieldset.Form__Element.Form__CustomElement.FormDateTimeRange,
    .EPiServerForms .Form__Element.Form__CustomElement.FormDateTime {
        width: initial !important;
        float: none !important;
     }

    .EPiServerForms select, 
    .EPiServerForms .FormTextbox__Input, 
    .EPiServerForms input[type=text], 
    .EPiServerForms input[type=url], 
    .EPiServerForms textarea,
    .EPiServerForms .Form__Element.FormChoice fieldset label,
    .EPiServerForms .FormFileUpload__Input,
    .EPiServerForms .Form__Element.Form__CustomElement.FormDateTime {
        width: 100%;
    }

    .EPiServerForms .Form__Element,
    .EPiServerForms .Form__Element.FormTextbox, 
    .EPiServerForms fieldset.Form__Element.FormDateTimeRange,
    .EPiServerForms .Form__Element.Form__CustomElement.FormDateTime {
        margin-bottom: 10px !important;
    }
}

/* FORM STEP STATUS BAR */

.EPiServerForms nav.Form__NavigationBar {
    display: flex;
    flex-wrap: wrap;
    clear: both;
    padding-top: 10px;
}

.EPiServerForms .Form__NavigationBar .Form__NavigationBar__Action.FormExcludeDataRebind.btnPrev {
    order: 1;
    color: #fff !important;
    background-image: none;
    padding: 0;
}

.EPiServerForms .Form__NavigationBar .Form__NavigationBar__Action.FormExcludeDataRebind.btnNext {
    order: 2;
    color: #fff !important;
    margin-left: auto !important;
    background-image: none;
    padding: 0;
}

.EPiServerForms .Form__NavigationBar .Form__NavigationBar__ProgressBar {
    order: -1;
    width: 100% !important;
    border: 3px solid #7a9a01 !important;
}

.EPiServerForms .Form__NavigationBar .Form__NavigationBar__ProgressBar .Form__NavigationBar__ProgressBar--Progress {
    background-color: rgb(122 154 1 / 70%) !important;
}

@media (max-width: 420px) {
    .EPiServerForms .Form__NavigationBar .Form__NavigationBar__Action.FormExcludeDataRebind.btnPrev, 
    .EPiServerForms .Form__NavigationBar .Form__NavigationBar__Action.FormExcludeDataRebind.btnNext {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* SUBMIT BUTTON */

.EPiServerForms button[type="submit"] {
    display: block;
    background-color: #7a9a01;
    color: #fff;
    padding: 6px 15px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    border: none !important;
    border-radius: 4px;
    margin-top: 20px !important;
    -webkit-appearance: button;
    cursor: pointer;
    line-height: initial !important;
    height: 2em !important;
    text-transform: none !important;
    width: 100%;
    max-width: 175px;
    font-weight: bold;

}

.EPiServerForms button[type="submit"]:hover {
    background-color: #23527c !important;
}


/* SUCCESS MESSAGE BOX */

.EPiServerForms .Form__Status .Form__Status__Message.Form__Success__Message {
    display: block !important;
    background-color: transparent !important;
    color: #666;
    padding: 1rem 1rem 0 !important;
    margin: 0;
}

.EPiServerForms .Form__Status .Form__Status__Message {
   display: none !important;
}