/*custom font*/
/* @import url(https://fonts.googleapis.com/css?family=Montserrat); */

/*basic reset*/
* {margin: 0; padding: 0;}

html {
    height: 100%;
    /*Image only BG fallback*/
    /* background: url(../images/gs.png); */
    /*background = gradient + image pattern combo*/
    background: #44307b;
    /*     linear-gradient(rgba(196, 102, 0, 0.2), rgba(155, 89, 182, 0.2)),
        url(../images/gs.png); */
}

body {
    font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
}
/*form styles*/
a {
    color: white; /* Цвет текста */
   }
/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    .form-width {width: 100%;}
}
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    .form-width {width: 80%;}
}
/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    .form-width {width: 50%;}
}

/*form styles*/
#msform {
    margin: 10px auto;
    position: relative;
    text-align: center;
}

#msform fieldset {
    background: #44307b;
    border: 0 none;
    border-radius: 3px;
    box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.4);
    padding: 20px 30px;

    box-sizing: border-box;
    width: 80%;
    margin: 0 10%;

    /*stacking fieldsets above each other*/
    position: absolute;
}

/*Hide all except first fieldset*/
#msform fieldset:not(:first-of-type) {
    display: none;
}
/*inputs*/
#msform input[type=text], #msform input[type=number], #msform textarea {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
    font-family: montserrat, serif;
    color: #ffffff; /* Белый цвет текста всегда */
    font-size: 13px;
    background: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

/* При фокусе делаем фон более светлым */
#msform input[type=text]:focus,
#msform input[type=number]:focus,
#msform textarea:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: #9b59b6;
    outline: none;
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.3);
}

/* Если поле помечено как ошибка (фиолетовое), текст остается белым */
#msform input[type=text].input-error,
#msform input[type=number].input-error,
#msform textarea.input-error {
    color: #ffffff !important; /* Принудительно белый текст */
    background: rgba(155, 89, 182, 0.3); /* Полупрозрачный фиолетовый фон */
    border-color: #9b59b6;
}

/* Плейсхолдер всегда светлый и читаемый */
#msform input[type=text]::placeholder,
#msform input[type=number]::placeholder,
#msform textarea::placeholder {
    color: rgba(255, 255, 255, 0.8);
    opacity: 1;
    font-weight: 400;
}

/* Для браузеров с префиксами */
#msform input[type=text]::-webkit-input-placeholder,
#msform input[type=number]::-webkit-input-placeholder,
#msform textarea::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.8);
    opacity: 1;
    font-weight: 400;
}

#msform input[type=text]:-moz-placeholder,
#msform input[type=number]:-moz-placeholder,
#msform textarea:-moz-placeholder {
    color: rgba(255, 255, 255, 0.8);
    opacity: 1;
    font-weight: 400;
}

#msform input[type=text]::-moz-placeholder,
#msform input[type=number]::-moz-placeholder,
#msform textarea::-moz-placeholder {
    color: rgba(255, 255, 255, 0.8);
    opacity: 1;
    font-weight: 400;
}

#msform input[type=text]:-ms-input-placeholder,
#msform input[type=number]:-ms-input-placeholder,
#msform textarea:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.8);
    opacity: 1;
    font-weight: 400;
}

/*buttons*/
#msform .action-button {
    width: 100px;
    background: black;
    font-weight: bold;
    font-size: 14px;
    color: white;
    border: 0 none;
    border-radius: 1px;
    cursor: pointer;
    padding: 10px 5px;
    margin: 15px 5px;
    -webkit-appearance: none;
}
.close-oferta-button {
    width: 100px;
    background: black;
    font-weight: bold;
    font-size: 14px;
    color: white;
    border: 0 none;
    border-radius: 1px;
    cursor: pointer;
    padding: 10px 5px;
    margin-left: 30%;
    -webkit-appearance: none;
}
#msform .action-button:hover, #msform .action-button:focus {
    box-shadow: 0 0 0 2px white, 0 0 0 3px #27AE60;
}
#msform .action-button:disabled {
    opacity: 0.33;
}
/*headings*/
.fs-title {
    font-size: 15px;
    text-transform: uppercase;
    color: #2C3E50;
    margin-bottom: 10px;
}
.fs-subtitle {
    font-weight: normal;
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}
/*progressbar*/
#progressbar {
    margin-bottom: 20px;
    overflow: hidden;
    /*CSS counters to number the steps*/
    counter-reset: step;
}
#progressbar li {
    list-style-type: none;
    color: white;
    text-transform: uppercase;
    font-size: 9px;
    width: 33.33%;
    float: left;
    position: relative;
}
#progressbar li:before {
    content: counter(step);
    counter-increment: step;
    width: 20px;
    line-height: 20px;
    display: block;
    font-size: 10px;
    color: #333;
    background: white;
    border-radius: 3px;
    margin: 0 auto 5px auto;
}
/*progressbar connectors*/
#progressbar li:after {
    content: '';
    width: 100%;
    height: 2px;
    background: white;
    position: absolute;
    left: -50%;
    top: 9px;
    z-index: -1; /*put it behind the numbers*/
}
#progressbar li:first-child:after {
    /*connector not needed before the first step*/
    content: none;
}
/*marking active/completed steps green*/
/*The number of the step and the connector before it = green*/
#progressbar li.active:before,  #progressbar li.active:after{
    background: #27AE60;
    color: white;
}
.next {}
.previous {}
.submit {}
.chkBox {
    width: 16px;
    height: 16px;
    margin: 5px 5px 5px 5px;
    position: relative;
    top: 3px;
    *overflow: hidden;
}
.chkLabel {
    display: block;
    padding-left: 15px;
    text-indent: -15px;
    text-align: left;
    font-weight: normal;
    font-size: 15px;
    /*  original value 13px */
    color: #666;
}
.text-info {
    overflow-y: scroll; /* has to be scroll, not auto */
    -webkit-overflow-scrolling: touch;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 15px;
    padding: 10px;
    text-align: justify;
    font-weight: normal;
    font-family: montserrat, serif;
    font-size: 13px;
    color: #666;
}
.oferta {
    height: 200px;
}
.success {
    height: 300px;
}
.sms {
    height: 120px;
    overflow-y: hidden;
}
p {
    margin-top: 10px;
}
.logo {
    width: 50%;
    height: 80px;
    margin: auto;
    background-image: url(../images/logo.png);
    background-size: contain;
    background-repeat:no-repeat;
    background-position: center;
}
.error-msg {
    color: red;
}
.input-error {
    background-color: rgba(155, 89, 182, 0.3) !important; /* Полупрозрачный фиолетовый фон */
    border-color: #9b59b6 !important;
    color: #ffffff !important; /* Текст всегда белый */
}

/* Дополнительно для селектов с ошибкой */
select.input-error {
    background-color: rgba(155, 89, 182, 0.3) !important;
    border-color: #9b59b6 !important;
    color: #ffffff !important;
}

input[type='radio'] {
    transform: scale(2);
    margin-right: 1em;
    margin-bottom: 0.5em;
}
.warning {
    font-size: small;
    color: red;
}
.selectBlock {
	margin-bottom: 10px;
	border: 1px solid #ccc;
	border-radius: 5px;
	padding-bottom: 10px;
	padding-top: 10px;

}
.selectBlock label {
	display: block;
	margin-bottom: 5px;
	font-weight: normal;
    font-size: 13px;
    color: #666;
}
.selectBlock select {
	width: 70%;
}
/* radio styles */
label {
    display: block;
}
.floatBlock {
    margin: 0 1.8em 0 0.5em;
}
.genderOptions {
    border: none;
    margin: auto;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    font-size: 0.9em;
    /* margin: 1em 0 2em 1em; */
}

/* Белый текст для выбора пола */
.genderOptions label {
    font-size: 95%;
    color: #ffffff !important; /* Белый текст для меток пола */
}

/* Если используется radio input с текстом рядом */
.genderOptions input[type="radio"] + label {
    color: #ffffff !important;
}

/* Для текста внутри .genderOptions */
.genderOptions span,
.genderOptions .radio-label {
    color: #ffffff !important;
}

/* Белый текст для всех серых элементов */
.text-info,
.chkLabel,
.selectBlock label,
.fs-subtitle,
p:not(.warning),
.sms p,
.oferta p,
.success p {
    color: #ffffff !important;
}

/* Для текста в .text-info делаем белым и меняем рамку */
.text-info {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Для ссылок внутри текста */
.text-info a,
.oferta a,
.sms a,
.success a {
    color: #8e44ad !important;
    text-decoration: underline;
}

.text-info a:hover,
.oferta a:hover,
.sms a:hover,
.success a:hover {
    color: #9b59b6 !important;
}