/* =========================================================
   MASKED INPUT STYLES
   ========================================================= */

/* Стили для полей с маской в попапе */
.popup-type-form input.validate-mask,
input.validate-mask {
    /* Основные стили */
    /* width: 100%; */
    /* padding: 18px 12px 6px; */
    /* height: 54px; */

    border-radius: 6px;
    /* font-size: 14px; */
    /* background: #fff; */
    /* transition: all 0.2s ease; */
    /* outline: none; */
    /* font-family: 'Roboto', sans-serif; */
    
    /* Цвет текста маски - приглушенный серый */
    /* color: var(--ui-muted, #6b7280); */
}

/* Стиль placeholder (до заполнения) */
.popup-type-form input.validate-mask::placeholder,
input.validate-mask::placeholder {
    color: var(--ui-muted, #6b7280);
    opacity: 0.7;
    font-size: 13px;
}

/* Стиль при фокусе */
.popup-type-form input.validate-mask:focus,
input.validate-mask:focus {
    border-color: #0c4da2;
    box-shadow: 0 0 0 3px rgba(12, 77, 162, 0.12);
    color: #0c4da2;
}

/* Стиль при заполнении (если используется is-filled) */
.popup-type-form input.validate-mask.is-filled,
.contact-field.is-filled input.validate-mask {
    /* background: #f8fafc; */
    /* border-color: #0c4da2; */
    color: #0c4da2;
}

/* Hide popup containers by default - they will be shown by JS popup plugin */
.multi-modal-content {
    background: #fff;
    padding: var(--ui-space-5);
    box-shadow: 0 0 20px rgba(64, 58, 58, 0.35);
    width: 420px;
    max-width: 100%;
    border-radius: var(--ui-radius-sm);
    display: none; /* Hidden by default */
}

/* When popup is active */
.multi-modal-content.popup_visible {
    display: block;
}

.multi-modal-content * {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

/* Popup overlay to match fancybox style */
.popup_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    z-index: 9998;
    display: none;
}

.popup_overlay.popup_visible {
    display: block;
}

/* Popup wrapper */
.popup_wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgb(0 0 0 / 31%) !important;
    backdrop-filter: blur(6px) !important;
    display: none;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.popup_wrapper.popup_visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-popup {
    display: flex;
    flex-direction: column;
    gap: var(--ui-space-2);
}
span.error {
    color: #e40000;
    font-size: 12px;
    font-family: "Roboto", sans-serif;
}
.multi-modal-content .popup-close {
    position: absolute;
    right: -40px;
    top: -40px;
    z-index: 9999;
    border: none;
    background: none;
    color: #fff;
    font-size: 36px;
    outline: none;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
}

.multi-modal-content .popup-close:hover {
    color: #ccc;
}

@media (max-width: 520px) {
    .multi-modal-content .popup-close {
        right: 10px;
        top: 10px;
        color: #000;
    }
}
.multi-modal-content .popup-heading {
    font-size: var(--ui-h3);
    padding: 0 0 var(--ui-space-4) 0;
    font-weight: 500;
    font-family: "Roboto", sans-serif !important;
    line-height: 1;
    color: #000;
}

/*
.multi-modal-content input,
.multi-modal-content select,
.multi-modal-content textarea {
    box-sizing: border-box;
}

.multi-modal-content input[type="checkbox"]:not(.contact-check input){
    display: inline-block;
    width: auto;
    min-height: auto;
}

label.modal-checkbox {
    display: flex !important;
    gap: 8px;
    align-items: flex-start;
    cursor: pointer;
    line-height: 1.3;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}
*/

/* =========================================================
   POPUP FORM STYLES - Commented out to avoid conflicts with style.css
   ========================================================= */

/*
.popup-type-form .contact-form__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.popup-type-form .contact-field {
    position: relative;
    flex: 1 0 auto;
    width: calc(50% - 7px);
    margin: 0;
}

.popup-type-form .contact-field.is-full {
    width: 100%;
}

.popup-type-form .contact-label {
    display: block;
    position: absolute;
    color: #8a94a3;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 2;
    background: transparent;
    padding: 0 4px;
    margin: 0;
}

.popup-type-form .contact-field.is-full .contact-label {
    top: 27px;
}

.popup-type-form .contact-input {
    width: 100%;
    padding: 18px 12px 6px;
    height: 54px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: all 0.2s ease;
    outline: none;
    font-family: 'Roboto', sans-serif;
}

.popup-type-form .contact-input:focus {
    border-color: rgba(18, 83, 194, 0.35);
    box-shadow: 0 0 0 3px rgba(31, 79, 163, 0.12);
}

.popup-type-form .contact-input::placeholder {
    color: #8a94a3;
    font-size: 13px;
}

.popup-type-form .contact-field.is-filled .contact-label,
.popup-type-form .contact-field:focus-within .contact-label {
    transform: translateY(-100%);
    font-size: 11px;
    top: 12px;
    color: #0c4da2;
}

.popup-type-form .contact-textarea {
    height: auto;
    min-height: 120px;
    resize: vertical;
    padding-top: 24px;
}

.popup-type-form .contact-options {
    display: grid;
    gap: 12px;
}

.popup-type-form .contact-check {
    display: flex;
    align-items: center;
    margin: 0;
    cursor: pointer;
    position: relative;
}

.popup-type-form .contact-check > input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.popup-type-form .contact-check > span {
    position: relative;
    padding-left: 34px;
    line-height: 22px;
    font-size: 14px;
    color: #333;
}

.popup-type-form .contact-check > span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    transition: all 0.2s ease;
}

.popup-type-form .contact-check > input:checked + span::before {
    border-color: #0c4da2;
    background: #0c4da2;
}

.popup-type-form .contact-check > input:checked + span::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.popup-type-form .contact-check > input:focus + span::before {
    box-shadow: 0 0 0 3px rgba(19, 103, 212, 0.2);
    border-color: rgba(19, 103, 212, 0.6);
}

.popup-type-form .contact-actions {
    text-align: center;
    margin-top: 8px;
}

.popup-type-form .contact-actions .ui-btn {
    width: 100%;
}

@media (max-width: 480px) {
    .popup-type-form .contact-field {
        width: 100%;
    }
}

.popup-type-form p {
    padding: 0;
    margin: 0 0;
}
*/

/*
#modal-offer {
    width: 400px;
    max-width: 100%;
}
#modal-offer .heading h2{
    text-align: center;
    margin: 20px 0;
    color: #000;
    padding: 0;
    font: normal 24px Verdana;
}
#modal-offer .tries {
    max-width: 300px;
    width:100%;
    margin: 10px auto;
    position: relative;
}
#modal-offer .tries .offer-block{

}
#modal-offer .tries .offer-block input{
    border: 1px solid #ddd;
    background: #fff;
    outline: none;
    width: 100%;
    font: bold 24px Verdana;
    color: #000;
    text-align: center;
    padding: 8px;
    display: block;
}
#modal-offer .owner-discount-bar {
    position: relative;
    width: 100%;
    height: 15px;
    background: #ddd;
    margin-top: 1px;
}
#modal-offer .owner-discount-bar span {
    font: bold 11px/15px Verdana;
    text-align: center;
    color: #9E9E9E;
    width: 100%;
    display: block;
    text-transform: uppercase;
}
#offer-discount-bar-active{
    overflow: hidden;
    position: absolute;
    left: 0;
    top: 0;
    background: #2DC12B;
    z-index: 9;
    color: #fff;
    bottom: 0;
    width: 100%;
}
#offer-discount-bar-active span {
    color: #fff !important;
}
#offer-discount-bar {

}
#modal-offer .result-offer {
    overflow: auto;
    padding: 5px;
    background: #F7F7F7;
    margin: 5px 0;
}

#modal-offer .result-offer > div{
    width: 50%;
    float: left;
    text-align: center;
}
#modal-offer .result-offer .side-title {
    font: 12px/28px Verdana;
    color: #999;
}
#makeOffer {
    margin: 10px auto;
    display: block;
    text-align: center;
    background: #FBE11E;
    max-width: 200px;
    font: bold 13px/36px Verdana;
    cursor: pointer;
    border-radius: 3px;
    border-bottom: 3px solid #DCC518
}
.sendOffer{
    margin: 10px auto;
    display: block;
    text-align: center;
    color: #fff;
    background: #2ECE52;
    max-width: 200px;
    font: bold 13px/36px Verdana;
    cursor: pointer;
    border-radius: 3px;
    border-bottom: 3px solid #1FA23C;
}
#makeOffer:hover,#makeOffer:active,
.sendOffer:hover,#sendOffer:active {
    border-bottom-width: 1px;
    line-height: 38px;
}

#send-special-order {
    padding: 20px 30px;
}
#send-special-order .form-group + .form-group {
    margin-top: 10px;
}
#send-special-order input {
    display: block;
    width: 100%;
    padding: 8px 8px;
    background: #fff;
    outline: none;
}
#form-success-sp_offer .text {
    text-align: center;
    color: #6B716C;
    font: normal 14px Verdana;
}

#modal-offer.hide_start_step #start_step,
#form-success-sp_offer{
    display:none;
}
#modal-offer.hide_start_step #form-success-sp_offer,
#start_step {
    display:block;
}

#offer-your-price.low {
    border: 1px solid #EF1414 !important;
    background: #FFE8E8 !important;
}
#your-prise-offer {
    text-align: center;
    color: #2ECE52;
    font: bold 24px/60px Verdana;
}
#send-special-order .input_error{
    border: 1px solid #EF1414 !important;
    background: #FFE8E8 !important;
}
h2.res-success{
    text-align: center;
    color: #2ECE52;
    font: bold 18px/30px Verdana;
    margin: 30px 20px;
}
#offer-discount-response{
    font: bold 11px/15px Verdana;
    text-align: center;
    color: #EF1414;
    width: 100%;
    display: block;
    text-transform: uppercase;
    position: absolute;
    background: #DDDDDD;
    z-index: 99;
    padding: 5px;
}
.wait-offer {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.5s linear;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    z-index: 999;
    background: rgba(0,0,0,.75) url('preload-wait-offer.gif') no-repeat 50% 5%;
    padding-top: 40%;
    text-align: center;
    color: #fff;
    font: normal 18px Verdana;
}
.wait-offer.active {
    visibility: visible;
    opacity: 1;
}
#selected-offer-options .heading-options{
    padding: 8px 0;
    color: #006400;
    font-weight: bold;
    cursor: pointer;
    background: url('arrow-down.png') no-repeat center right;
    font-family: Verdana;
    transition: 0.3s;
}
#selected-offer-options .heading-options.opened {
    background: url('arrow-up.png') no-repeat center right;
}
#selected-offer-options .short-preview-options{
    max-height: 0;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
}
#selected-offer-options .short-preview-options.opened{
    max-height: 200px;
    visibility: visible;
    overflow-y: auto;
    opacity: 1;
}
#selected-offer-options .offer-name-option{
    margin: 5px 0;
}
#selected-offer-options select{
    border: none;
    background: #f4f4f4;
    padding: 5px 8px;
    display: block;
    font-size: 12px;
    box-shadow: 0 2px 0 #d1d1d1;
    text-shadow: 1px 1px 0 #fff;
    transition: all 0.3s;
    outline: none;
}
#selected-offer-options input{
    outline: none;
}
#selected-offer-options .offer-opt-group-radio,
#selected-offer-options .offer-opt-group-checkbox,
#selected-offer-options .offer-image-item{
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 5px;
}
#selected-offer-options .offer-opt-group-radio label,
#selected-offer-options .offer-opt-group-checkbox label{
    background: #f4f4f4;
    padding: 5px 8px;
    display: block;
    font-size: 12px;
    box-shadow: 0 2px 0 #d1d1d1;
    text-shadow: 1px 1px 0 #fff;
    transition: all 0.3s;
}
#selected-offer-options .offer-opt-group-radio input:checked + label,
#selected-offer-options .offer-opt-group-checkbox input:checked + label{
    background: #fbe11e;
    color: #000;
    box-shadow: 0 2px 0 #dcc518;
}
#selected-offer-options .offer-opt-group-checkbox input:checked + label{
    background: #fbe11e url('check.png') no-repeat 5px 50%;
    padding: 5px 8px 5px 25px;
}
#selected-offer-options .offer-image-item label{
    padding: 2px;
    display: block;
    border: 2px solid #d1d1d1;
    transition: all 0.3s;
}
#selected-offer-options .offer-image-item input:checked + label{
    border: 2px solid #dcc518;
}
*/
