/* ==========================================================
   HIDE HEADER + FOOTER ONLY ON HOMEPAGE (WP 2025)
========================================================== */
body.home header,
body.home footer,
body.home .entry-title,
body.home .wp-block-post-title,
body.home .site-header,
body.home .site-footer,
body.home .wp-block-template-part {
    display: none !important;
}

body.home .wp-site-blocks,
body.home .entry-content,
body.home main {
    margin: 0 !important;
    padding: 0 !important;
}

body.home {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    overflow-x: hidden;
    --wp--style--block-gap: 0px !important;
}

/* Remove all default block spacing */
body.home .wp-block-group,
body.home .wp-block-post-content,
body.home .wp-site-blocks,
body.home main,
body.home .entry-content,
body.home .wp-block-template-part,
body.home .wp-block-group.has-global-padding,
body.home .is-layout-constrained,
body.home .alignwide,
body.home .alignfull,
body.home article {
    padding: 0 !important;
    margin: 0 !important;
}

body.home .entry-content > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
/* ==========================================================
   WRAPPER + TOP BAR
========================================================== */
.mb-rental-wrapper {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 1.5rem 0 0 0;
    background-color: #f2e6d8;
}

.mb-rental-topbar {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1rem;
    padding: 0 1.5rem;
}

.mb-rental-back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.9rem;
    background: #1b65a6;
    color: #ffffff;
    transition: background 0.2s ease, transform 0.1s ease;
}

.mb-rental-back-home:hover {
    background: #154d7c;
    transform: translateY(-1px);
}

/* ==========================================================
   FULL-WIDTH HERO SECTIONS (IMAGE + TEXT)
========================================================== */
.mb-rental-hero {
    width: 100%;
    background: #4ab0d9;
    padding: 3rem 1.5rem;
    border-radius: 0;
}

.mb-rental-hero-inner {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
}

/* top: image left, text right */
.mb-rental-hero-top .mb-rental-hero-inner {
    flex-direction: row;
}

/* bottom: text left, image right */
.mb-rental-hero-bottom .mb-rental-hero-inner {
    flex-direction: row-reverse;
}

/* image block */
.mb-rental-hero-image {
    flex: 1 1 50%;
    border-radius: 1rem;
    min-height: 380px;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* actual images */
.mb-rental-image-1 {
    background-image: url('https://mayorsbikerent.nl/wp-content/uploads/2025/12/image-1-1.webp');
}

.mb-rental-image-2 {
    background-image: url('https://mayorsbikerent.nl/wp-content/uploads/2025/12/image-2-2.jpg');
}

/* text block */
.mb-rental-hero-text {
    flex: 1 1 50%;
    background: #1b65a6;
    color: #ffffff;
    border-radius: 1rem;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mb-rental-hero-text h2 {
    margin: 0 0 1rem 0;
    font-size: 2rem;
}

.mb-rental-hero-text p {
    margin: 0;
    line-height: 1.55;
    font-size: 1.05rem;
}

/* CTA button in bottom hero */
.mb-rental-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    padding: 0.8rem 2rem;
    border-radius: 999px;
    background: #1e1d40;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.mb-rental-cta-btn:hover {
    background: #141330;
    transform: translateY(-1px);
}

/* ==========================================================
   FORM SECTION (BEIGE BACKGROUND)
========================================================== */
.mb-rental-form-section {
    width: 100%;
    background: #f2e6d8;
    border-radius: 0;
    padding: 2.5rem 1.5rem;
}

/* center inner content */
.mb-rental-form-section .mb-rental-form-title,
.mb-rental-form-section .mb-rental-form-subtitle,
.mb-rental-form-section .mb-rental-form,
.mb-rental-form-section .mb-rental-message {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.mb-rental-form-title {
    margin: 0 0 0.25rem 0;
    font-size: 1.7rem;
    color: #1b65a6;
}

.mb-rental-form-subtitle {
    margin: 0 0 1.5rem 0;
    font-size: 0.95rem;
    color: #444;
}

/* messages */
.mb-rental-message {
    padding: 10px 12px;
    margin: 10px 0 1.2rem 0;
    border-radius: 6px;
    font-size: 0.9rem;
}

.mb-rental-success {
    background: #e6ffed;
    border: 1px solid #009a3e;
}

.mb-rental-errors {
    background: #ffe6e6;
    border: 1px solid #cc0000;
}

.mb-rental-errors ul {
    margin: 0;
    padding-left: 18px;
}

/* form fields */
.mb-rental-form p {
    margin-bottom: 0.9rem;
}

.mb-rental-form label {
    font-size: 0.92rem;
    color: #1e1d40;
}

.mb-rental-form input,
.mb-rental-form select {
    margin-top: 0.25rem;
    max-width: 320px;
    width: 100%;
    padding: 0.45rem 0.55rem;
    border-radius: 6px;
    border: 1px solid #d2c3b0;
    font-size: 0.95rem;
    box-sizing: border-box;
    background: #ffffff;
}

/* textareas */
.mb-rental-form textarea {
    margin-top: 0.25rem;
    max-width: 520px;
    width: 100%;
    padding: 0.45rem 0.55rem;
    border-radius: 6px;
    border: 1px solid #d2c3b0;
    font-size: 0.95rem;
    box-sizing: border-box;
    background: #ffffff;
}

/* date fields row */
.mb-rental-dates-row {
    display: flex;
    gap: 0.75rem;
    max-width: 360px;
    margin-bottom: 0.4rem;
}

.mb-rental-date-field {
    flex: 1;
}

.mb-rental-note-small {
    font-size: 0.8rem;
    color: #555;
}

/* price summary */
.mb-rental-price-summary {
    margin-top: 0.5rem;
    font-weight: 600;
    color: #1e1d40;
    font-size: 0.98rem;
}

/* submit button */
.mb-rental-form button[type="submit"] {
    background: #1b65a6;
    color: #ffffff;
    border: none;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.98rem;
    font-weight: 600;
    margin-top: 0.5rem;
    transition: background 0.2s ease, transform 0.1s ease;
}

.mb-rental-form button[type="submit"]:hover {
    background: #154d7c;
    transform: translateY(-1px);
}

/* ==========================================================
   MULTI BIKE PICKER (NEW)
========================================================== */
.mb-bike-picker {
    max-width: 900px;
    margin: 14px auto 18px auto;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #d2c3b0;
    background: #ffffff;
}

.mb-bike-limit {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}

.mb-bike-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid #e3d6c6;
    border-radius: 12px;
    background: #fff;
    margin-top: 10px;
}

.mb-bike-name {
    font-weight: 700;
    color: #1e1d40;
    flex: 1;
    min-width: 140px;
}

.mb-bike-left {
    font-size: 12px;
    color: #555;
    width: 90px;
    text-align: right;
    white-space: nowrap;
}

.mb-bike-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mb-qty-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: none;
    background: #1b65a6;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    flex: 0 0 auto;
}

.mb-qty-input {
    width: 52px !important;
    max-width: 52px !important;
    text-align: center;
    padding: 0.3rem 0.2rem;
}

.mb-bike-total {
    margin-top: 12px;
    font-size: 13px;
    color: #555;
    font-weight: 600;
}

/* Terms checkbox normal size */
.mb-terms-label {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 520px;
}

.mb-terms-label input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    margin: 0 !important;
}

/* ==========================================================
   RESPONSIVE
========================================================== */
@media (max-width: 768px) {
    .mb-rental-topbar {
        padding: 0 1rem;
    }

    .mb-rental-hero {
        padding: 2rem 1rem;
        min-height: 0;
    }

    .mb-rental-hero-inner {
        flex-direction: column;
    }

    .mb-rental-hero-bottom .mb-rental-hero-inner {
        flex-direction: column;
    }

    .mb-rental-hero-image {
        min-height: 200px;
    }
    .mb-rental-image-1{
        display:none;
    }
    .mb-rental-hero-text {
        padding: 1.8rem 1.4rem;
    }

    .mb-rental-form-section {
        padding: 2rem 1rem;
    }

    .mb-rental-dates-row {
        flex-direction: column;
        max-width: 100%;
    }

    .mb-rental-back-home {
        font-size: 0.85rem;
        padding: 0.4rem 0.9rem;
    }

    /* Bike picker on mobile */
    .mb-bike-row {
        flex-direction: column;
        align-items: stretch;
    }

    .mb-bike-left {
        width: auto;
        text-align: left;
    }

    .mb-bike-qty {
        justify-content: flex-start;
    }
}

/* Avoid horizontal overflow on full-width sections */
.mb-rental-wrapper,
.mb-rental-hero,
.mb-rental-form-section {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

/* Make checkbox not take input width */
.mb-rental-form input[type="checkbox"] {
    max-width: none;
    width: auto;
    display: inline-block;
    margin-right: 0.4rem;
}

.note {
    color: #c41013;
    font-weight: bold;
}