/* Kline Properties Showing Scheduler — Scheduler Grid Styles (v1.4.0) */

/* ===================== Wrapper ===================== */
.kpss-scheduler-wrapper {
    max-width: 960px;
    margin: 2rem auto;
    /* font-family inherited from theme */
    color: #333;
    font-family: sans-serif !important;
}

/* ===================== Header ===================== */
.kpss-scheduler-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.kpss-scheduler-title {
    font-size: 1.6rem;
    color: #222;
    margin: 0 0 0.4rem;
}

.kpss-scheduler-subtitle {
    font-size: 0.85rem;
    color: #777;
    margin: 0;
}

/* ===================== Property Banner ===================== */
#kpss-property-banner {
    background: #eaf6ff;
    border-left: 4px solid #2c3e50;
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
    border-radius: 4px;
}

#kpss-property-banner h3 {
    margin: 0 0 0.3rem;
    font-size: 1.15rem;
    color: #2c3e50;
}

#kpss-property-address {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

/* ===================== Date Range Bar ===================== */
.kpss-date-range-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    padding: 0.6rem;
    background: #1a3c6e;
    color: #fff;
    border-radius: 6px;
}

/* ===================== Loading ===================== */
#kpss-scheduler-loading {
    text-align: center;
    padding: 3rem 1rem;
    color: #888;
}

/* ===================== Grid Scroll Area ===================== */
.kpss-grid-scroll {
    max-height: 520px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* ===================== Scheduler Table ===================== */
.kpss-scheduler-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.78rem;
}

.kpss-scheduler-table thead th {
    position: sticky;
    top: 0;
    background: #2c3e50;
    color: #fff;
    padding: 0.5rem 0.3rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    z-index: 10;
    white-space: nowrap;
}

.kpss-time-col {
    width: 52px !important;
    min-width: 52px;
}

.kpss-day-col {
    flex: 1;
}

/* ===================== Rows / Cells ===================== */
.kpss-scheduler-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.kpss-time-cell {
    text-align: center;
    font-weight: 600;
    color: #555;
    padding: 0;
    height: 28px;
    vertical-align: middle;
    border-right: 2px solid #e0e0e0;
    background: #f4f4f4 !important;
}

.kpss-slot-cell {
    height: 28px;
    padding: 0;
    cursor: pointer;
    vertical-align: middle;
    text-align: center;
    border: 1px solid #eee;
    transition: background-color 0.1s ease;
}

/* Slot states */
.kpss-slot-available {
    background-color: #d4edda; /* 🟢 soft green */
}

.kpss-slot-available:hover {
    background-color: #a3d9b1;
}

.kpss-slot-blocked {
    background-color: #ccc; /* ⚫ grey */
    cursor: default;
}

.kpss-selected {
    background-color: #1a3c6e !important; /* 🔵 brand blue */
    box-shadow: inset 0 0 0 2px #fff;
}

.kpss-slot-empty {
    background-color: #f9f9f9;
    cursor: default;
}

/* ===================== Selection Bar ===================== */
.kpss-selection-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 0.8rem;
    background: #f7f7f7;
    border-radius: 6px;
}

#kpss-selection-summary {
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
}

/* ===================== Save Result ===================== */
.kpss-save-result {
    margin-top: 0.8rem;
    padding: 0.7rem;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
}

.kpss-success {
    background: #d4edda;
    color: #155724;
}

/* ===================== Buttons ===================== */
.kpss-button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
}

.kpss-primary {
    background: #2c3e50;
    color: #fff;
}

.kpss-primary:hover:not(:disabled) {
    background: #1a252f;
}

.kpss-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===================== Hidden Utility ===================== */
.kpss-hidden {
    display: none !important;
}

/* ===================== Contact Form ===================== */
#kpss-contact-form-wrapper {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: #f0f7ff;
    border: 1px solid #d0e3f0;
    border-radius: 6px;
}

#kpss-contact-form-wrapper h3 {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    color: #2c3e50;
}

.kpss-form-row {
    margin-bottom: 0.8rem;
}

.kpss-form-row label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 0.25rem;
}

.kpss-form-row input[type="text"],
.kpss-form-row input[type="email"],
.kpss-form-row input[type="tel"] {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.kpss-form-row input:focus {
    outline: none;
    border-color: #5bc0de;
    box-shadow: 0 0 0 2px rgba(91, 192, 222, 0.2);
}

/* ===================== Save Result (error support) ===================== */
.kpss-error {
    background: #f8d7da;
    color: #721c24;
}

/* ===================== Legend Colors ===================== */
.legend-green {
    color: #28a745;
    font-weight: 600;
}

.legend-grey {
    color: #999;
    font-weight: 600;
}

.legend-blue {
    color: #1a3c6e;
    font-weight: 600;
}
