/*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: white;
    margin:0;
    /*     linear-gradient(rgba(196, 102, 0, 0.2), rgba(155, 89, 182, 0.2)),
        url(../images/gs.png); */
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    scrollbar-gutter: stable;
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;
}
/*form styles*/

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 599px) {
    .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 {max-width: 80%;}
}

/*form styles*/
#msform {
    margin: 10px auto;
    position: relative;
    max-width: 800px;
    margin: 10px auto;
}

#msform fieldset {
    background: white;
    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;
    max-width: 800px;
    margin: 0;

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

/*Hide all except first fieldset*/
#msform fieldset:not(:first-of-type) {
    display: none;
}
/*inputs*/
#msform input[type=text], #msform input[type=number], #msform input[type=date], #msform textarea {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #000;
    font-size: 14px;
}

#genderContainer {
    -webkit-appearance: none; /* отключить дефолтный вид в Safari */
    -moz-appearance: none;    /* для Firefox */
    appearance: none;         /* стандарт */
    padding: 15px;
    border: 1px solid #ccc;
    border-color: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #707171;
    font-size: 15px;
    background-image: linear-gradient(45deg, transparent 50%, #2C3E50 50%), linear-gradient(135deg, #2C3E50 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(50% - 5px), calc(100% - 15px) calc(50% - 5px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    background-color: white;
    padding-right: 30px;
}


/*buttons*/
#msform .action-button {
    width: 60%;
    background: black;
    transition: all 0.2s ease-in-out;
    font-weight: bold;
    font-size: 14px;
    color: white;
    border: 0 none;
    border-radius: 1px;
    cursor: pointer;
    padding: 15px;
    border-radius: 5px;
    margin: 20px;
    -webkit-appearance: none;
    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;
    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.2;
}
/*headings*/
.fs-title {
    font-size: 15px;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 10px;
}
.fs-subtitle {
    font-weight: normal;
    font-size: 14px;
    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: 20px;
    height: 20px;
    margin: 10px;
    position: relative;
    top: 3px;
    overflow: hidden;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
.chkLabel {
    display: block;
    padding-left: 35px;
    text-indent: -40px;
    text-align: left;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: normal;
    font-size: 14px;
    /*  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: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 18px;
    color: #666;
}
.oferta {
    height: 200px;
}
.success {
    height: 300px;
}
.sms {
    height: 120px;
    overflow-y: hidden;
}
p {
    margin-top: 10px;
}
.logo {
    width: 60%;
    margin: 0 auto 0 auto;
    height: 80px;
    background-image: url(../images/logo.svg);
    background-size: contain;
    background-repeat:no-repeat;
    background-position: center;
}

.logo-bottom {
    width: 60%;
    margin: 0 auto 20px auto;
    height: 80px;
    background-image: url(../images/logo-bottom.png);
    background-size: contain;
    background-repeat:no-repeat;
    background-position: center;
}



.error-msg {
    color: red;
}
.input-error {
    border: 1px solid #f342b6 !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%;
}

 /* --- SMS code block styling --- */

.sms-verification-button {
    background-color: #000;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
    vertical-align: middle;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    border-radius: 4px;
    padding: 20px !important;
    font-size: 13px !important;
    color: #ffffff;
    width: 50% !important;
    margin: 20px 0 5px auto !important;
    line-height: 22px;
    cursor: pointer;
}

.sms-verification-field::placeholder {
    color: #707171;
    font-size: 14px;
    font-weight: 400;
}

.sms-verification-field {
    width:45% !important;
    transition: all 0.2s ease-in-out;
    padding: 16px !important;
    margin: 20px auto 5px 0 !important;
    font-size: 25px !important;
    font-weight: 600;
    line-height: 22px;
    text-align: center;
}

.sms-verification-field::-webkit-outer-spin-button,
.sms-verification-field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sms-verification-field {
    -moz-appearance: textfield;
}

#smsBlock {
    display: flex;
    align-items: center;
    gap: 5%;
}

#smsBlock input[type="submit"],
#smsBlock input[type="number"] {
    flex: none;
}

.title, .site {
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
}

#msform #sendform {
    width:100%;
    margin: 20px auto;
    padding: 20px;
    font-size: 16px;
    line-height: 22px;
}

/* modal for confidential rules */
#pageContent {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
}

.content-wrapper {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center; /* если хочешь, чтобы контент был по центру по вертикали */
    align-items: center;
}

  
#offerModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#offerModalContent {
    background: white;
    padding: 20px;
    border-radius: 5px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh; /* добавляем ограничение по высоте */
    overflow-y: auto; /* включаем вертикальную прокрутку */
    position: relative;
}

#closeOfferModal {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 48px;
    font-weight: bold;
    cursor: pointer;
}

.offer-button {
    background-color: #000;
    text-align: center;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
    display: block;
    text-decoration: none;
    text-align: center;
    border-radius: 4px;
    padding: 20px !important;
    font-size: 13px !important;
    color: #ffffff;
    width: 60% !important;
    margin: 20px auto 20px;
    line-height: 22px;
    cursor: pointer;
}

ul li::marker {
    font-size: 1.2em;
}
/* Стили для футера */
.footer-background {
    margin-top: auto;
    background-color: #2B2B2B;
    display: flex;
    justify-content: center;
}

#footerContainer {
    flex-shrink: 0;
}

.footer {
    display: flex;
    flex-direction: column;
    justify-items: center;
    justify-content: center;
    justify-self: center;
    max-width: 800px;
    color: #888888;
    width: 100%;
}

.footer a {
    text-decoration: none;
    color: #fff;
}

footer a:hover {
    cursor: pointer !important;
    text-decoration: underline;
}

.footer-paragraph {
    font-size: 18px;
    text-decoration: none;
    padding: 10px 25px;
}

.footer-details {
    font-size: 14px;
    text-decoration: none;
    padding: 10px 25px;
    -webkit-appearance: none; /* отключить дефолтный вид в Safari */
    -moz-appearance: none;    /* для Firefox */
    appearance: none; 
}

/* input modifications */

input::placeholder, textarea::placeholder {
    color: #707171;
}

.site {
    padding:5px;
    margin-top: 0;
    text-align: center;
}

@media only screen and (max-width: 800px) {
    .site {margin-top: -10px;}
}

.field-hint {
    font-family: Arial, Helvetica, sans-serif;
    text-align: left !important;
    color: gray;
    font-size: 11px;
    margin: -5px 0px 15px 0px;
}