/* =============================================
   LAKELAND MOONWALK BOOKING PLUGIN — STYLES
   ============================================= */

/* ─── SALES BADGE ─────────────────────────── */
.lmb-badge {
    display: inline-block;
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    pointer-events: none;
    /* colour injected by dynamic CSS */
}

/* ensure product thumbnail wrapper is position:relative */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    position: relative;
}

/* ─── BUTTON WRAP ─────────────────────────── */
.lmb-btn-wrap {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* ─── BASE BUTTON ─────────────────────────── */
.lmb-btn {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    color: #ffffff !important;
    line-height: 1.2;
    transition: opacity .18s, transform .15s, box-shadow .15s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    white-space: nowrap;
    font-family: inherit;
}

.lmb-btn:hover {
    opacity: .88;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    color: #ffffff !important;
    text-decoration: none;
}

.lmb-btn:active {
    transform: translateY(0);
}

.lmb-btn:disabled,
.lmb-btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

/* colours injected by dynamic CSS:
   .lmb-btn-reserve  → navy #1a2e6c
   .lmb-btn-book     → red  #e63329  */

/* ─── OVERLAY ─────────────────────────────── */
.lmb-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: lmbFadeIn .2s ease;
}

.lmb-overlay[hidden] {
    display: none !important;
}

@keyframes lmbFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ─── MODAL BOX ───────────────────────────── */
.lmb-modal {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.30);
    width: 100%;
    max-width: 580px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    animation: lmbSlideUp .22s ease;
    scrollbar-width: thin;
}

@keyframes lmbSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ─── CLOSE BUTTON ────────────────────────── */
.lmb-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f0f2f5;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    padding: 0;
}

.lmb-close:hover {
    background: #e0e3e8;
    color: #222;
}

/* ─── MODAL HEADER ────────────────────────── */
.lmb-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 2px solid #f0f2f5;
}

.lmb-modal-header img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    border: 2px solid #e8eaed;
}

.lmb-modal-meta .lmb-modal-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e63329;
    margin: 0 0 4px;
}

.lmb-modal-meta h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a2e6c;
    margin: 0 0 4px;
    line-height: 1.3;
}

.lmb-modal-price {
    font-size: 16px;
    font-weight: 700;
    color: #e63329;
    margin: 0;
}

/* ─── FORM FIELDS ─────────────────────────── */
.lmb-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.lmb-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.lmb-row .lmb-field {
    margin-bottom: 0;
}

.lmb-field label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.lmb-field label span {
    color: #e63329;
}

.lmb-field input,
.lmb-field textarea {
    border: 1.5px solid #d0d4db;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    color: #222;
    background: #fafbfc;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

.lmb-field input:focus,
.lmb-field textarea:focus {
    outline: none;
    border-color: #1a2e6c;
    box-shadow: 0 0 0 3px rgba(26,46,108,0.10);
    background: #fff;
}

.lmb-field input:invalid:not(:placeholder-shown),
.lmb-field textarea:invalid:not(:placeholder-shown) {
    border-color: #e63329;
}

.lmb-field textarea {
    resize: vertical;
    min-height: 80px;
}

/* ─── FORM FOOTER ─────────────────────────── */
.lmb-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
    flex-wrap: wrap;
    gap: 12px;
}

.lmb-req-note {
    font-size: 12px;
    color: #888;
    margin: 0;
}

.lmb-req-note span {
    color: #e63329;
}

.lmb-btn-wrap .lmb-btn-reserve.lmb-btn-submit,
#lmb-submit {
    padding: 12px 28px;
    font-size: 15px;
}

/* ─── FEEDBACK ────────────────────────────── */
.lmb-feedback {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    min-height: 20px;
    border-radius: 6px;
    padding: 0;
    text-align: center;
    transition: all .2s;
}

.lmb-feedback.lmb-success {
    background: #edfaf1;
    color: #1a7a3c;
    padding: 12px 16px;
    border: 1px solid #a8e6bc;
}

.lmb-feedback.lmb-error {
    background: #fef2f2;
    color: #c0281f;
    padding: 12px 16px;
    border: 1px solid #f5bfbb;
}

/* ─── RESPONSIVE ──────────────────────────── */
@media (max-width: 520px) {
    .lmb-modal {
        padding: 22px 16px;
        border-radius: 10px;
    }

    .lmb-row {
        grid-template-columns: 1fr;
    }

    .lmb-modal-header img {
        width: 60px;
        height: 60px;
    }

    .lmb-modal-meta h2 {
        font-size: 15px;
    }

    .lmb-form-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .lmb-btn-wrap {
        flex-direction: column;
    }
}
