.sbrp-trigger,
.sbrp-floating-trigger,
.sbrp-submit {
    appearance: none;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-transform: uppercase;
}

.sbrp-trigger,
.sbrp-submit {
    background: #0073aa;
    color: #ffffff;
    padding: 13px 20px;
}

.sbrp-trigger:hover,
.sbrp-submit:hover {
    background: #005f8d;
}

.sbrp-floating-trigger {
    background: #d92d2d;
    bottom: 24px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
    color: #ffffff;
    padding: 14px 20px;
    position: fixed;
    right: 24px;
    z-index: 9998;
}

.sbrp-modal[hidden] {
    display: none;
}

.sbrp-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 9999;
}

.sbrp-backdrop {
    background: rgba(0, 0, 0, 0.72);
    inset: 0;
    position: absolute;
}

.sbrp-dialog {
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
    color: #111111;
    max-height: calc(100vh - 48px);
    max-width: 1080px;
    overflow: auto;
    position: relative;
    width: min(100%, 1080px);
}

.sbrp-close {
    align-items: center;
    appearance: none;
    background: #111111;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    font-size: 26px;
    height: 42px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 16px;
    top: 16px;
    width: 42px;
    z-index: 2;
}

.sbrp-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
    min-height: 620px;
}

.sbrp-form-column {
    padding: 38px 32px 32px;
}

.sbrp-form-column h2 {
    color: #ef3333;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    letter-spacing: 0;
    line-height: 1.1;
    margin: 0 0 10px;
}

.sbrp-subtitle {
    color: #9a9a9a;
    font-size: 17px;
    margin: 0 0 48px;
}

.sbrp-form {
    display: grid;
    gap: 26px 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sbrp-alert {
    border-radius: 4px;
    font-size: 15px;
    grid-column: 1 / -1;
    padding: 12px 14px;
}

.sbrp-alert.is-success {
    background: #e7f7ed;
    color: #0b6b35;
}

.sbrp-alert.is-error {
    background: #fdeaea;
    color: #b42318;
}

.sbrp-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sbrp-field-full {
    grid-column: 1 / -1;
}

.sbrp-field label {
    color: #777777;
    font-size: 13px;
    margin-bottom: 4px;
}

.sbrp-field input,
.sbrp-field select,
.sbrp-field textarea {
    background: transparent;
    border: 0;
    border-bottom: 1px solid #cfcfcf;
    border-radius: 0;
    box-shadow: none;
    color: #333333;
    font: inherit;
    min-height: 42px;
    outline: 0;
    padding: 8px 14px;
    width: 100%;
}

.sbrp-field textarea {
    min-height: 88px;
    resize: vertical;
}

.sbrp-field input:focus,
.sbrp-field select:focus,
.sbrp-field textarea:focus {
    border-bottom-color: #d92d2d;
}

.sbrp-datepicker {
    cursor: pointer;
}

.sbrp-field input::placeholder,
.sbrp-field textarea::placeholder {
    color: #aaaaaa;
    opacity: 1;
}

.sbrp-error {
    color: #dc2626;
    font-size: 13px;
    min-height: 19px;
    padding-top: 8px;
}

.sbrp-error:not(:empty)::before {
    content: "!";
    align-items: center;
    background: #dc2626;
    border-radius: 50%;
    color: #ffffff;
    display: inline-flex;
    font-size: 10px;
    font-weight: 700;
    height: 15px;
    justify-content: center;
    margin-right: 7px;
    width: 15px;
}

.sbrp-actions {
    grid-column: 1 / -1;
}

.sbrp-recaptcha-field {
    min-height: 78px;
}

.sbrp-submit[disabled] {
    cursor: wait;
    opacity: 0.7;
}

.sbrp-image-column {
    background:
        linear-gradient(rgba(24, 20, 18, 0.1), rgba(24, 20, 18, 0.72)),
        linear-gradient(135deg, #111111, #6f1d1b 52%, #d8a24a);
    background-position: center;
    background-size: cover;
    min-height: 620px;
    position: relative;
}

.sbrp-image-overlay {
    bottom: 32px;
    color: #ffffff;
    left: 28px;
    position: absolute;
    right: 28px;
}

.sbrp-image-overlay span,
.sbrp-image-overlay strong {
    display: block;
}

.sbrp-image-overlay span {
    font-size: 14px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sbrp-image-overlay strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    line-height: 1.08;
    margin-top: 8px;
}

body.sbrp-modal-open {
    overflow: hidden;
}

#ui-datepicker-div.sbrp-calendar,
.sbrp-calendar {
    background: #ffffff;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 8px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
    color: #181818;
    display: none;
    font-family: Arial, sans-serif;
    overflow: hidden;
    padding: 0;
    width: 318px;
    z-index: 10000 !important;
}

.sbrp-calendar .ui-datepicker-header {
    align-items: center;
    background: linear-gradient(135deg, #111111 0%, #2a1716 54%, #b52424 100%);
    border: 0;
    border-radius: 0;
    color: #ffffff;
    min-height: 64px;
    padding: 0;
    position: relative;
}

.sbrp-calendar .ui-datepicker-title {
    align-items: center;
    bottom: 0;
    display: flex;
    font-size: 15px;
    font-weight: 700;
    gap: 12px;
    justify-content: center;
    left: 58px;
    line-height: 1.2;
    margin: 0;
    position: absolute;
    right: 58px;
    text-align: center;
    top: 0;
}

.sbrp-calendar .ui-datepicker-month,
.sbrp-calendar .ui-datepicker-year {
    color: inherit;
}

.sbrp-calendar .ui-datepicker-prev,
.sbrp-calendar .ui-datepicker-next {
    align-items: center;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    flex: 0 0 36px;
    font-size: 24px !important;
    font-weight: 700;
    height: 36px;
    justify-content: center;
    opacity: 0.88;
    overflow: visible;
    position: absolute !important;
    top: 50%;
    transform: translateY(-50%);
    text-decoration: none;
    transition: background 160ms ease, opacity 160ms ease, transform 160ms ease;
    width: 36px;
    z-index: 1;
}

.sbrp-calendar .ui-datepicker-prev {
    left: 16px !important;
}

.sbrp-calendar .ui-datepicker-next {
    right: 16px !important;
}

.sbrp-calendar .ui-datepicker-prev:hover,
.sbrp-calendar .ui-datepicker-next:hover,
.sbrp-calendar .ui-datepicker-prev:focus,
.sbrp-calendar .ui-datepicker-next:focus {
    background: rgba(255, 255, 255, 0.16);
    opacity: 1;
    outline: 0;
}

.sbrp-calendar .ui-datepicker-prev:active,
.sbrp-calendar .ui-datepicker-next:active {
    transform: translateY(-50%) scale(0.94);
}

.sbrp-calendar .ui-datepicker-prev span,
.sbrp-calendar .ui-datepicker-next span {
    align-items: center;
    background: none !important;
    border: 0;
    color: #ffffff;
    display: flex !important;
    font-size: 28px;
    height: 100%;
    justify-content: center;
    line-height: 1;
    margin: 0 !important;
    overflow: visible;
    padding: 0;
    position: static !important;
    text-indent: 0 !important;
    width: 100%;
}

.sbrp-calendar .ui-datepicker-calendar {
    padding: 14px;
}

.sbrp-calendar table {
    border-collapse: collapse;
    margin: 14px;
    table-layout: fixed;
    width: calc(100% - 28px);
}

.sbrp-calendar thead {
    border-bottom: 1px solid #eeeeee;
}

.sbrp-calendar tbody::before {
    content: "";
    display: table-row;
    height: 8px;
    width: 100%;
}

.sbrp-calendar th,
.sbrp-calendar td {
    border: 0;
    padding: 4px;
    text-align: center;
}

.sbrp-calendar th {
    color: #77736d;
    font-size: 11px;
    font-weight: 700;
    padding-bottom: 9px;
    text-transform: uppercase;
}

.sbrp-calendar td a,
.sbrp-calendar td span {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #202020;
    display: flex;
    font-size: 14px;
    font-weight: 700;
    height: 34px;
    justify-content: center;
    text-decoration: none;
    transition: background 150ms ease, box-shadow 150ms ease, color 150ms ease, transform 150ms ease;
}

.sbrp-calendar td a {
    background: #ffffff;
    border-color: #e8e4df;
}

.sbrp-calendar td a:hover {
    background: #fff6f0;
    border-color: rgba(217, 45, 45, 0.38);
    box-shadow: 0 8px 18px rgba(34, 20, 16, 0.1);
    color: #b52424;
    transform: translateY(-1px);
}

.sbrp-calendar td a:focus {
    box-shadow: 0 0 0 2px rgba(217, 45, 45, 0.24);
    outline: 0;
}

.sbrp-calendar .ui-datepicker-current-day a,
.sbrp-calendar .ui-datepicker-current-day a:hover {
    background: #d92d2d;
    border-color: #d92d2d;
    box-shadow: 0 10px 18px rgba(217, 45, 45, 0.28);
    color: #ffffff;
    transform: none;
}

.sbrp-calendar .ui-datepicker-today a {
    background: #fff1a8;
    border-color: #d92d2d;
    box-shadow: none;
    color: #b52424;
}

.sbrp-calendar .ui-datepicker-today.ui-datepicker-current-day a {
    color: #ffffff;
}

.sbrp-calendar .ui-datepicker-other-month span,
.sbrp-calendar .ui-datepicker-unselectable span {
    background: transparent;
    border-color: transparent;
    color: #d8d4cf;
    font-weight: 600;
}

.sbrp-calendar .ui-state-disabled {
    opacity: 1;
}

.sbrp-calendar .ui-datepicker-week-end a {
    color: #6f1d1b;
}

@media (max-width: 860px) {
    .sbrp-dialog {
        max-height: calc(100vh - 32px);
    }

    .sbrp-grid {
        grid-template-columns: 1fr;
    }

    .sbrp-image-column {
        min-height: 260px;
    }

    .sbrp-form-column {
        padding: 30px 20px 24px;
    }

    .sbrp-form-column h2 {
        font-size: 30px;
    }

    .sbrp-subtitle {
        margin-bottom: 32px;
    }
}

@media (max-width: 640px) {
    .sbrp-modal {
        padding: 12px;
    }

    .sbrp-form {
        gap: 20px;
        grid-template-columns: 1fr;
    }

    .sbrp-field-full,
    .sbrp-actions,
    .sbrp-alert {
        grid-column: auto;
    }

    .sbrp-floating-trigger {
        bottom: 16px;
        left: 16px;
        right: 16px;
        width: auto;
    }
}
