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

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

html {
    height: 100%;
    background-color: #ffc5c6;
    /*Image only BG fallback*/
    /*background: url(../images/gs.png); */
    /*background = gradient + image pattern combo*/
    /*background:
        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*/
#msform {
    width: 400px;
    margin: 20px auto;
    text-align: center;
    position: relative;
}
#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;
    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: Lato, arial, montserrat, serif;
    color: #2C3E50;
    font-size: 13px;
}
/*buttons*/
#msform .action-button {
    width: 100px;
    background:  #ec343c;
    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;
}
#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: #ec343c;
    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: 100px;
}
p {
    margin-top: 10px;
}
.logo {
    width: 60px;
    height: 46px;
    background-image: url(../images/logo.png);
    background-size: contain;
    background-repeat:no-repeat;
    position: absolute;
    top: 5px;
    left: 5px;
}
.error-msg {
    color: red;
}
.input-error {
    background-color: rgba(255,0,0,0.1);
}
.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%;
}

/* ===== Обязательные согласия и просмотр документов ===== */
.consents {
    margin: 5px 0 10px;
    text-align: left;
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #eeeeee;
}

.consent-row:last-child {
    border-bottom: 0;
}

.consent-row .chkBox {
    flex: 0 0 auto;
    margin: 2px 0 0 0;
    top: 0;
}

.consent-copy {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: normal;
    font-size: 13px;
    line-height: 1.45;
    color: #666;
}

.consent-copy label {
    cursor: pointer;
}

.doc-link {
    display: inline;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: #ec343c;
    font: inherit;
    line-height: inherit;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    -webkit-appearance: none;
}

.doc-link:hover,
.doc-link:focus {
    color: #b91f26;
    outline: none;
}

.consent-hint {
    margin: 10px 0 0;
    font-size: 11px;
    line-height: 1.4;
    color: #888;
    text-align: left;
}

.document-sources,
.document-source {
    display: none;
}

body.modal-open {
    overflow: hidden;
}

.document-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    inset: 0;
}

.document-modal.open {
    display: block;
}

.document-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.document-modal__window {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(680px, calc(100% - 32px));
    max-height: min(82vh, 760px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.document-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 16px;
    border-bottom: 1px solid #e6e6e6;
    background: #fff;
}

.document-modal__header h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.3;
    color: #2C3E50;
    text-align: left;
}

.document-modal__close {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #666;
    font-size: 30px;
    line-height: 32px;
    cursor: pointer;
    -webkit-appearance: none;
}

.document-modal__close:hover,
.document-modal__close:focus {
    color: #ec343c;
    outline: none;
}

.document-modal__content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 18px;
    text-align: left;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
    background: #fff;
}

.document-modal__content .doc-paragraph {
    margin: 0 0 10px;
    white-space: pre-wrap;
}

.document-modal__content .doc-title-line {
    margin-top: 8px;
    font-weight: bold;
    text-align: center;
    color: #2C3E50;
}

.document-modal__content .doc-heading {
    margin: 18px 0 8px;
    color: #2C3E50;
    text-align: left;
}

.doc-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 10px 0 14px;
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.doc-table td {
    padding: 7px 8px;
    border: 1px solid #d8d8d8;
    vertical-align: top;
}

@media (max-width: 520px) {
    #msform {
        width: 100%;
        max-width: 400px;
    }

    #msform fieldset {
        width: 90%;
        margin: 0 5%;
        padding: 20px;
    }

    .document-modal__window {
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        transform: none;
        width: 100%;
        max-height: 88vh;
        border-radius: 12px 12px 0 0;
    }

    .document-modal__content {
        padding: 16px;
        font-size: 13px;
    }
}
