:root {
    --reb-purple: #24183c;
    --reb-purple-soft: #3b183c;
    --reb-red: #ff3b40;
    --reb-red-dark: #e72d34;
    --reb-white: #ffffff;
    --reb-ink: #20182b;
    --reb-muted: #716a7b;
    --reb-line: #e8e4ec;
    --reb-bg: #f5f3f7;
    --reb-success: #177b4d;
    --reb-error: #b4232b;
}

.reb-rental,
.reb-rental * {
    box-sizing: border-box;
}

.reb-rental {
    color: var(--reb-ink);
    font-family: inherit;
    width: 100%;
    margin: 0 auto;
}

.reb-rental h1,
.reb-rental h2,
.reb-rental h3,
.reb-rental p {
    margin-top: 0;
}

.reb-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(42px, 7vw, 86px) clamp(24px, 6vw, 72px);
    background: linear-gradient(120deg, var(--reb-purple) 0%, var(--reb-purple-soft) 100%);
    color: var(--reb-white);
    border-bottom: 3px solid var(--reb-red);
}

.reb-hero::after {
    content: '';
    position: absolute;
    right: -90px;
    bottom: -160px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 70px solid rgba(255, 255, 255, 0.035);
}

.reb-hero > div {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.reb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.22em;
    margin-bottom: 18px;
}

.reb-eyebrow::before {
    content: '';
    width: 36px;
    height: 3px;
    background: var(--reb-red);
}

.reb-hero h1 {
    color: inherit;
    font-size: clamp(40px, 6vw, 74px);
    line-height: 0.98;
    letter-spacing: -0.035em;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.reb-hero p {
    max-width: 680px;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 0;
}

.reb-terms,
.reb-boats-section,
.reb-booking-section {
    padding: clamp(42px, 6vw, 76px) clamp(20px, 5vw, 64px);
}

.reb-terms,
.reb-booking-section {
    background: var(--reb-bg);
}

.reb-boats-section {
    background: var(--reb-white);
}

.reb-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    max-width: 1180px;
    margin: 0 auto 30px;
}

.reb-section-heading > span {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: var(--reb-red);
    color: var(--reb-white);
    font-size: 13px;
    font-weight: 900;
}

.reb-section-heading h2 {
    color: var(--reb-purple);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
    margin-bottom: 7px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.reb-section-heading p {
    color: var(--reb-muted);
    margin-bottom: 0;
}

.reb-price-grid,
.reb-boats,
.reb-form-grid,
.reb-customer-panel,
.reb-equipment,
.reb-deposit-card,
.reb-terms-copy,
.reb-booking-form {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.reb-price-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.reb-price-card {
    background: var(--reb-white);
    border: 1px solid var(--reb-line);
    padding: 28px;
    box-shadow: 0 12px 36px rgba(36, 24, 60, 0.06);
}

.reb-price-type {
    display: block;
    color: var(--reb-muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.reb-price-card > strong {
    display: block;
    color: var(--reb-purple);
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1;
    margin-bottom: 16px;
}

.reb-price-card > strong small {
    font-size: 15px;
    color: var(--reb-muted);
    margin-left: 6px;
}

.reb-price-card p {
    margin-bottom: 0;
    color: var(--reb-muted);
}

.reb-price-card b {
    color: var(--reb-red);
}

.reb-deposit-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 18px;
    padding: 22px 24px;
    border: 2px solid var(--reb-red);
    background: var(--reb-white);
    box-shadow: 0 12px 36px rgba(36, 24, 60, 0.06);
}

.reb-deposit-card > .dashicons {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    font-size: 34px;
    color: var(--reb-red);
}

.reb-deposit-card span:not(.dashicons) {
    display: block;
    color: var(--reb-muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.reb-deposit-card strong {
    display: block;
    margin: 5px 0 7px;
    color: var(--reb-purple);
    font-size: clamp(27px, 4vw, 38px);
    line-height: 1;
}

.reb-deposit-card p {
    margin: 0;
    color: var(--reb-muted);
    line-height: 1.55;
}

.reb-equipment {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    padding: 18px 20px;
    background: var(--reb-purple);
    color: var(--reb-white);
}

.reb-equipment .dashicons {
    color: var(--reb-red);
    margin-top: 2px;
}

.reb-equipment p {
    margin: 0;
    color: inherit;
}

.reb-terms-copy {
    padding-top: 20px;
    color: var(--reb-muted);
    line-height: 1.7;
}

.reb-boats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.reb-boat-card {
    position: relative;
    display: block;
    cursor: pointer;
    background: var(--reb-white);
    border: 2px solid var(--reb-line);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.reb-boat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 59, 64, 0.55);
    box-shadow: 0 20px 44px rgba(36, 24, 60, 0.12);
}

.reb-boat-card.is-selected {
    border-color: var(--reb-red);
    box-shadow: 0 0 0 3px rgba(255, 59, 64, 0.12), 0 20px 44px rgba(36, 24, 60, 0.14);
}

.reb-boat-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.reb-boat-image {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: #ece9f0;
    overflow: hidden;
}

.reb-boat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.reb-boat-card:hover .reb-boat-image img {
    transform: scale(1.035);
}

.reb-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
    text-align: center;
    color: var(--reb-muted);
}

.reb-boat-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 8px 11px;
    background: var(--reb-purple);
    color: var(--reb-white);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.reb-boat-content {
    display: block;
    padding: 22px;
}

.reb-boat-content > strong {
    display: block;
    color: var(--reb-purple);
    font-size: 22px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.reb-boat-description {
    display: block;
    min-height: 72px;
    color: var(--reb-muted);
    font-size: 14px;
    line-height: 1.55;
}

.reb-boat-description p {
    margin-bottom: 0;
}

.reb-boat-prices {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0;
    margin-top: 12px;
    border-top: 1px solid var(--reb-line);
    color: var(--reb-muted);
    font-size: 13px;
}

.reb-boat-prices b {
    color: var(--reb-red);
    font-size: 15px;
}

.reb-select-label {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    background: var(--reb-purple);
    color: var(--reb-white);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background 0.2s ease;
}

.reb-boat-card.is-selected .reb-select-label,
.reb-boat-card:hover .reb-select-label {
    background: var(--reb-red);
}

.reb-empty {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px;
    border: 1px dashed var(--reb-line);
    color: var(--reb-muted);
    background: var(--reb-bg);
}

.reb-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.7fr);
    gap: 24px;
}

.reb-date-panel,
.reb-summary,
.reb-customer-panel {
    background: var(--reb-white);
    border: 1px solid var(--reb-line);
    padding: 28px;
    box-shadow: 0 12px 36px rgba(36, 24, 60, 0.05);
}

.reb-date-panel h3,
.reb-customer-panel h3,
.reb-summary h3 {
    color: var(--reb-purple);
    font-size: 22px;
    margin-bottom: 22px;
}

.reb-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.reb-field-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reb-field {
    display: block;
    margin-bottom: 18px;
}

.reb-field > span {
    display: block;
    margin-bottom: 8px;
    color: var(--reb-purple);
    font-size: 13px;
    font-weight: 800;
}

.reb-field input,
.reb-field textarea {
    width: 100%;
    border: 1px solid #d9d3df;
    border-radius: 0;
    background: var(--reb-white);
    color: var(--reb-ink);
    padding: 14px 15px;
    min-height: 50px;
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.reb-field textarea {
    resize: vertical;
}

.reb-field input:focus,
.reb-field textarea:focus {
    border-color: var(--reb-red);
    box-shadow: 0 0 0 3px rgba(255, 59, 64, 0.1);
}

.reb-field input[readonly] {
    cursor: pointer;
    background: #fbfafc;
}

.reb-availability-message {
    padding: 12px 14px;
    background: var(--reb-bg);
    color: var(--reb-muted);
    font-size: 13px;
}

.reb-availability-message.is-loading {
    color: var(--reb-purple);
}

.reb-summary {
    background: var(--reb-purple);
    color: var(--reb-white);
}

.reb-summary-label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.reb-summary h3 {
    color: var(--reb-white);
    min-height: 53px;
}

.reb-summary-row,
.reb-summary-total {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.reb-summary-row span,
.reb-summary-total span {
    color: rgba(255, 255, 255, 0.68);
}

.reb-summary-total {
    align-items: flex-end;
    margin-top: 8px;
}

.reb-summary-total strong {
    color: var(--reb-red);
    font-size: 27px;
    line-height: 1;
}

.reb-customer-panel {
    margin-top: 24px;
}

.reb-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--reb-muted);
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
}

.reb-consent input {
    margin-top: 3px;
    accent-color: var(--reb-red);
}

.reb-form-message {
    max-width: 1180px;
    margin: 18px auto 0;
    min-height: 0;
}

.reb-form-message:not(:empty) {
    padding: 15px 18px;
    border-left: 4px solid var(--reb-purple);
    background: var(--reb-white);
}

.reb-form-message.is-error {
    color: var(--reb-error);
    border-color: var(--reb-error);
    background: #fff2f3;
}

.reb-form-message.is-success {
    color: var(--reb-success);
    border-color: var(--reb-success);
    background: #effaf5;
}

.reb-form-message.is-loading {
    color: var(--reb-purple);
}

.reb-submit {
    display: block;
    width: min(100%, 420px);
    min-height: 58px;
    margin: 20px auto 0;
    border: 0;
    border-radius: 0;
    background: var(--reb-red);
    color: var(--reb-white);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.055em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.reb-submit:hover {
    background: var(--reb-red-dark);
    transform: translateY(-2px);
}

.reb-submit:disabled {
    cursor: wait;
    opacity: 0.65;
    transform: none;
}

/* jQuery UI Datepicker */
.ui-datepicker {
    width: 308px;
    padding: 0;
    background: var(--reb-white);
    border: 1px solid var(--reb-line);
    box-shadow: 0 18px 48px rgba(36, 24, 60, 0.2);
    z-index: 999999 !important;
    font-family: inherit;
}

.ui-datepicker .ui-datepicker-header {
    position: relative;
    padding: 14px 46px;
    background: var(--reb-purple);
    color: var(--reb-white);
    border: 0;
    border-radius: 0;
}

.ui-datepicker .ui-datepicker-title {
    text-align: center;
    font-weight: 800;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    position: absolute;
    top: 9px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    color: transparent;
}

.ui-datepicker .ui-datepicker-prev { left: 7px; }
.ui-datepicker .ui-datepicker-next { right: 7px; }

.ui-datepicker .ui-datepicker-prev::before,
.ui-datepicker .ui-datepicker-next::before {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--reb-white);
    font-size: 22px;
}

.ui-datepicker .ui-datepicker-prev::before { content: '‹'; }
.ui-datepicker .ui-datepicker-next::before { content: '›'; }
.ui-datepicker .ui-icon { display: none; }

.ui-datepicker table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.ui-datepicker th {
    padding: 10px 2px;
    color: var(--reb-muted);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

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

.ui-datepicker td a,
.ui-datepicker td span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: auto;
    border: 0;
    background: transparent;
    color: var(--reb-ink);
    text-decoration: none;
    text-align: center;
}

.ui-datepicker td a:hover,
.ui-datepicker td .ui-state-active {
    background: var(--reb-red);
    color: var(--reb-white);
}

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

.ui-datepicker td.reb-date-unavailable span {
    background: #ffe5e6;
    color: var(--reb-error);
    text-decoration: line-through;
}

@media (max-width: 980px) {
    .reb-boats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reb-form-grid {
        grid-template-columns: 1fr;
    }

    .reb-field-grid-three {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .reb-hero,
    .reb-terms,
    .reb-boats-section,
    .reb-booking-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .reb-price-grid,
    .reb-boats,
    .reb-field-grid,
    .reb-field-grid-three {
        grid-template-columns: 1fr;
    }

    .reb-section-heading {
        gap: 12px;
    }

    .reb-section-heading > span {
        width: 38px;
        height: 38px;
    }

    .reb-price-card,
    .reb-date-panel,
    .reb-summary,
    .reb-customer-panel {
        padding: 20px;
    }

    .reb-boat-description {
        min-height: 0;
    }

    .ui-datepicker {
        width: calc(100vw - 32px);
        max-width: 340px;
    }
}
