/* ═══ Book Meeting Popup ═══════════════════════════════════════════════════ */
.cp-meeting-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(2px);
}

.cp-meeting-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 740px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cp-meeting-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    z-index: 1;
    line-height: 1;
}

.cp-meeting-close:hover { color: #000; }

.cp-meeting-header {
    text-align: center;
    padding: 16px 24px 0;
}

.cp-meeting-logo { margin-bottom: 4px; }
.cp-meeting-header h2 { margin: 0; font-size: 20px; color: #333; }
.cp-meeting-subtitle { color: #666; margin: 2px 0 0; font-size: 13px; }

/* Steps indicator */
.cp-meeting-steps-indicator {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 10px 24px;
    border-bottom: 1px solid #eee;
}

.cp-step {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

.cp-step.active {
    color: #0597d4;
    font-weight: 600;
}

/* Body - calendar + times */
.cp-meeting-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

/* Calendar */
.cp-meeting-calendar {
    padding: 16px;
    border-right: 1px solid #eee;
}

.cp-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cp-cal-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.cp-cal-nav {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cp-cal-nav:hover { background: #f5f5f5; }

.cp-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
}

.cp-cal-day-name {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    padding: 4px 0;
    text-transform: uppercase;
}

.cp-cal-day-name.cp-weekend { color: #ccc; }

#cp-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.cp-cal-cell {
    text-align: center;
    padding: 6px 2px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.cp-cal-cell:hover:not(.cp-cal-disabled):not(.cp-cal-empty) {
    background: #e3f2fd;
}

.cp-cal-cell.cp-cal-today {
    font-weight: 700;
    border: 1px solid #0597d4;
}

.cp-cal-cell.cp-cal-selected {
    background: #0597d4;
    color: #fff;
    font-weight: 600;
}

.cp-cal-cell.cp-cal-disabled {
    color: #ddd;
    cursor: not-allowed;
}

.cp-cal-cell.cp-cal-holiday {
    color: #f44336;
    text-decoration: line-through;
}

.cp-cal-cell.cp-cal-empty { cursor: default; }

/* Time slots */
.cp-meeting-times {
    padding: 16px;
    overflow-y: auto;
    max-height: 340px;
}

.cp-meeting-times h3 {
    font-size: 13px;
    color: #666;
    margin: 0 0 10px;
    font-weight: 500;
}

.cp-times-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cp-time-slot {
    display: block;
    width: 100%;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
}

.cp-time-slot:hover {
    border-color: #0597d4;
    background: #f0f9ff;
}

.cp-time-slot.cp-time-selected {
    background: #0597d4;
    color: #fff;
    border-color: #0597d4;
}

.cp-no-slots { color: #999; font-size: 13px; text-align: center; }

/* Step 2 - Form */
.cp-meeting-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: #f0f9ff;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.cp-meeting-edit {
    background: none;
    border: none;
    color: #0597d4;
    cursor: pointer;
    font-size: 13px;
}

#cp-meeting-form {
    padding: 16px 24px 20px;
}

.cp-meeting-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cp-meeting-field {
    margin-bottom: 10px;
}

.cp-meeting-field label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 3px;
    color: #333;
}

.cp-meeting-field input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    transition: border-color 0.2s;
}

.cp-meeting-field input:focus {
    outline: none;
    border-color: #0597d4;
}

.cp-meeting-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.cp-meeting-back {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
}

.cp-meeting-submit {
    background: #0597d4;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.cp-meeting-submit:hover { background: #047aab; }
.cp-meeting-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Success */
.cp-meeting-success-content {
    text-align: center;
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cp-meeting-success-content svg {
    display: block;
    margin: 0 auto;
}

.cp-meeting-success-content h2 { color: #4CAF50; margin: 16px 0 8px; }
.cp-meeting-success-content p { color: #666; line-height: 1.6; }

.cp-meeting-done {
    margin-top: 20px;
    background: #0597d4;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 600px) {
    .cp-meeting-body {
        grid-template-columns: 1fr;
    }
    .cp-meeting-calendar {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    .cp-meeting-modal {
        max-height: 95vh;
        border-radius: 8px;
    }
    .cp-meeting-form-row {
        grid-template-columns: 1fr;
    }
}
