.sf-overlay {
    display: none;
    width: 100%;
    height: 100%;
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom right, #181818, #BC9640);
    opacity: 0.82;
    z-index: 9990;
}

.sf-popup {
    display: none;
    width: calc(100% - 30px);
    max-width: 780px;
    max-height: calc(100vh - 40px);
    padding: 44px 48px;
    position: fixed;
    top: 50%;
    left: 50%;
    overflow-y: auto;
    transform: translate(-50%, -50%);
    background: #ffffff;
    z-index: 10000;
    text-align: left;
}

.sf-close {
    display: block;
    width: 28px;
    height: 28px;
    position: fixed;
    top: 18px;
    right: 18px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 2;
}

.sf-close svg {
    width: 14px;
    height: 14px;
}

.sf-close svg path {
    fill: #2b2b2b;
}

.site-form {
    width: 100%;
}

.site-form h3,
.sf-success-screen h3 {
    margin: 0 0 14px 0;
    color: #181818;
    font-family: 'Cormorant-Medium', Times New Roman, sans-serif;
    font-size: 38px;
    line-height: 42px;
    text-align: center;
}

.sf-intro {
    margin: 0 0 24px 0;
    color: #777777;
    font-family: 'Gilroy-Regular';
    font-size: 15px;
    line-height: 22px;
    text-align: center;
}

.sf-input {
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 15px 18px;
    border: 1px solid #e6e1d8;
    border-radius: 4px;
    background: #ffffff;
    color: #2b2b2b;
    font-family: 'Gilroy-Medium';
    font-size: 15px;
    line-height: 20px;
}

.sf-input::placeholder {
    color: #777777;
}

.sf-input:focus {
    border-color: #BC9640;
}

.sf-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 0 16px 0;
}

.sf-row-2 > * {
    width: calc(50% - 8px);
}

.sf-row-3 > * {
    width: calc(33.333% - 11px);
}

.site-form > .sf-input {
    margin-bottom: 16px;
}

.sf-event-other {
    display: none;
    min-height: 70px;
}

.sf-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23777777' d='M1.4 1.4L6 6l4.6-4.6L12 2.8 6 8 0 2.8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 42px;
    cursor: pointer;
}

.sf-textarea {
    display: block;
    min-height: 86px;
    resize: vertical;
}

.sf-hidden-field {
    display: none;
}

.sf-event-types {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px 0;
}

.sf-event-types label {
    display: block;
    cursor: pointer;
}

.sf-event-types input {
    display: none;
}

.sf-event-types span {
    display: block;
    padding: 11px 16px;
    border: 1px solid #e6e1d8;
    border-radius: 4px;
    background: #f9f7f3;
    color: #2b2b2b;
    font-family: 'Gilroy-Medium';
    font-size: 14px;
    line-height: 18px;
    transition: 0.2s ease;
}

.sf-event-types input:checked + span {
    border-color: #BC9640;
    background: #BC9640;
    color: #ffffff;
}

.sf-options-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 4px 0 18px 0;
}

.sf-options-group {
    padding: 18px;
    border: 1px solid #eee6d8;
    border-radius: 6px;
    background: #fbfaf7;
}

.sf-options-title {
    margin: 0 0 14px 0;
    font-family: 'Gilroy-Semibold';
    font-size: 15px;
    line-height: 18px;
    font-weight: 400;
    letter-spacing: 0.04em;
}

.sf-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
}

.sf-options label {
    display: inline-block;
    width: auto;
    margin: 0;
    cursor: pointer;
}

.sf-option-dynamic {
    display: none;
}

.sf-options input {
    display: none;
}

.sf-options span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid #e2ddd3;
    border-radius: 40px;
    background: #ffffff;
    color: #2b2b2b;
    font-family: 'Gilroy-Regular';
    font-size: 13px;
    line-height: 17px;
    transition: 0.2s ease;
}

.sf-options span:before {
    content: '+';
    display: inline-block;
    margin-right: 6px;
    color: #BC9640;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1;
}

.sf-options input:checked + span {
    border-color: #BC9640;
    background: #BC9640;
    color: #ffffff;
}

.sf-options input:checked + span:before {
    content: '✓';
    color: #ffffff;
}

.sf-agree {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 4px 0 18px 0;
}

.sf-agree input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 2px 0 0 0;
    flex: 0 0 auto;
    cursor: pointer;
}

.sf-agree label {
    color: #777777;
    font-family: 'Gilroy-Regular';
    font-size: 13px;
    line-height: 21px;
    cursor: pointer;
}

.sf-agree a {
    color: #BC9640;
    text-decoration: underline;
}

.sf-agree a:hover {
    text-decoration: none;
}

.sf-submit-block {
    position: relative;
    text-align: center;
}

.sf-submit {
    display: inline-block;
    min-width: 190px;
    padding: 15px 26px;
    border: 1px solid #2b2b2b;
    border-radius: 4px;
    background: #ffffff;
    color: #2b2b2b;
    font-family: 'Gilroy-Semibold';
    font-size: 14px;
    line-height: 18px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.2s ease;
}

.sf-submit:hover {
    border-color: #BC9640;
    color: #BC9640;
}

.sf-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.sf-result {
    margin-top: 10px;
    font-family: 'Gilroy-Regular';
    font-size: 13px;
    line-height: 18px;
    text-align: center;
}

.sf-success {
    color: #4fb43b;
}

.sf-error {
    color: #d12f2f;
}

.sf-success-screen {
    text-align: center;
}

.sf-success-screen p {
    margin: 0;
    color: #777777;
    font-family: 'Gilroy-Regular';
    font-size: 16px;
    line-height: 24px;
}

.sf-popup-callback {
    max-width: 570px;
    padding: 64px;
    text-align: center;
}

.sf-popup-callback .sf-input {
    border: none;
    border-bottom: 1px solid #A3A3A3;
    border-radius: 0;
    padding: 20px 40px;
}

.sf-popup-callback .sf-submit {
    border-radius: 0;
    background: none;
}

/* Datepicker */

.ui-datepicker {
    width: 270px;
    padding: 12px;
    border: 1px solid #e6e1d8;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.14);
    font-family: 'Gilroy-Regular', Arial, sans-serif;
    font-size: 12px;
    z-index: 10050 !important;
}

.ui-datepicker .ui-datepicker-header {
    position: relative;
    padding: 0 0 10px 0;
    border: none;
    background: #ffffff;
    color: #181818;
    font-family: 'Gilroy-Semibold', Arial, sans-serif;
    font-size: 13px;
}

.ui-datepicker .ui-datepicker-title {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 0 36px;
    line-height: 30px;
}

.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
    height: 30px;
    padding: 4px 22px 4px 8px;
    border: 1px solid #e6e1d8;
    border-radius: 4px;
    background-color: #fbfaf7;
    color: #2b2b2b;
    font-family: 'Gilroy-Regular', Arial, sans-serif;
    font-size: 13px;
    cursor: pointer;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    top: 0;
    width: 30px;
    height: 30px;
    border: 1px solid #e6e1d8;
    border-radius: 4px;
    background: #fbfaf7;
    cursor: pointer;
}

.ui-datepicker .ui-datepicker-prev {
    left: 0;
}

.ui-datepicker .ui-datepicker-next {
    right: 0;
}

.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover {
    border-color: #BC9640;
    background: #ffffff;
}

.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
    display: none;
}

.ui-datepicker .ui-datepicker-prev:before,
.ui-datepicker .ui-datepicker-next:before {
    display: block;
    color: #BC9640;
    font-size: 16px;
    line-height: 28px;
    text-align: center;
}

.ui-datepicker .ui-datepicker-prev:before {
    content: '‹';
}

.ui-datepicker .ui-datepicker-next:before {
    content: '›';
}

.ui-datepicker table {
    margin: 0;
    border-collapse: collapse;
    font-size: 12px;
}

.ui-datepicker th {
    padding: 6px 0;
    color: #999999;
    font-family: 'Gilroy-Medium', Arial, sans-serif;
    font-size: 11px;
    font-weight: normal;
}

.ui-datepicker td {
    padding: 2px;
}

.ui-datepicker td span,
.ui-datepicker td a {
    display: block;
    width: 30px;
    height: 28px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: #2b2b2b;
    font-family: 'Gilroy-Regular', Arial, sans-serif;
    font-size: 12px;
    line-height: 28px;
    text-align: center;
}

.ui-datepicker td a:hover {
    border-color: #BC9640;
    background: #fbfaf7;
    color: #BC9640;
}

.ui-datepicker .ui-datepicker-today a {
    border-color: #e6d8bd;
    background: #fbfaf7;
    color: #BC9640;
}

.ui-datepicker .ui-datepicker-current-day a {
    border-color: #BC9640;
    background: #BC9640;
    color: #ffffff;
}

.ui-datepicker .ui-state-disabled span {
    color: #cccccc;
}

.ui-datepicker .ui-datepicker-other-month span,
.ui-datepicker .ui-datepicker-other-month a {
    color: #c8c8c8;
}

.ui-datepicker .ui-datepicker-buttonpane {
    margin: 10px 0 0 0;
    padding: 10px 0 0 0;
    border-top: 1px solid #e6e1d8;
    background: transparent;
}

.ui-datepicker .ui-datepicker-buttonpane button {
    margin: 0;
    padding: 7px 12px;
    border: 1px solid #BC9640;
    border-radius: 4px;
    background: #ffffff;
    color: #BC9640;
    font-family: 'Gilroy-Medium', Arial, sans-serif;
    font-size: 12px;
    line-height: 16px;
    cursor: pointer;
    opacity: 1;
}

.ui-datepicker .ui-datepicker-buttonpane button:hover {
    background: #BC9640;
    color: #ffffff;
}

.ui-datepicker .ui-datepicker-buttonpane .ui-datepicker-current {
    float: left;
}

.ui-datepicker .ui-datepicker-buttonpane .ui-datepicker-close {
    float: right;
}

@media (max-width: 767px) {

    .ui-datepicker {
        width: 260px;
        font-size: 12px;
    }

    .ui-datepicker td span,
    .ui-datepicker td a {
        width: 28px;
        height: 27px;
        line-height: 27px;
    }

    .sf-popup {
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
        padding: 36px 20px 24px;
    }

    .site-form h3,
    .sf-success-screen h3 {
        font-size: 30px;
        line-height: 34px;
    }

    .sf-intro {
        font-size: 14px;
        line-height: 20px;
    }

    .sf-row-2 > *,
    .sf-row-3 > * {
        width: 100%;
    }

    .sf-options-block {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sf-options-group {
        padding: 14px;
    }

    .sf-event-types {
        gap: 8px;
    }

    .sf-event-types span {
        padding: 10px 12px;
        font-size: 13px;
        line-height: 17px;
    }

    .sf-options {
        gap: 8px 10px;
    }

    .sf-options span {
        min-height: 32px;
        padding: 7px 10px;
        font-size: 13px;
        line-height: 16px;
    }

    .sf-input {
        min-height: 48px;
        padding: 13px 15px;
        font-size: 14px;
    }

    .sf-submit {
        width: 100%;
        min-width: 0;
    }

    .sf-popup-callback {
        padding: 44px 24px 30px;
    }
}