/* Rezervační widget BrainMarket — vše scopované pod .bmw- */

.bmw-page {
    margin: 0;
    background: #f8fafc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #1f2937;
}

.bmw-container {
    max-width: 640px;
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;
}

.bmw-container *,
.bmw-container *::before,
.bmw-container *::after {
    box-sizing: border-box;
}

.bmw-standalone {
    padding-top: 40px;
}

.bmw-title {
    font-size: 24px;
    margin: 0 0 16px;
    color: #111827;
}

/* Úvodní obrazovka s tlačítkem */
.bmw-intro {
    text-align: center;
    padding: 32px 16px;
}

.bmw-btn {
    display: inline-block;
    border: 0;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 28px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}

.bmw-btn:hover { background: #1d4ed8; }
.bmw-btn:disabled { background: #93c5fd; cursor: default; }

.bmw-btn-secondary {
    background: #e5e7eb;
    color: #111827;
}
.bmw-btn-secondary:hover { background: #d1d5db; }

.bmw-btn-danger { background: #dc2626; }
.bmw-btn-danger:hover { background: #b91c1c; }

/* Kroky — hlavička s progresem */
.bmw-steps {
    display: flex;
    gap: 4px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    font-size: 12px;
    color: #9ca3af;
}

.bmw-steps li {
    flex: 1;
    text-align: center;
    padding: 6px 2px;
    border-bottom: 3px solid #e5e7eb;
}

.bmw-steps li.bmw-step-active {
    color: #2563eb;
    font-weight: 600;
    border-bottom-color: #2563eb;
}

.bmw-steps li.bmw-step-done {
    color: #16a34a;
    border-bottom-color: #16a34a;
}

.bmw-heading {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px;
}

.bmw-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* Krok 1 — konzultanti */
.bmw-consultants {
    display: grid;
    gap: 10px;
}

.bmw-consultant {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 16px;
    cursor: pointer;
    transition: border-color 0.15s;
}

.bmw-consultant:hover { border-color: #93c5fd; }
.bmw-consultant.bmw-selected { border-color: #2563eb; background: #eff6ff; }

.bmw-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.bmw-consultant-meta {
    font-size: 13px;
    color: #6b7280;
}

/* Krok 2 — kalendář */
.bmw-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.bmw-cal-month {
    font-weight: 600;
    font-size: 16px;
    text-transform: capitalize;
}

.bmw-cal-arrow {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    font-size: 16px;
    cursor: pointer;
}
.bmw-cal-arrow:hover:not(:disabled) { background: #f3f4f6; }
.bmw-cal-arrow:disabled { opacity: 0.35; cursor: default; }

.bmw-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.bmw-cal-dow {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    padding: 4px 0;
}

.bmw-cal-day {
    aspect-ratio: 1;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 14px;
    color: #d1d5db;
    cursor: default;
    padding: 0;
}

.bmw-cal-day.bmw-free {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
    cursor: pointer;
}

.bmw-cal-day.bmw-free:hover { background: #dbeafe; }
.bmw-cal-day.bmw-selected { background: #2563eb; color: #fff; }

/* Krok 3 — dlaždice časů */
.bmw-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
}

.bmw-slot {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    padding: 10px 4px;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    transition: border-color 0.15s;
}

.bmw-slot:hover:not(:disabled) { border-color: #93c5fd; }
.bmw-slot.bmw-selected { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; }

.bmw-slot:disabled {
    background: #f3f4f6;
    color: #c0c5cc;
    border-color: #f3f4f6;
    cursor: default;
    text-decoration: line-through;
}

/* Krok 4 — formulář */
.bmw-field { margin-bottom: 14px; }

.bmw-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.bmw-field input,
.bmw-field textarea {
    width: 100%;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 16px;
    font-family: inherit;
}

.bmw-field input:focus,
.bmw-field textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.bmw-field-error {
    color: #dc2626;
    font-size: 13px;
    margin-top: 4px;
}

/* honeypot — mimo obrazovku, ne display:none (to boti poznají) */
.bmw-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Shrnutí a hlášky */
.bmw-summary {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    margin: 14px 0;
    display: grid;
    gap: 6px;
    font-size: 15px;
}

.bmw-alert {
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
    margin: 12px 0;
}

.bmw-alert-success { background: #dcfce7; color: #166534; }
.bmw-alert-error { background: #fee2e2; color: #991b1b; }
.bmw-alert-info { background: #e0f2fe; color: #075985; }

.bmw-done {
    text-align: center;
    padding: 24px 8px;
}

.bmw-done-icon { font-size: 48px; }

.bmw-cal-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.bmw-loading {
    text-align: center;
    color: #6b7280;
    padding: 24px;
}

@media (max-width: 480px) {
    .bmw-steps li { font-size: 10px; }
    .bmw-slots { grid-template-columns: repeat(3, 1fr); }
}

/* konzultant s fotkou a popisem */
.bmw-consultant { align-items: flex-start; }

.bmw-avatar {
    width: 56px;
    height: 56px;
    overflow: hidden;
}

.bmw-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.bmw-consultant-body { flex: 1; min-width: 0; }

.bmw-consultant-name { font-weight: 600; }

.bmw-consultant-bio {
    font-size: 13px;
    color: #4b5563;
    margin-top: 6px;
    line-height: 1.45;
}

/* GDPR souhlas */
.bmw-gdpr label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400;
    font-size: 13.5px;
    color: #374151;
    cursor: pointer;
}

.bmw-gdpr input {
    width: 17px;
    height: 17px;
    margin-top: 1px;
    accent-color: #2563eb;
    flex-shrink: 0;
}

.bmw-gdpr a { color: #2563eb; }
