/* LE Booking System Styles */

/* Inline book button — shown below the calculator sum */
.le-btn-anchor {
    margin-top: 18px;
    text-align: center;
    display: block;
}
#le-book-btn-wrap {
    /* display managed by jQuery fadeIn — override to inline-block via !important */
    text-align: center;
    display: block !important;
}
#le-open-booking {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(26,35,126,0.45);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    width: auto;
    max-width: 280px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
#le-open-booking:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(26,35,126,0.55);
}
#le-book-price-badge {
    background: #ffeb3b;
    color: #1a237e;
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 14px;
    font-weight: 800;
}

/* Overlay */
#le-booking-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(3px);
}

/* Modal */
#le-booking-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: le-modal-in 0.3s ease;
}
@keyframes le-modal-in {
    from { transform: scale(0.92); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}
#le-booking-inner {
    padding: 36px 36px 32px;
}
#le-booking-inner h2 {
    margin: 0 0 20px;
    color: #1a237e;
    font-size: 22px;
}
#le-booking-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}
#le-booking-close:hover { color: #333; background: #f0f0f0; }

/* Calc summary banner */
#le-calc-summary {
    background: linear-gradient(90deg, #e8eaf6, #f3f4ff);
    border-left: 4px solid #1a237e;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #333;
}
#le-calc-summary strong { color: #1a237e; font-size: 16px; }

/* Form */
.le-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.le-form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}
.le-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}
.le-form-group input,
.le-form-group select {
    border: 1.5px solid #ddd;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    background: #fafafa;
    color: #222;
    width: 100%;
    box-sizing: border-box;
}
.le-form-group input:focus,
.le-form-group select:focus {
    border-color: #1a237e;
    background: #fff;
}
.le-form-group input[type=number] {
    max-width: 160px;
}

/* Error */
#le-booking-error {
    background: #ffebee;
    border: 1px solid #ffcdd2;
    color: #c62828;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
}

/* Submit */
#le-booking-submit {
    width: 100%;
    background: linear-gradient(135deg, #1a237e, #283593);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 16px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    transition: opacity 0.2s, transform 0.2s;
}
#le-booking-submit:hover { opacity: 0.9; transform: translateY(-1px); }
#le-booking-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Success */
#le-booking-success {
    text-align: center;
    padding: 20px 0;
}
.le-success-icon { font-size: 56px; margin-bottom: 12px; }
#le-booking-success h3 { color: #2e7d32; font-size: 22px; margin: 0 0 12px; }
#le-booking-success p  { color: #555; font-size: 15px; line-height: 1.6; }

/* Loading spinner */
.le-loading::after {
    content: ' ⏳';
}

/* Calc Banner */
#le-calc-banner {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
    color: #fff;
    padding: 28px 24px;
    margin: 40px 0 0;
    width: 100%;
    box-sizing: border-box;
}
#le-calc-banner-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
#le-calc-banner-icon {
    font-size: 48px;
    line-height: 1;
    flex-shrink: 0;
}
#le-calc-banner-text {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
#le-calc-banner-text strong {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}
#le-calc-banner-text span {
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.5;
}
#le-calc-banner-btn {
    background: #ffeb3b;
    color: #1a237e;
    font-weight: 800;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
#le-calc-banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 600px) {
    #le-booking-inner { padding: 24px 20px 20px; }
    .le-form-row { grid-template-columns: 1fr; }
    #le-open-booking { font-size: 14px; padding: 14px 20px; }
    #le-calc-banner-inner { flex-direction: column; text-align: center; }
    #le-calc-banner-btn { width: 100%; text-align: center; }
}
