/* =========================
   Multi Reservation Styles
   ========================= */

/* General form wrapper */
.mr-step {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    background: #fff;
    max-width: 600px;
    margin: 20px auto;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Rows and labels */
.mr-row {
    margin-bottom: 15px;
}
.mr-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}
.mr-row input,
.mr-row select,
.mr-row textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border 0.2s ease-in-out;
}
.mr-row input:focus,
.mr-row select:focus,
.mr-row textarea:focus {
    border-color: #0073aa;
    outline: none;
}

/* Time selection grid */
.mr-time-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
}
.mr-time-btn {
    flex: 1 0 auto;
    padding: 6px 12px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
}
.mr-time-btn:hover,
.mr-time-btn:focus {
    background: #eee;
    outline: none;
}
.mr-time-btn.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Buttons */
.mr-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease-in-out;
    text-align: center;
}
.mr-btn:hover,
.mr-btn:focus {
    background: #005177;
    outline: none;
}
.mr-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}
.mr-buttons .mr-btn {
    flex: 1;
}

/* Messages */
.mr-message {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 600;
}
.mr-error {
    background: #ffe0e0;
    border: 1px solid #e0a2a2;
    color: #a33;
}
.mr-info {
    background: #e8f4ff;
    border: 1px solid #a2c6e0;
    color: #225;
}
.mr-success {
    background: #e0ffe0;
    border: 1px solid #b2d8b2;
    color: #2d662d;
}

/* Confirmation message */
.mr-confirm {
    padding: 20px;
    background: #e0ffe0;
    border: 1px solid #b2d8b2;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    color: #2d662d;
}

/* =========================
   Responsive adjustments
   ========================= */

/* Tablet and down */
@media (max-width: 900px) {
    .mr-step {
        max-width: 90%;
        padding: 15px;
    }
    .mr-time-btn {
        font-size: 13px;
        padding: 6px 10px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .mr-time-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }
    .mr-buttons {
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
    }
    .mr-btn {
        width: 100%;
    }
}

/* =========================
   Price Info
   ========================= */
#mr-price-box {
    margin-top: 15px;
    padding: 12px;
    border: 1px dashed #ccc;
    border-radius: 6px;
    background: #f9f9f9;
    font-size: 14px;
}
#mr-price-box .mr-price-line {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}
#mr-price-box .mr-total-line {
    font-weight: 700;
    color: #0073aa;
}
