/*
   # ------------------------------------------------------------------------
   # Extensions for Joomla 3.x
   # ------------------------------------------------------------------------
   # Copyright (C) 2015 anplus.ru. All Rights Reserved.
   # @license - PHP files are GNU/GPL V2.
   # Author: anplus.ru
   # Websites:  http://anplus.ru
   # Date modified: 15/07/2021
   # ------------------------------------------------------------------------
   */



.myrecap .g-recaptcha { display: block; }

[id^=wrap-contact-form] p.success {
    margin: 0 0 5px;
    font-size: 110%;
    font-weight: bold;
    letter-spacing: -0.05px
}

[id^=wrap-contact-form] p.error {
    color: #dc0000;
    margin: 0 0 5px;
}

[id^=wrap-contact-form] .success {
    color: #0345bf;
    line-height: 1;
}

.sscf-form textarea,
.input.textarea {
    height: 200px!important;;
    margin-bottom: 20px;
    color: #555;
}

.sscf-error {
    font-family: Helvetica, Arial, sans-serif;
    display: block;
    position: absolute;
    line-height: 0;
    margin: 0;
    height: 0;
    padding: 0!important;
    font-size: 10px!important;
    z-index: 90;
    margin-top: 12px;
    right: 15px;
    color: #dc0000;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.sscf-valid-error .sscf-error
{
    opacity: 1;
}

.sscf-error.sscf-email-error
{
    opacity: 0;
}

.sscf-email-valid-error .sscf-error.sscf-email-error
{
    opacity: 1;
}

.sscf-input.error {
    border-color: #dc0000!important;
}

.sscf-form {
    font-size: 1.15em;
    position: relative;
}

.rf_notice {
    font-size:.8em;
    text-align: center;
}

.sscf-form .fl_label {
    cursor: text;
}

.sscf-header,
.sscf-footer {
    opacity: 0.8;
    margin: 10px 0 15px;
}

.sscf-footer p,
.sscf-header p {
    margin: 0;
}

.sscf-form .fl_wrap {
    height: 46px;
    margin-bottom: 10px;
    display: block;
    position: relative;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.fl_wrap_textarea {
    height: 200px!important;
}

.sscf-form .fl_label {
    top: 23px;
    font-family: Helvetica, Arial, sans-serif;
    line-height: 0;
    font-weight: normal;
    height: 0px;
    left: 14px;
    color: #8c8c8c;
    font-size: 15px;
    -webkit-transform-origin: 0px -35px 0px;
    -moz-transform-origin: 0px -35px 0px;
    transform-origin: 0px -35px 0px;

    position: absolute;
    pointer-events: none;
    z-index: 3;
    -webkit-transition: all 120ms ;
    -moz-transition: all 120ms ;
    transition: all 120ms ;
}

.sscf-form .fl_label:focus {outline: 0; border: none;}

.sscf-form .sscf-input {
    background: none;
    border: 1px solid lightgrey;
    outline: none;
    border-radius: 5px;
    font-size: 15px;
    font-family: Helvetica, Arial, sans-serif;
    font-weight: normal;
    height: 46px;
    line-height: 22px;
    padding: 20px 0 5px 14px;
    -webkit-appearance: none;
    box-shadow: none;
    width: 100%;
    position: absolute;
    top:0;left:0;right:0;bottom:0;
    width: 100%;
    z-index: 2;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.sscf-form textarea.sscf-input
{
    padding: 20px 14px 5px;
}

input:focus,
textarea:focus {
    border-color: #969696!important;
    box-shadow: none!important;
}

.sscf-form .fl_wrap.focused .fl_label,
.sscf-form .fl_wrap.populated .fl_label,
.no-js .sscf-form .fl_label {
    color: #c6c6c6;
    -webkit-transform:scale(.7,.7);
    -moz-transform:scale(.7,.7);
    transform:scale(.7,.7);
}

.sscf-form .fl_wrap.focused .fl_label {
    color: #8c8c8c;
}


.rf_submit {
    background:#3071ff;
    border-radius: 1px;
    border: none;
    color: #fff;
    font-size: 15px;
    padding: 10px 25px;
    display: block;
    margin: 20px 0 20px;
    transition: all 0.4s ease;
}
.rf_submit:hover {
    cursor:pointer;
    background:#3071ff;
}
.rf_submit:focus {
    outline:none;
    border: 1px solid #3071ff;
}

body.popup-active {
    overflow: hidden;
}

.sscf-popup {
    cursor: pointer;
    background:#0345bf;
    border-radius: 1px;
    border: none;
    color: #fff;
    font-size: 15px;
    padding: 10px 25px;
    display: block;
    transition: all 0.4s ease;
}

.sscf-popup:hover {
    cursor:pointer;
    background:#3071ff;

}

.mypopup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 99999;
}

.mypopup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    background: linear-gradient(to top, rgba(0, 0, 20, 0.85) 0%, rgba(0, 0, 10, 0.95) 100%) repeat scroll 0% 0% transparent!important;
    z-index: 999999;
    margin-top: 0px;
}

.mypopup-wrapper {
    position: relative;
    top: 50%;
    max-width: 500px;
    max-height: 85%;
    margin: auto;
    z-index: 9999999;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
}


.mypopup-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    border-bottom: 0;
    text-decoration: none;
    opacity: .6;
    transition: all 0.4s ease;
}

.mypopup-close:hover {
    opacity: 1;
}

.mypopup-close::before,
.mypopup-close::after {
    content: '';
    position: absolute;
    top: 12px;
    width: 14px;
    height: 2px;
    background-color: #8f9cb5;
}

.mypopup-close::before {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
    left: 8px;
}

.mypopup-close::after {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
    right: 8px;
}

.mypopup-content {
    height: 100%;
    background-color: #FFF;
    /*padding: 45px 30px 25px;*/
    padding: 15px 30px 25px;
    border-radius: .25em .25em .4em .4em;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    -webkit-animation: appear 0.25s ease .05s backwards;
    -moz-animation: appear 0.25s ease .05s backwards;
    margin-top: 0px;
}
.mypopup-title {
    margin-bottom: 0;
    line-height: 1.5;
    padding: 0 0 1rem 0;
}

.sscf-success-message {
    display: none;
}


@-webkit-keyframes appear{
    0%{
        margin-top: -30px;
    }
    100%{
        margin-top: 0px;
    }
}
@-moz-keyframes appear{
    0%{
        margin-top: -30px;
    }
    100%{
        margin-top: 0px;
    }
}


@media screen and (max-width: 420px) {
    span.sscf-error {display: none!important;}
}

#contact-form-captcha {
    /*transform: scale(0.63);*/
    /*transform-origin: 0 0 0;*/
    margin-bottom: 10px;
}



.before-red-form {
    max-width: 505px;
    margin-left: auto;
    color: black;
    margin-top: 10px;
    margin-bottom: 80px;
}
.before-red-form-mb60 {
    margin-bottom: 60px;
}
.before-red-form-mb25 {
    margin-bottom: 25px;
}
.red-form {
    max-width: 505px;
    background: rgba(168, 37, 130, 0.95);
    margin-left: auto;
    border-radius: 10px;
    box-shadow: 0 7px 10px rgba(24, 24, 25, 0.35);
    padding: 27px 28px 20px 28px;
    box-sizing: border-box;
}
.red-form__title-spacer {
    height: 55px;
}
.red-form__title-spacer20 {
    height: 20px;
}
.red-form__title {
    letter-spacing: -0.03em;
    font-size: 29px;
    line-height: 1.3;
    font-weight: 600;
}
.red-form__title-white {
    color: white;
}
.red-form__phone {
    display: inline-block;
    margin-top: 6px;
    text-decoration: none;
    background: rgba(168, 37, 130, 0.95);
    border-radius: 8px;
    padding: 7px 26px 7px 14px;
    letter-spacing: 0.1em;
}
.red-form__phone > * {
    display: inline-block;
    vertical-align: middle;
}
.red-form__phone .icon {
    position: relative;
    bottom: -1px;
}
.red-form__phone span {
    font-size: 30px;
    color: #ffffff;
    margin-left: 6px;
    letter-spacing: -0.01em;
}
.red-form__tocall {
    font-size: 20px;
    margin-left: 22px;
    text-transform: uppercase;
    font-weight: 600;
    position: relative;
    top: 5px;
}
.red-form__desc {
    display: block;
    font-size: 22px;
    margin-top: 15px;
    margin-bottom: 0px;
}
.red-form__desc-4 {
    font-size: 20px;
}

.red-form__fields-title {
    font-size: 15px;
    margin-top: 0px;
    opacity: 1;
    margin-bottom: 19px;
    letter-spacing: 0.0em;
}
.red-form__fields-title, .red-form__info {
    color: #ffffff;
    line-height: 1.3;
    opacity: 1;
}
.red-form__info {
    margin-top: 9px;
    font-size: 12px;
    opacity: 0.7;
    letter-spacing: 0.00em;
}
.red-form__info a {
    color: #ffffff;
    display: inline-block;
}
.red-form__info a:hover,
.red-form__info a:focus {
    color: #ffffff;
    text-decoration: underline;
}
.red-form__field {
    height: 34px;
    width: 34.29%;
    font-weight: 400;
    padding-left: 15px;
    border: 1px solid #e3eaec;
    border-radius: 4px;
    font-size: 12px;
    color: #161616;
    margin: 0 10px 0 0!important;
}
.red-form__field::placeholder {
    color: #161616;
    opacity: 1;
}
.red-form__field:-ms-input-placeholder {
    color: #161616;
}
.red-form__btn {
    width: 26.85%;
    letter-spacing: 0.03em;
    border-radius: 4px;
}


.white-btn,
.white-red-btn, .red-btn {
    cursor: pointer;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
}
.white-red-btn {
    width: 26.85%;
    height: 34px;
    border: 2px solid #ffffff;
    line-height: 29px;
    background: #a82582;
    border-radius: 6px;
    font-weight: 600;
    color: #ffffff;
    box-shadow: 0 5px 5px rgba(23, 23, 24, 0.09);
}
.white-red-btn:hover {
    background: #ffffff;
    color: #a82582;
}
.white-red-btn__blue {
    background: #2984c9;
}
.white-red-btn__blue:hover {
    background: #ffffff;
    color: #2984c9;
}
.white-red-btn__green {
    background: #27a65c;
}

.red-btn {
    height: 36px;
    line-height: 35px;
    background: #a82582;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.035em;
    font-weight: 600;
    border-radius: 5px;
    box-shadow: 0 5px 5px rgba(23, 23, 24, 0.09);
}
.red-btn:hover,
.red-btn:focus {
    background: #a82582;
    color: #ffffff;
    text-decoration: none;
}

.white-btn {
    height: 34px;
    line-height: 32px;
    border: 1px solid #be92db;
    text-align: center;
    font-size: 13px;
    font-weight: 400;
    color: #be92db;
    letter-spacing: 0.04em;
    border-radius: 6px;
    box-shadow: 0 5px 5px rgba(23, 23, 24, 0.09);
}
.white-btn:hover {
    background: #be92db;
    color: #ffffff;
    text-decoration: none;
}
.spacer {
    text-align: justify;
    font-size: 0.1px;
    margin-bottom: 0px;
}
.spacer > * {
    display: inline-block;
    vertical-align: middle;
}

[id^="modalSSC"] .md-form:has(> .form-check-input[type="checkbox"]) {
    display: flex;
    align-items: flex-start;       /* чекбокс по первой строке текста */
}
[id^="modalSSC"] .md-form > .form-check-input[type="checkbox"] {
    flex: 0 0 auto;
    float: none;
    position: static;
    margin-top: .1em !important;   /* подгонка по высоте первой строки */
}
[id^="modalSSC"] .md-form > .form-check-input[type="checkbox"] + .form-check-label {
    position: static;
    transform: none;
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    pointer-events: auto;
}