.rr-widget {
    --rr-bg: #071616;
    --rr-panel: rgba(10, 24, 24, 0.92);
    --rr-panel-soft: rgba(255, 255, 255, 0.045);
    --rr-line: rgba(219, 186, 128, 0.32);
    --rr-gold: #d9bd83;
    --rr-gold-strong: #f1d99a;
    --rr-text: #f7f2e7;
    --rr-muted: rgba(247, 242, 231, 0.72);
    --rr-error: #f0a08f;
    --rr-success: #b8e0b8;
    background:
        linear-gradient(135deg, rgba(217, 189, 131, 0.09), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 58%),
        var(--rr-bg);
    border: 1px solid var(--rr-line);
    color: var(--rr-text);
    margin: 42px auto;
    max-width: 1080px;
    overflow: hidden;
    padding: clamp(24px, 4vw, 48px);
    position: relative;
    animation: rr-widget-enter 520ms ease both;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.rr-widget::before,
.rr-widget::after {
    background: linear-gradient(90deg, transparent, var(--rr-gold), transparent);
    content: "";
    height: 1px;
    left: clamp(24px, 4vw, 48px);
    opacity: 0.56;
    position: absolute;
    right: clamp(24px, 4vw, 48px);
    transform-origin: center;
    animation: rr-line-sweep 900ms ease both 120ms;
}

.rr-widget::before {
    top: 22px;
}

.rr-widget::after {
    bottom: 22px;
}

.rr-widget * {
    box-sizing: border-box;
}

.rr-widget__header {
    margin: 0 auto 30px;
    max-width: 760px;
    text-align: center;
}

.rr-widget__eyebrow {
    color: var(--rr-gold);
    display: inline-flex;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.4;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.rr-widget h2 {
    color: var(--rr-gold-strong);
    font-size: clamp(30px, 4.6vw, 54px);
    line-height: 1.05;
    margin: 0 0 14px;
    text-align: center;
}

.rr-widget h3 {
    color: var(--rr-gold-strong);
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.12;
    margin: 0 0 12px;
    text-align: center;
}

.rr-widget p {
    color: var(--rr-muted);
    font-size: 18px;
    line-height: 1.65;
    margin: 0;
}

.rr-search,
.rr-booking {
    background:
        linear-gradient(135deg, rgba(217, 189, 131, 0.10), transparent 40%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 70%),
        var(--rr-panel);
    border: 1px solid var(--rr-line);
    display: grid;
    gap: 18px;
    margin: 0 auto;
    padding: 22px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 18px 46px rgba(0, 0, 0, 0.18);
}

.rr-search {
    align-items: end;
    grid-template-columns: minmax(230px, 0.9fr) minmax(0, 2.1fr);
    max-width: 1120px;
}

.rr-widget--compact {
    margin: 36px auto 0;
    max-width: 980px;
    padding: clamp(22px, 3vw, 34px);
}

.rr-widget--compact::before {
    top: 16px;
}

.rr-widget--compact::after {
    bottom: 16px;
}

.rr-widget--compact .rr-widget__header {
    margin-bottom: 22px;
    max-width: 650px;
}

.rr-widget--compact .rr-widget__eyebrow {
    margin-bottom: 8px;
}

.rr-widget--compact p {
    font-size: 16px;
}

.rr-widget--compact .rr-search,
.rr-widget--compact .rr-booking {
    padding: 18px;
}

.rr-widget--compact .rr-search {
    grid-template-columns: minmax(210px, 0.8fr) minmax(0, 2.2fr);
}

.rr-widget--compact .rr-progressive-fields {
    grid-template-columns: minmax(96px, 0.48fr) minmax(160px, 1fr) minmax(170px, 0.72fr);
}

.rr-widget--compact.rr-widget input,
.rr-widget--compact.rr-widget select,
.rr-widget--compact.rr-widget textarea,
.rr-widget--compact.rr-widget button {
    min-height: 54px;
}

.rr-search__date {
    max-width: none;
}

.rr-progressive-fields {
    align-items: end;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(112px, 0.52fr) minmax(190px, 1fr) minmax(185px, 0.72fr);
}

.rr-progressive-fields[hidden] {
    display: none;
}

.rr-progressive-fields.is-visible {
    animation: rr-fields-in 320ms ease both;
}

.rr-search label,
.rr-booking label {
    display: grid;
    gap: 9px;
    margin: 0;
}

.rr-search label > span,
.rr-booking label > span,
.rr-consent span {
    color: var(--rr-muted);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.35;
    text-transform: uppercase;
}

.rr-widget input,
.rr-widget select,
.rr-widget textarea {
    appearance: none;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(219, 186, 128, 0.4);
    border-radius: 0;
    color: var(--rr-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.25;
    min-height: 58px;
    outline: none;
    padding: 15px 16px;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
    width: 100%;
}

.rr-widget input[type="date"] {
    font-size: 17px;
}

.rr-widget select {
    background-image:
        linear-gradient(45deg, transparent 50%, var(--rr-gold) 50%),
        linear-gradient(135deg, var(--rr-gold) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 52%,
        calc(100% - 12px) 52%;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    padding-right: 42px;
}

.rr-widget input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(82%) sepia(20%) saturate(654%) hue-rotate(2deg) brightness(94%);
    opacity: 0.85;
}

.rr-widget input:focus,
.rr-widget select:focus,
.rr-widget textarea:focus {
    background: rgba(0, 0, 0, 0.32);
    border-color: var(--rr-gold-strong);
    box-shadow: 0 0 0 3px rgba(217, 189, 131, 0.16);
    transform: translateY(-1px);
}

.rr-widget textarea {
    line-height: 1.55;
    resize: vertical;
}

.rr-widget button {
    align-items: center;
    background: var(--rr-gold);
    border: 1px solid var(--rr-gold);
    color: #071616;
    cursor: pointer;
    display: inline-flex;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 800;
    justify-content: center;
    letter-spacing: 0.05em;
    min-height: 58px;
    padding: 14px 22px;
    text-transform: uppercase;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
    white-space: nowrap;
}

.rr-widget button:hover,
.rr-widget button:focus-visible {
    background: var(--rr-gold-strong);
    border-color: var(--rr-gold-strong);
    color: #061111;
    transform: translateY(-1px);
}

.rr-widget button:disabled {
    cursor: wait;
    opacity: 0.62;
    transform: none;
}

.rr-status,
.rr-message,
.rr-confirmation {
    color: var(--rr-muted);
    line-height: 1.55;
    margin: 18px auto 0;
    max-width: 920px;
    text-align: center;
    transition: color 160ms ease, opacity 160ms ease;
}

.rr-message,
.rr-confirmation {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--rr-line);
    padding: 18px;
}

.rr-message--error,
.rr-status.is-error {
    color: var(--rr-error);
}

.rr-status.is-loading::after {
    animation: rr-dots 1.1s steps(4, end) infinite;
    content: "";
    display: inline-block;
    min-width: 18px;
    text-align: left;
}

.rr-confirmation {
    color: var(--rr-success);
    animation: rr-confirmation-in 360ms ease both;
}

.rr-confirmation strong {
    color: var(--rr-gold-strong);
}

.rr-slots {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(154px, 1fr));
    margin: 22px auto 0;
    max-width: 920px;
}

.rr-widget .rr-slot {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        rgba(4, 13, 13, 0.86);
    border-color: rgba(219, 186, 128, 0.4);
    color: var(--rr-gold-strong);
    flex-direction: column;
    gap: 2px;
    min-height: 58px;
    padding: 12px 8px;
    position: relative;
    transform: translateY(8px);
    opacity: 0;
    white-space: normal;
}

.rr-widget .rr-slot::before {
    background: linear-gradient(90deg, transparent, rgba(241, 217, 154, 0.42), transparent);
    content: "";
    height: 1px;
    left: 16px;
    opacity: 0;
    position: absolute;
    right: 16px;
    top: 10px;
    transition: opacity 180ms ease;
}

.rr-widget .rr-slots.is-ready .rr-slot {
    animation: rr-slot-in 320ms ease both;
    animation-delay: calc(var(--rr-index, 0) * 38ms);
}

.rr-widget .rr-slot:hover,
.rr-widget .rr-slot:focus-visible,
.rr-widget .rr-slot.is-selected {
    background:
        linear-gradient(180deg, rgba(241, 217, 154, 0.24), rgba(217, 189, 131, 0.10)),
        rgba(7, 22, 22, 0.92);
    border-color: var(--rr-gold-strong);
    color: var(--rr-text);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(241, 217, 154, 0.12);
    transform: translateY(-2px);
}

.rr-widget .rr-slot:hover::before,
.rr-widget .rr-slot:focus-visible::before,
.rr-widget .rr-slot.is-selected::before {
    opacity: 1;
}

.rr-widget .rr-slot small {
    color: var(--rr-muted);
    display: block;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    max-width: 100%;
    text-transform: none;
    white-space: normal;
}

.rr-widget .rr-slot span {
    color: var(--rr-gold-strong);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.15;
}

.rr-booking {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
    max-width: 920px;
}

.rr-booking[hidden],
.rr-confirmation[hidden] {
    display: none;
}

.rr-booking__summary,
.rr-booking__notes,
.rr-consent,
.rr-booking button {
    grid-column: 1 / -1;
}

.rr-booking__summary {
    background: var(--rr-panel-soft);
    border: 1px solid rgba(219, 186, 128, 0.22);
    color: var(--rr-gold-strong);
    line-height: 1.45;
    padding: 14px 16px;
    text-align: center;
    animation: rr-soft-in 260ms ease both;
}

.rr-consent {
    align-items: start;
    display: grid;
    gap: 10px;
    grid-template-columns: 18px 1fr;
}

.rr-consent input {
    appearance: auto;
    accent-color: var(--rr-gold);
    min-height: 18px;
    margin-top: 3px;
    padding: 0;
    width: 18px;
}

@media (max-width: 900px) {
    .rr-search,
    .rr-widget--compact .rr-search {
        grid-template-columns: 1fr;
    }

    .rr-progressive-fields,
    .rr-widget--compact .rr-progressive-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rr-progressive-fields button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .rr-widget {
        margin: 28px auto;
        padding: 28px 16px;
    }

    .rr-widget--compact {
        margin-top: 26px;
        padding: 26px 16px;
    }

    .rr-widget::before,
    .rr-widget::after {
        left: 16px;
        right: 16px;
    }

    .rr-widget p {
        font-size: 16px;
    }

    .rr-search,
    .rr-booking {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .rr-search__date {
        max-width: none;
    }

    .rr-progressive-fields,
    .rr-widget--compact .rr-progressive-fields {
        grid-template-columns: 1fr;
    }

    .rr-slots {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .rr-widget,
    .rr-widget::before,
    .rr-widget::after,
    .rr-widget .rr-slots.is-ready .rr-slot,
    .rr-progressive-fields.is-visible,
    .rr-confirmation,
    .rr-booking__summary,
    .rr-status.is-loading::after {
        animation: none;
    }

    .rr-widget input,
    .rr-widget select,
    .rr-widget textarea,
    .rr-widget button,
    .rr-status,
    .rr-slot {
        transition: none;
    }

    .rr-widget .rr-slot {
        opacity: 1;
        transform: none;
    }
}

@keyframes rr-fields-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rr-widget-enter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rr-line-sweep {
    from {
        opacity: 0;
        transform: scaleX(0.25);
    }

    to {
        opacity: 0.56;
        transform: scaleX(1);
    }
}

@keyframes rr-slot-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rr-confirmation-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rr-soft-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes rr-dots {
    0% {
        content: "";
    }

    25% {
        content: ".";
    }

    50% {
        content: "..";
    }

    75%,
    100% {
        content: "...";
    }
}
