/* Кнопка вызова модального окна */
.sm-appointment-cta-btn {
    background: linear-gradient(-45deg, #DEB59A, #ECCBB5, #DEB59A);
    font-family: "Museo Sans Cyrl", Sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 26px;
    background-color: #FFFFFF00;
    border-style: solid;
    border-width: 0px 0px 4px 0px;
    border-color: #D6AD94;
    border-radius: 8px 8px 8px 8px;
    padding: 16px 24px 16px 24px;
    margin-bottom: 16px;
}

.sm-appointment-cta-btn:hover,
.sm-appointment-cta-btn:focus,
.sm-appointment-cta-btn:active {
    background-color: #ffffff00 !important;
    border-color: #D6AD94 !important;
}

/* Модальное окно */
.sm-appointment-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.sm-appointment-modal {
    background: #fff;
    border-radius: 15px;
    width: 100%;
    max-width: 440px;
    padding: 15px 40px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    color: #1F1F1F;
}

.sm-appointment-close {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 15px;
    line-height: 1;
    color: #D9D9D9;
    cursor: pointer;
    width: 23px;
    height: 23px;
    padding: 3px;
    border: 1px solid #D9D9D9;
    border-radius: 50%;
    background-color: #fff;;
}

.sm-appointment-close:hover {
    color: #D9D9D9;
    background-color: #fff;
    border: 1px solid #D9D9D9;
}

.sm-appointment-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.sm-appointment-header h2 {
    margin: 0;
    color: #1F1F1F;
    font-family: "Shango", Sans-serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 44px;
}

.sm-appointment-header img {
    width: 154px;
    height: 77px;
    object-fit: contain;
    object-position: center;
}

.sm-appointment-desc {
    margin: 0px 0px 24px 0px;
    padding: 0px 100px 0px 0px;
    color: #434343;
    font-family: "Museo Sans Cyrl", Sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 22px;
}

.sm-appointment-field {
    margin-bottom: 14px;
    
}

.sm-appointment-field input {
    width: 100%;
    padding: 16px 18px;
    height: 65px;
    border: none;
    background-color: #f8f8f8 !important;
    border-radius: 6px;
    padding: 23px 15px;
    color: #858585;
    font-family: "Museo Sans Cyrl", Sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 30px;
    margin-bottom: 12px;
}

.sm-appointment-field input::placeholder {
    color: #aaa;
}

.sm-appointment-field input:focus {
    background: #eee;
}

.sm-appointment-info {
    margin: 22px 0 26px;
    font-size: 14px;
    line-height: 1.5;
}

.sm-appointment-info-row {
    margin-bottom: 6px;
    color: #9A9A9A;
    font-family: 'Museo Sans Cyrl';
    font-weight: 300;
    font-size: 16px;
    line-height: 19px;
}

.sm-appointment-info .label {
    font-weight: 700;
    margin-right: 4px;
}

.sm-appointment-info .value {
    color: #333;
}

.sm-appointment-submit {
    width: 100%;
    height: 72px;
    background: linear-gradient(-45deg, #DEB59A, #ECCBB5, #DEB59A);
    font-family: "Museo Sans Cyrl", Sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 26px;
    padding-left: 20px;
    padding-right: 20px;
    border-style: solid;
    border-width: 0px 0px 4px 0px;
    border-color: #D6AD94;
    border-radius: 8px 8px 8px 8px;
    margin-top: 12px;
}

.sm-appointment-submit:hover,
.sm-appointment-submit:focus,
.sm-appointment-submit:active {
    background-color: #ffffff00 !important;
    border-color: #D6AD94 !important;
}

.sm-appointment-submit:active {
    transform: scale(0.98);
}

.sm-appointment-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.sm-appointment-consent {
    margin: 20px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #999;
    text-align: left;
}

.sm-appointment-consent a {
    color: #999;
    text-decoration: underline;
}

.sm-appointment-consent a:hover {
    color: #666;
}

.sm-appointment-success {
    text-align: center;
    padding: 40px 10px;
    font-size: 17px;
    line-height: 1.5;
    color: #333;
}
 
.sm-appointment-error {
    text-align: center;
    padding: 30px 10px 10px;
    font-size: 16px;
    line-height: 1.5;
    color: #b33;
}

.sm-appointment-error p {
    margin: 0 0 20px;
}

@media (max-width: 480px) {
    .sm-appointment-modal {
        padding: 32px 24px 28px;
    }

    .sm-appointment-header h2 {
        font-size: 24px;
    }

    .sm-appointment-clock {
        font-size: 36px;
    }
}