.roovtop-booking-wrapper {
    max-width: 700px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

.roovtop-booking-header h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.roovtop-step {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 15px;
}

.roovtop-step h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
}

.roovtop-step h4 {
    margin: 20px 0 10px 0;
    font-size: 15px;
    color: #555;
}

.roovtop-required {
    color: #e74c3c;
}

/* Date fields */
.roovtop-date-fields {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.roovtop-date-fields .roovtop-field {
    flex: 1;
}

/* Contact fields */
.roovtop-contact-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 5px;
}

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

/* Form elements */
.roovtop-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
    color: #555;
}

.roovtop-field input,
.roovtop-field textarea,
.roovtop-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.roovtop-field input:focus,
.roovtop-field textarea:focus,
.roovtop-field select:focus {
    border-color: #2d6a4f;
    outline: none;
    box-shadow: 0 0 0 2px rgba(45, 106, 79, 0.15);
}

/* Extras */
.roovtop-extras-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.roovtop-extra-item {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
}

.roovtop-extra-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}

.roovtop-extra-name {
    flex: 1;
}

.roovtop-extra-price {
    color: #666;
    font-size: 14px;
    white-space: nowrap;
}

.roovtop-extra-quantity-wrapper {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.roovtop-extra-quantity-wrapper label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
}

.roovtop-extra-quantity-wrapper select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

/* Price breakdown - borg apart */
.roovtop-price-breakdown {
    padding-top: 5px;
}

.roovtop-kostenoverzicht-title {
    font-weight: 700;
    margin: 0 0 15px 0;
}

.roovtop-price-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}

.roovtop-price-total {
    border-top: 2px solid #333;
    margin-top: 5px;
    padding-top: 10px;
    font-size: 16px;
}

.roovtop-borg-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.roovtop-borg-info {
    font-size: 13px;
    color: #888;
    margin: 5px 0 0 0;
    font-style: italic;
}

.roovtop-price-advance {
    background: #e6f4ea;
    margin: 15px -25px -20px;
    padding: 12px 25px;
    color: #1a7431;
    border-radius: 0 0 8px 8px;
}

/* Checkboxes */
.roovtop-checkboxes {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.roovtop-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    line-height: 1.5;
}

.roovtop-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: auto;
    flex-shrink: 0;
}

.roovtop-checkbox-label a {
    color: #2d6a4f;
    text-decoration: underline;
}

/* Buttons */
.roovtop-btn {
    display: inline-block;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.roovtop-btn-primary {
    background: #2d6a4f;
    color: #fff;
    width: 100%;
}

.roovtop-btn-primary:hover:not(:disabled) {
    background: #1b4332;
}

.roovtop-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Submit section */
.roovtop-submit-section {
    margin-top: 20px;
    text-align: center;
}

/* Info & error messages */
.roovtop-info {
    background: #e8f0fe;
    color: #174ea6;
    padding: 10px 15px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 14px;
}

.roovtop-error {
    background: #fce8e8;
    color: #a10000;
    padding: 10px 15px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 14px;
}

.roovtop-success {
    text-align: center;
    padding: 40px 20px;
    background: #e6f4ea;
    border-radius: 8px;
}

.roovtop-success h2 {
    color: #1a7431;
    margin-bottom: 10px;
}

.roovtop-loading {
    text-align: center;
    padding: 15px;
    color: #666;
    font-style: italic;
}

/* ======================================
   Flatpickr overrides - Airbnb/Booking style
   PREFIX: rv- (roovtop visual)
   Connected range band with circle endpoints
   ====================================== */

/* DEFAULT disabled: light grey, no strikethrough (minDate, day-rules) */
.flatpickr-day.flatpickr-disabled {
    background: transparent !important;
    color: #ccc !important;
    text-decoration: none !important;
}

/* BOOKED dates: red background + strikethrough (must come AFTER generic) */
.flatpickr-day.rv-booked,
.flatpickr-day.flatpickr-disabled.rv-booked {
    background: #fce8e8 !important;
    color: #d32f2f !important;
    text-decoration: line-through !important;
    cursor: not-allowed !important;
}

/* PICKUP marker: dark circle */
.flatpickr-day.rv-pickup,
.flatpickr-day.flatpickr-disabled.rv-pickup {
    background: #222 !important;
    color: #fff !important;
    border-color: #222 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border-radius: 50% !important;
    position: relative !important;
    overflow: visible !important;
}

/* Pickup → right-half grey connector when range/hover is active */
.flatpickr-day.rv-pickup.rv-connect-right::before,
.flatpickr-day.flatpickr-disabled.rv-pickup.rv-connect-right::before {
    content: '' !important;
    position: absolute !important;
    top: -1px !important;
    bottom: -1px !important;
    left: 50% !important;
    right: -1px !important;
    background: #f0f0f0 !important;
    z-index: -1 !important;
    border-radius: 0 !important;
}

/* MIN-PERIOD: between pickup and minReturn — subtle, not red */
.flatpickr-day.rv-min-period,
.flatpickr-day.flatpickr-disabled.rv-min-period {
    background: transparent !important;
    color: #ccc !important;
    text-decoration: none !important;
    cursor: help !important;
}

/* IN-RANGE: connected grey band between pickup and return */
.flatpickr-day.rv-in-range {
    background: #f0f0f0 !important;
    color: #333 !important;
    border-radius: 0 !important;
    border-color: #f0f0f0 !important;
}

/* RETURN marker: dark circle with left-half connector */
.flatpickr-day.rv-return,
.flatpickr-day.selected.rv-return {
    background: #222 !important;
    color: #fff !important;
    border-color: #222 !important;
    font-weight: 700 !important;
    border-radius: 50% !important;
    position: relative !important;
    overflow: visible !important;
}

.flatpickr-day.rv-return::before,
.flatpickr-day.selected.rv-return::before {
    content: '' !important;
    position: absolute !important;
    top: -1px !important;
    bottom: -1px !important;
    left: -1px !important;
    right: 50% !important;
    background: #f0f0f0 !important;
    z-index: -1 !important;
    border-radius: 0 !important;
}

/* HOVER RANGE: connected preview band (before selecting return) */
.flatpickr-day.rv-hover-range {
    background: #f0f0f0 !important;
    color: #333 !important;
    border-radius: 0 !important;
    border-color: #f0f0f0 !important;
}

/* HOVER END: medium circle with left-half connector */
.flatpickr-day.rv-hover-end {
    background: #ccc !important;
    color: #fff !important;
    border-radius: 50% !important;
    font-weight: 600 !important;
    position: relative !important;
    overflow: visible !important;
}

.flatpickr-day.rv-hover-end::before {
    content: '' !important;
    position: absolute !important;
    top: -1px !important;
    bottom: -1px !important;
    left: -1px !important;
    right: 50% !important;
    background: #f0f0f0 !important;
    z-index: -1 !important;
    border-radius: 0 !important;
}

/* EXCEPTION days: look normal, subtle orange dot underneath */
.flatpickr-day.rv-exception {
    cursor: help !important;
    position: relative;
}

.flatpickr-day.rv-exception::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #f39c12;
}

/* Override flatpickr selected state to not conflict */
.flatpickr-day.selected {
    background: #222 !important;
    color: #fff !important;
    border-color: #222 !important;
    font-weight: 700 !important;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .roovtop-date-fields {
        flex-direction: column;
    }

    .roovtop-contact-fields {
        grid-template-columns: 1fr;
    }

    .roovtop-step {
        padding: 15px;
    }

    .roovtop-price-advance {
        margin: 15px -15px 0;
        padding: 12px 15px;
    }
}
