.kubanya-booking {
    --kb-forest: var(--forest-700, #17372d);
    --kb-forest-dark: var(--forest-900, #0d1b17);
    --kb-cream: var(--cream-50, #fbf9f4);
    --kb-cream-deep: var(--cream-200, #e9e2d5);
    --kb-clay: var(--clay-500, #c87952);
    --kb-gold: var(--gold-500, #c7a46a);
    --kb-text: var(--ink, #173029);
    --kb-muted: var(--muted, #65726c);
    --kb-line: var(--line, rgba(23, 55, 45, 0.16));
    position: relative;
    width: 100%;
    color: var(--kb-text);
    font-family: var(--sans, Inter, Manrope, system-ui, sans-serif);
}

.kb-house-option--disabled {
    cursor: not-allowed;
    opacity: .62;
}

.kb-house-option--disabled .kb-house-option__body {
    border-style: dashed;
}

.kb-house-option--disabled .kb-house-option__title i {
    background: #7f6845;
    color: #fff;
}

.kb-stay-time {
    margin: 12px 0 0;
    color: var(--kb-muted, #6d695f);
    font-size: .9rem;
}

.kb-coming-soon {
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid rgba(154, 119, 62, .35);
    border-radius: 22px;
    background: #f5efe4;
}

.kb-coming-soon strong {
    display: block;
    margin-bottom: 8px;
    font-family: Georgia, serif;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.kb-coming-soon p {
    margin: 0 0 14px;
}

.kb-coming-soon a {
    font-weight: 700;
}

.kubanya-booking *,
.kubanya-booking *::before,
.kubanya-booking *::after {
    box-sizing: border-box;
}

.kb-fieldset {
    position: relative;
    padding: 30px 0;
    border: 0;
    border-top: 1px solid var(--kb-line);
}

.kb-fieldset:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.kb-fieldset__heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.kb-fieldset__heading > span {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--kb-forest);
    border: 1px solid var(--kb-line);
    border-radius: 50%;
    font-family: var(--serif, Georgia, serif);
    font-size: 12px;
}

.kb-fieldset__heading > div {
    display: flex;
    flex-direction: column;
}

.kb-fieldset__heading strong {
    font-size: 14px;
    line-height: 1.25;
}

.kb-fieldset__heading small {
    margin-top: 4px;
    color: var(--kb-muted);
    font-size: 11px;
    line-height: 1.35;
}

.kb-house-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.kb-house-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.kb-house-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.kb-house-option__body {
    position: relative;
    display: flex;
    min-height: 108px;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    border: 1px solid var(--kb-line);
    background: transparent;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.kb-house-option__body::after {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 13px;
    height: 13px;
    content: "";
    border: 1px solid var(--kb-line);
    border-radius: 50%;
    box-shadow: inset 0 0 0 3px var(--kb-cream);
    transition: background 180ms ease;
}

.kb-house-option:hover .kb-house-option__body {
    transform: translateY(-2px);
    border-color: rgba(23, 55, 45, 0.42);
}

.kb-house-option input:checked + .kb-house-option__body {
    color: var(--kb-cream);
    border-color: var(--kb-forest);
    background: var(--kb-forest);
}

.kb-house-option input:focus-visible + .kb-house-option__body {
    outline: 3px solid var(--kb-clay);
    outline-offset: 3px;
}

.kb-house-option input:checked + .kb-house-option__body::after {
    border-color: var(--kb-cream);
    background: var(--kb-gold);
    box-shadow: inset 0 0 0 3px var(--kb-forest);
}

.kb-house-option__title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding-right: 24px;
}

.kb-house-option__title strong {
    font-family: var(--serif, Georgia, serif);
    font-size: 25px;
    font-weight: 500;
    line-height: 1;
}

.kb-house-option__title i {
    color: var(--kb-muted);
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.kb-house-option input:checked + .kb-house-option__body .kb-house-option__title i,
.kb-house-option input:checked + .kb-house-option__body > small {
    color: rgba(255, 255, 255, 0.58);
}

.kb-house-option__body > small {
    margin-top: 10px;
    color: var(--kb-muted);
    font-size: 10px;
}

.kb-calendar-field {
    position: relative;
}

.kb-calendar-trigger {
    display: flex;
    width: 100%;
    min-height: 66px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    color: var(--kb-text);
    border: 1px solid var(--kb-line);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: border-color 180ms ease, background 180ms ease;
}

.kb-calendar-trigger:hover,
.kb-calendar-trigger[aria-expanded="true"] {
    border-color: rgba(23, 55, 45, 0.54);
    background: rgba(23, 55, 45, 0.035);
}

.kb-calendar-trigger > span {
    display: flex;
    flex-direction: column;
}

.kb-calendar-trigger small {
    margin-bottom: 3px;
    color: var(--kb-muted);
    font-size: 10px;
}

.kb-calendar-trigger strong {
    font-size: 14px;
}

.kb-calendar-trigger > i {
    position: relative;
    width: 19px;
    height: 19px;
    border: 1px solid currentColor;
    border-radius: 2px;
    opacity: 0.6;
}

.kb-calendar-trigger > i::before,
.kb-calendar-trigger > i::after {
    position: absolute;
    content: "";
}

.kb-calendar-trigger > i::before {
    top: 4px;
    right: 2px;
    left: 2px;
    height: 1px;
    background: currentColor;
}

.kb-calendar-trigger > i::after {
    top: -3px;
    left: 4px;
    width: 8px;
    height: 4px;
    border-right: 1px solid currentColor;
    border-left: 1px solid currentColor;
}

.kb-calendar[hidden] {
    display: none;
}

.kb-calendar {
    position: absolute;
    z-index: 50;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    min-width: min(720px, calc(100vw - 48px));
    padding: 22px;
    color: var(--kb-text);
    border: 1px solid var(--kb-line);
    background: var(--kb-cream);
    box-shadow: 0 28px 80px rgba(9, 19, 15, 0.2);
}

.kb-calendar__toolbar {
    display: grid;
    margin-bottom: 18px;
    grid-template-columns: 38px 1fr 38px;
    align-items: center;
    gap: 12px;
}

.kb-calendar__toolbar p {
    margin: 0;
    color: var(--kb-muted);
    font-size: 11px;
    text-align: center;
}

.kb-calendar__toolbar button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--kb-text);
    border: 1px solid var(--kb-line);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.kb-calendar__toolbar button:hover:not(:disabled) {
    color: var(--kb-cream);
    background: var(--kb-forest);
}

.kb-calendar__toolbar button:disabled {
    cursor: default;
    opacity: 0.25;
}

.kb-calendar__months {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.kb-calendar-month + .kb-calendar-month {
    padding-left: 24px;
    border-left: 1px solid var(--kb-line);
}

.kb-calendar-month h3 {
    margin: 0 0 13px;
    font-family: var(--serif, Georgia, serif);
    font-size: 20px;
    font-weight: 500;
    text-align: center;
}

.kb-calendar-weekdays,
.kb-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.kb-calendar-weekdays span {
    padding: 4px 0 8px;
    color: var(--kb-muted);
    font-size: 9px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.kb-calendar-day {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 50px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 1px;
    color: var(--kb-text);
    border: 0;
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
}

.kb-calendar-day:not(:disabled):hover {
    z-index: 2;
    color: var(--kb-forest);
    box-shadow: inset 0 0 0 1px var(--kb-forest);
}

.kb-calendar-day b {
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.kb-calendar-day small {
    margin-top: 5px;
    color: var(--kb-muted);
    font-size: 8px;
    line-height: 1;
}

.kb-calendar-day--blank {
    min-height: 50px;
}

.kb-calendar-day:disabled {
    cursor: default;
    opacity: 0.27;
}

.kb-calendar-day.is-unavailable {
    color: #b34848;
    background: rgba(179, 72, 72, 0.1);
    opacity: 0.64;
    text-decoration: line-through;
}

.kb-calendar-day.is-unavailable small {
    color: #b34848;
    font-size: 7px;
    text-decoration: none;
}

.kb-calendar-day.is-range {
    color: var(--kb-forest);
    border-radius: 0;
    background: rgba(199, 164, 106, 0.24);
}

.kb-calendar-day.is-selected {
    z-index: 2;
    color: var(--kb-cream);
    background: var(--kb-forest);
}

.kb-calendar-day.is-selected small {
    color: rgba(255, 255, 255, 0.66);
}

.kb-calendar__legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--kb-line);
}

.kb-calendar__legend span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--kb-muted);
    font-size: 9px;
}

.kb-calendar__legend i {
    width: 8px;
    height: 8px;
    border: 1px solid var(--kb-line);
    border-radius: 50%;
}

.kb-calendar__legend .is-selected { background: var(--kb-forest); }
.kb-calendar__legend .is-unavailable { background: rgba(179, 72, 72, 0.4); }

.kb-fieldset--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.75fr);
    align-items: end;
    gap: 34px;
}

.kb-guests .kb-fieldset__heading {
    margin-bottom: 15px;
}

.kb-stepper {
    display: grid;
    width: 166px;
    height: 52px;
    border: 1px solid var(--kb-line);
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
}

.kb-stepper button {
    height: 100%;
    color: var(--kb-text);
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
}

.kb-stepper button:hover:not(:disabled) {
    color: var(--kb-cream);
    background: var(--kb-forest);
}

.kb-stepper button:disabled {
    cursor: default;
    opacity: 0.24;
}

.kb-stepper output {
    display: grid;
    height: 100%;
    place-items: center;
    border-right: 1px solid var(--kb-line);
    border-left: 1px solid var(--kb-line);
    font-weight: 700;
}

.kb-estimate {
    display: flex;
    min-height: 98px;
    flex-direction: column;
    justify-content: center;
    padding: 17px 20px;
    color: var(--kb-cream);
    background: var(--kb-forest);
}

.kb-estimate small,
.kb-estimate span {
    color: rgba(255, 255, 255, 0.57);
    font-size: 9px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.kb-estimate strong {
    margin: 5px 0;
    font-family: var(--serif, Georgia, serif);
    font-size: 30px;
    font-weight: 500;
    line-height: 1;
}

.kb-input-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.kb-input {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.kb-input > span {
    margin-bottom: 7px;
    color: var(--kb-text);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.kb-input > span small {
    color: var(--kb-muted);
    font-weight: 500;
    text-transform: none;
}

.kb-input input,
.kb-input textarea {
    width: 100%;
    min-height: 55px;
    padding: 14px 16px;
    color: var(--kb-text);
    border: 1px solid var(--kb-line);
    border-radius: 3px;
    background: transparent;
    box-shadow: none;
    outline: none;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.kb-input textarea {
    min-height: 94px;
    resize: vertical;
}

.kb-input input::placeholder,
.kb-input textarea::placeholder {
    color: #96a09b;
}

.kb-input input:focus,
.kb-input textarea:focus {
    border-color: var(--kb-forest);
    background: rgba(23, 55, 45, 0.025);
    box-shadow: 0 0 0 3px rgba(23, 55, 45, 0.08);
}

.kb-contact-method {
    display: flex;
    padding: 0;
    margin: 2px 0 18px;
    border: 0;
    gap: 10px;
}

.kb-contact-method legend {
    width: 100%;
    margin-bottom: 8px;
    color: var(--kb-text);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.kb-contact-method label {
    position: relative;
    cursor: pointer;
}

.kb-contact-method input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.kb-contact-method label > span {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    color: var(--kb-muted);
    border: 1px solid var(--kb-line);
    border-radius: 3px;
    font-size: 12px;
    font-weight: 700;
}

.kb-contact-method label > span i {
    color: var(--kb-clay);
    font-size: 15px;
    font-style: normal;
}

.kb-contact-method input:checked + span {
    color: var(--kb-cream);
    border-color: var(--kb-forest);
    background: var(--kb-forest);
}

.kb-contact-method input:checked + span i {
    color: var(--kb-gold);
}

.kb-contact-method input:focus-visible + span {
    outline: 3px solid var(--kb-clay);
    outline-offset: 3px;
}

.kb-consent {
    display: grid;
    grid-template-columns: 18px 1fr;
    align-items: start;
    gap: 10px;
    color: var(--kb-muted);
    cursor: pointer;
    font-size: 10px;
    line-height: 1.45;
}

.kb-consent input {
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
    accent-color: var(--kb-forest);
}

.kb-consent a {
    color: var(--kb-forest);
}

.kb-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.kb-submit-row {
    display: grid;
    grid-template-columns: minmax(210px, 0.72fr) minmax(0, 1.28fr);
    align-items: center;
    gap: 20px;
}

.kb-submit {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    color: var(--kb-cream);
    border: 1px solid var(--kb-forest);
    border-radius: 3px;
    background: var(--kb-forest);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: background 180ms ease, transform 180ms ease;
}

.kb-submit:hover:not(:disabled) {
    background: #245143;
    transform: translateY(-2px);
}

.kb-submit:disabled {
    cursor: wait;
    opacity: 0.62;
}

.kb-submit.is-loading i {
    animation: kb-loading 800ms ease infinite alternate;
}

.kb-submit-row > p {
    margin: 0;
    color: var(--kb-muted);
    font-size: 9px;
    line-height: 1.45;
}

.kb-form-status {
    padding: 16px 18px;
    margin-top: 20px;
    color: #8e3535;
    border: 1px solid rgba(179, 72, 72, 0.28);
    background: rgba(179, 72, 72, 0.08);
    font-size: 12px;
}

.kb-form-status[data-type="success"] {
    color: var(--kb-forest);
    border-color: rgba(23, 55, 45, 0.25);
    background: rgba(23, 55, 45, 0.08);
}

@keyframes kb-loading {
    to { transform: translateX(6px); }
}

@media (max-width: 720px) {
    .kb-house-options,
    .kb-fieldset--split,
    .kb-input-grid,
    .kb-submit-row {
        grid-template-columns: 1fr;
    }

    .kb-calendar {
        position: fixed;
        z-index: 5000;
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        min-width: 0;
        width: 100%;
        max-height: 88vh;
        overflow: auto;
        padding: 20px 14px 24px;
        border-radius: 12px 12px 0 0;
    }

    .kb-calendar__months {
        grid-template-columns: 1fr;
    }

    .kb-calendar-month + .kb-calendar-month {
        display: none;
    }

    .kb-calendar-day {
        min-height: 48px;
    }

    .kb-fieldset--split {
        align-items: stretch;
    }

    .kb-stepper {
        width: 100%;
    }

    .kb-estimate {
        min-height: 90px;
    }

    .kb-contact-method {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kb-contact-method label > span {
        width: 100%;
        justify-content: center;
    }

    .kb-submit {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .kb-house-option__title {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .kb-calendar-day {
        min-height: 45px;
    }

    .kb-calendar-day small {
        font-size: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kb-submit.is-loading i {
        animation: none;
    }
}
