/* ── Sandrolendas Booking Widget ──────────────────────────────── */

.slb-widget {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 24px 24px 20px;
    max-width: 340px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

.slb-header { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; }
.slb-title  { font-size: 16px; font-weight: 700; margin: 0 0 6px; color: #1a1a1a; }

.slb-price         { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.slb-price-amount  { font-size: 21px; font-weight: 700; color: #2c6e49; }
.slb-price-label   { font-size: 13px; color: #777; }
.slb-description   { font-size: 13px; color: #666; margin: 4px 0 0; line-height: 1.5; }

/* Shared field styles (widget + modal) */
.slb-field { margin-bottom: 13px; }
.slb-field label {
    display: block; font-size: 11px; font-weight: 700;
    color: #555; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 5px;
}
.slb-field .req { color: #c0392b; }

.slb-field input[type="text"],
.slb-field input[type="email"],
.slb-field input[type="tel"],
.slb-field input[type="date"],
.slb-field input[type="time"],
.slb-field select,
.slb-field textarea {
    width: 100%; padding: 5px 11px;
    border: 1px solid #ddd; border-radius: 5px;
    font-size: 14px; color: #333; background: #fafafa;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
    appearance: none; -webkit-appearance: none;
}
.slb-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px;
}
.slb-field input:focus, .slb-field select:focus, .slb-field textarea:focus {
    outline: none; border-color: #2c6e49; box-shadow: 0 0 0 3px rgba(44,110,73,.1); background: #fff;
}
.slb-field textarea { resize: vertical; min-height: 68px; }

.slb-submit-wrap { margin-top: 16px; }

.slb-btn {
    width: 100%; padding: 0px;
    background: #2c6e49; color: #fff;
    border: none; border-radius: 5px;
    font-size: 15px; font-weight: 600;
    cursor: pointer; letter-spacing: .2px;
    transition: background .2s, transform .1s;
}
.slb-btn:hover   { background: #235c3c; }
.slb-btn:active  { transform: scale(.98); }
.slb-btn:disabled { background: #a0c4b1; cursor: not-allowed; }

.slb-error { color: #c0392b; font-size: 13px; }

/* ── Duration tab switcher ────────────────────────────────────── */
.slb-hidden { display: none !important; }

.slb-dur-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.slb-dur-tab {
    flex: 1;
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.slb-dur-tab + .slb-dur-tab {
    border-left: 1px solid #ddd;
}

.slb-dur-tab.active {
    background: #2c6e49;
    color: #fff;
}

.slb-dur-tab:not(.active):hover {
    background: #e8e8e8;
}

/* ── Modal overlay ────────────────────────────────────────────── */
#slb-modal-overlay {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,.45);
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    animation: slbFadeIn .18s ease;
}

@keyframes slbFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slbSlideUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

#slb-modal {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0,0,0,.22);
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px 28px 24px;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    animation: slbSlideUp .22s ease;
    box-sizing: border-box;
}

#slb-modal-close {
    position: absolute; top: 14px; right: 16px;
    background: none; border: none;
    font-size: 22px; line-height: 1;
    color: #999; cursor: pointer;
    padding: 4px 8px; border-radius: 4px;
    transition: color .15s, background .15s;
}
#slb-modal-close:hover { color: #333; background: #f0f0f0; }

#slb-modal-title {
    font-size: 18px; font-weight: 700;
    color: #1a1a1a; margin: 0 0 6px;
    padding-right: 32px;
}

.slb-modal-summary {
    font-size: 13px; color: #666;
    background: #f5f8f6; border: 1px solid #d4e8db;
    border-radius: 5px; padding: 9px 12px;
    margin: 0 0 18px; line-height: 1.5;
}

/* Response messages */
.slb-response {
    margin-top: 14px; padding: 12px 14px;
    border-radius: 5px; font-size: 14px; line-height: 1.4;
}
.slb-response.success { background: #e8f5ee; border: 1px solid #b2dfc4; color: #1a5c34; }
.slb-response.error   { background: #fdecea; border: 1px solid #f5c6c0; color: #8b2117; }

/* Mobile */
@media (max-width: 480px) {
    #slb-modal { padding: 22px 18px 20px; }
}
