/* Kline Properties Showing Scheduler — Frontend Styles */

/* ===================== Container ===================== */
.kpss-container {
    max-width: 1100px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    color: #333;
}

.kpss-container h3 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    color: #222;
}

/* ===================== Steps ===================== */
.kpss-step {
    display: block;
}

.kpss-hidden {
    display: none !important;
}

/* ---------- Step Indicator (progress bar) ---------- */
.kpss-step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.kpss-step-indicator::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    height: 3px;
    background: #e0e0e0;
    z-index: 0;
}

.kpss-step-item {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.kpss-step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.kpss-step-active .kpss-step-circle,
.kpss-step-done .kpss-step-circle {
    background: #e67e22;
}

.kpss-step-done .kpss-step-circle::after {
    content: '✓';
    font-size: 0.9rem;
}

.kpss-step-label {
    display: block;
    font-size: 0.75rem;
    color: #888;
}

/* ===================== Property Cards Grid ===================== */
.kpss-property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.kpss-property-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.kpss-property-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* Photo area */
.kpss-property-photos,
.kpss-card-photo {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.kpss-property-photos img,
.kpss-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Carousel */
.kpss-carousel {
    position: relative;
}

.kpss-carousel-track {
    display: flex;
    transition: transform 0.3s ease;
    height: 100%;
}

.kpss-carousel-track img {
    min-width: 100%;
    flex-shrink: 0;
}

.kpss-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 2;
    color: #333;
}

.kpss-carousel:hover .kpss-carousel-btn {
    opacity: 1;
}

.kpss-carousel-prev { left: 8px; }
.kpss-carousel-next { right: 8px; }

.kpss-carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.kpss-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: background 0.2s;
}

.kpss-carousel-dot.active {
    background: #fff;
}

/* No photo placeholder */
.kpss-no-photo {
    background: #eee;
    color: #999;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Price badge */
.kpss-card-price {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Card body */
.kpss-card-body,
.kpss-property-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.kpss-card-address,
.kpss-property-address {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: #222;
}

.kpss-property-location {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

/* Detail badges */
.kpss-property-details,
.kpss-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0.75rem;
}

.kpss-detail-badge {
    background: #f0f4ff;
    color: #3b6cb5;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 500;
}

/* Pricing */
.kpss-property-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #e67e22;
    margin-bottom: 0.25rem;
}

.kpss-property-deposit {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.5rem;
}

/* Description */
.kpss-card-description,
.kpss-property-desc {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
    flex: 1;
    margin-bottom: 1rem;
}

/* Amenities */
.kpss-property-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.kpss-amenity-item {
    font-size: 0.75rem;
    color: #27ae60;
    background: #eafaf1;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.kpss-amenity-item .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

.kpss-more-amenities {
    font-size: 0.75rem;
    color: #999;
    padding: 3px 8px;
}

/* Card action buttons */
.kpss-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.kpss-card-actions .kpss-button {
    flex: 1;
    min-width: 120px;
    text-align: center;
}

/* ===================== Main Layout (content + sidebar) ===================== */
.kpss-main-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.kpss-main-content {
    flex: 1;
    min-width: 0;
}

/* Property sidebar (persistent on steps 2-4) */
#kpss-property-sidebar {
    width: 300px;
    flex-shrink: 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.kpss-sidebar-photo {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.kpss-sidebar-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kpss-sidebar-address {
    padding: 0.75rem 1rem 0;
    margin: 0;
    font-size: 0.95rem;
}

.kpss-sidebar-meta {
    padding: 0.25rem 1rem 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

/* ===================== Buttons ===================== */
.kpss-button {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.kpss-primary {
    background: #e67e22;
    color: #fff;
}
.kpss-primary:hover:not(:disabled) {
    background: #d35400;
}

.kpss-secondary {
    background: transparent;
    border: 1px solid #e67e22;
    color: #e67e22;
}
.kpss-secondary:hover {
    background: #fef0e3;
}

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

/* ===================== Form Inputs ===================== */
.kpss-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
}

.kpss-input:focus {
    outline: none;
    border-color: #e67e22;
    box-shadow: 0 0 0 2px rgba(230,126,34,0.2);
}

/* Contact form two-column layout */
.kpss-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.kpss-form-group {
    margin-bottom: 1rem;
}

.kpss-form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: #444;
}

/* ===================== Questions (screening) ===================== */
.kpss-screening-intro {
    background: #f9f9f9;
    border-left: 4px solid #e67e22;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.kpss-question-item {
    margin-bottom: 1.2rem;
    padding: 0.75rem;
    border: 1px solid #eee;
    border-radius: 4px;
}

.kpss-question-text {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Radio buttons */
.kpss-option-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 1.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Checkboxes (knockout) */
.kpss-checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
}

/* ===================== Calendar / Time Slots ===================== */
.kpss-time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.kpss-time-slot {
    padding: 0.6rem 1.2rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.15s;
}

.kpss-time-slot:hover {
    border-color: #e67e22;
    background: #fef0e3;
}

.kpss-time-slot.selected {
    background: #e67e22;
    color: #fff;
    border-color: #e67e22;
}

/* ===================== Success / Failed Messages ===================== */
.kpss-success, .kpss-failed {
    text-align: center;
    padding: 3rem 1rem;
}

.kpss-success h3 {
    color: #27ae60;
}

.kpss-failed h3 {
    color: #e74c3c;
}

/* ===================== Loading Spinner ===================== */
.kpss-loading-container {
    text-align: center;
    padding: 3rem;
}

.kpss-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e67e22;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: kpss-spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes kpss-spin {
    to { transform: rotate(360deg); }
}

/* ===================== Responsive ===================== */
@media (max-width: 768px) {
    .kpss-main-layout {
        flex-direction: column-reverse;
    }

    #kpss-property-sidebar {
        width: 100%;
    }

    .kpss-contact-grid {
        grid-template-columns: 1fr;
    }

    .kpss-property-grid {
        grid-template-columns: 1fr;
    }
}
/* =================== Confirmation Page =================== */

.kpss-success h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.kpss-confirmation-banner {
    background: #fff8e1;
    border-left: 4px solid #d4a03c;
    padding: 12px 16px;
    font-size: 14px;
    color: #795533;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kpss-info-icon {
    border: 2px solid #d4a03c;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #d4a03c;
    flex-shrink: 0;
}

.kpss-datetime-card {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
}

.kpss-datetime-left {
    background: #4a90d9;
    color: white;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.kpss-month-abbr {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.kpss-day-num {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin: 4px 0;
}

.kpss-weekday {
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.9;
}

.kpss-datetime-right {
    padding: 16px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kpss-time-text {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.kpss-status-badge {
    font-size: 13px;
    color: #4a90d9;
    margin-top: 4px;
}

.kpss-confirm-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 15px;
}

.kpss-label {
    color: #666;
    font-weight: 500;
}

.kpss-value {
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

.kpss-confirm-details-text {
    margin-bottom: 24px;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.kpss-confirm-details-text strong {
    color: #333;
}

.kpss-confirm-actions .kpss-button {
    margin-right: 12px;
}

.kpss-more-listings {
    margin-top: 16px !important;
    font-size: 14px;
    color: #999;
}

/* Reset button styling on confirmation page */
#kpss-success .kpss-button {
    background: transparent;
    border: 1px solid #ccc;
    color: #666;
    padding: 10px 24px;
    font-size: 14px;
}

#kpss-success .kpss-button:hover {
    border-color: #999;
    color: #333;
}
