@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

.csb-wrap *, .csb-wrap *::before, .csb-wrap *::after { box-sizing: border-box; }

.csb-wrap {
    font-family: 'Plus Jakarta Sans', sans-serif;
    max-width: 1180px;
    padding: 28px 20px 40px;
    color: #1a1f36;
}

/* ---- Header ---- */
.csb-header {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #1a1f36 0%, #2d3a8c 100%);
    border-radius: 18px;
    padding: 26px 30px;
    margin-bottom: 28px;
    color: #fff;
    box-shadow: 0 8px 30px rgba(26,31,54,0.25);
}
.csb-header-icon { font-size: 44px; }
.csb-header-text h1 { margin: 0 0 4px; font-size: 22px; font-weight: 800; color: #fff; }
.csb-header-text p  { margin: 0; color: #a0b0d0; font-size: 13px; }

/* ---- Grid ---- */
.csb-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 22px;
}
@media (max-width: 960px) { .csb-grid-3 { grid-template-columns: 1fr; } }

/* ---- Cards ---- */
.csb-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.07);
    border: 1px solid #e6eaf2;
}
.csb-full { margin-bottom: 20px; }

.csb-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f2f8;
}
.csb-card-head h2 { margin: 0; font-size: 14px; font-weight: 700; color: #1a1f36; }
.csb-ico { font-size: 20px; }
.csb-badge {
    margin-left: auto;
    background: #eef0ff;
    color: #4f6ef7;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

/* ---- Fields ---- */
.csb-field { margin-bottom: 14px; }
.csb-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #7c8db5;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
}



input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
 
input[type="date"].date-field {
    position: relative;
}
 
input[type="date"].date-field::after {
    content: "📅"; /* you can replace with image */
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 18px;
}
 
 
 #csb-slot-picker { margin-top: 0px; }
 

.csb-field input,
.csb-field select {
    width: 100%;
    padding: 10px 13px;
    border: 2px solid #e6eaf2;
    border-radius: 9px;
    font-size: 14px;
    font-family: inherit;
    color: #1a1f36;
    background: #f7f9fc;
    transition: border-color .2s, box-shadow .2s, background .2s;
    outline: none;
}
.csb-field input:focus,
.csb-field select:focus {
    border-color: #4f6ef7;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79,110,247,0.13);
}
.csb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.csb-hint { font-size: 12px; color: #9aaac8; margin: 0 0 14px; }

/* Apply-all-days checkbox */
.csb-all-days-wrap {
    margin-bottom: 14px;
    padding: 10px 12px;
    background: #f0f4ff;
    border-radius: 9px;
    border: 1.5px dashed #b0c0f7;
}
.csb-all-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.csb-all-toggle input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: #4f6ef7;
    cursor: pointer;
}
.csb-all-label {
    font-size: 13px;
    font-weight: 600;
    color: #2d3a8c;
}

/* ---- Buttons ---- */
.csb-btn {
    width: 100%;
    padding: 11px 14px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: opacity .2s, transform .1s, box-shadow .2s;
    letter-spacing: 0.3px;
}
.csb-btn:hover { opacity: .88; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.csb-btn.primary { background: linear-gradient(135deg, #4f6ef7, #6c47ff); color: #fff; }
.csb-btn.green   { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }

/* ---- Toggle switch ---- */
.csb-toggle-grid { display: flex; flex-direction: column; gap: 10px; }
.csb-toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #f7f9fc;
    border: 1px solid #e6eaf2;
}
.csb-toggle-row.locked { opacity: .65; }
.csb-day-name { flex: 1; font-size: 13px; font-weight: 600; color: #1a1f36; }

.csb-toggle { position: relative; display: inline-block; width: 42px; height: 24px; }
.csb-toggle input { opacity: 0; width: 0; height: 0; }
.csb-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #cbd5e1;
    border-radius: 24px;
    transition: background .2s;
}
.csb-slider::before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.csb-toggle input:checked + .csb-slider { background: #ef4444; }
.csb-toggle input:checked + .csb-slider::before { transform: translateX(18px); }

.csb-status { font-size: 11px; font-weight: 700; min-width: 30px; text-align: right; }
.csb-status .off { color: #ef4444; }
.csb-status .on  { color: #10b981; }

/* ---- Table ---- */
.csb-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.csb-table th {
    background: #f7f9fc;
    padding: 10px 14px;
    text-align: left;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px;
    color: #7c8db5;
    border-bottom: 2px solid #e6eaf2;
}
.csb-table td { padding: 11px 14px; border-bottom: 1px solid #f0f2f8; }
.csb-table tr:last-child td { border-bottom: none; }
.csb-table tr:hover td { background: #fafbff; }

.csb-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 6px; }
.csb-tag.blue  { background: #eef0ff; color: #4f6ef7; }
.csb-tag.green { background: #d1fae5; color: #065f46; }
.csb-tag.red   { background: #fee2e2; color: #dc2626; }

.csb-del {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px;
    background: #fee2e2; color: #dc2626;
    border-radius: 7px; text-decoration: none;
    font-size: 13px; font-weight: 800;
    transition: background .15s;
}
.csb-del:hover { background: #fca5a5; color: #991b1b; }

.csb-empty { text-align: center; color: #9aaac8; font-size: 14px; padding: 28px 0; }

/* ---- Notices ---- */
.csb-notice {
    padding: 13px 18px;
    border-radius: 10px;
    font-size: 13px; font-weight: 600;
    margin-bottom: 20px;
}
.csb-notice.success { background: #d1fae5; color: #065f46; border-left: 4px solid #10b981; }
.csb-notice.error   { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }
/* CF7 Slot Booking - Front-end Premium Styles v3.0 */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* Date input */
.wpcf7 input[name="booking-date"] {
    font-family: 'Plus Jakarta Sans', sans-serif;
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #e6eaf2;
    border-radius: 10px;
    font-size: 15px;
    color: #1a1f36;
    background: #f7f9fc;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    cursor: pointer;
}
.wpcf7 input[name="booking-date"]:focus {
    border-color: #4f6ef7;
    box-shadow: 0 0 0 4px rgba(79,110,247,0.12);
    background: #fff;
}

/* Slot picker container */
#csb-slot-picker {
    margin-top: 8px;
}
#csb-slot-picker .csb-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

/* Each slot button */
.csb-slot-btn {
    padding: 13px 10px;
    border: 2px solid #e6eaf2;
    border-radius: 10px;
    background: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1a1f36;
    cursor: pointer;
    text-align: center;
    transition: all .18s;
    position: relative;
}
.csb-slot-btn:hover:not(.booked):not(.selected) {
    border-color: #4f6ef7;
    background: #f0f2ff;
    color: #4f6ef7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79,110,247,0.15);
}
.csb-slot-btn.selected {
    border-color: #4f6ef7;
    background: linear-gradient(135deg, #4f6ef7, #6c47ff);
    color: #fff;
    box-shadow: 0 4px 14px rgba(79,110,247,0.35);
}
.csb-slot-btn.booked {
    border-color: #e6eaf2;
    background: #f7f9fc;
    color: #b0bbcc;
    cursor: not-allowed;
    text-decoration: line-through;
}
.csb-slot-btn.booked::after {
    content: 'Booked';
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #ef4444;
    text-decoration: none;
    margin-top: 2px;
}

/* Hidden real input */
input[name="booking-slot"] { display: none !important; }

/* Weekoff / loading messages */
.csb-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
}
.csb-msg.weekoff { background: #fee2e2; color: #dc2626; }
.csb-msg.loading { background: #f0f2ff; color: #4f6ef7; }
.csb-msg.empty   { background: #f7f9fc; color: #7c8db5; }

#csb-slot-picker { margin-top: 0px; }



