/* Booking Widget */
.bc-widget {
    max-width: 450px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    position: relative;
}

.bc-step {
    display: none;
}

.bc-step.bc-step-active {
    display: block;
    animation: bcFadeIn 0.3s ease;
}

@keyframes bcFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Step titles */
.bc-step > h3 {
    font-size: var(--bc-font-step-title, 18px);
}

/* Calendar Navigation */
.bc-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px 0;
}

.bc-calendar-nav button {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 6px 12px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
    line-height: 1;
}

.bc-calendar-nav button:hover {
    background: #e0e0e0;
}

.bc-month-label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

/* Calendar Grid */
.bc-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 38px);
    justify-content: center;
    text-align: center;
    font-weight: 600;
    font-size: 10px;
    color: #666;
    padding-bottom: 4px;
    border-bottom: 1px solid #eee;
    margin-bottom: 4px;
    gap: 2px;
}

.bc-days {
    display: grid;
    grid-template-columns: repeat(7, 38px);
    justify-content: center;
    gap: 2px;
}

.bc-day {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: var(--bc-font-day-cell, 11px);
    cursor: default;
    color: #ccc;
    transition: all 0.2s;
}

.bc-day.bc-day-available {
    background: var(--bc-avail-bg, #e8f5e9);
    color: var(--bc-avail-text, #2e7d32);
    cursor: pointer;
    font-weight: 600;
}

.bc-day.bc-day-available:hover {
    background: var(--bc-primary, #2e7d32);
    color: var(--bc-btn-text, #fff);
    transform: scale(1.05);
}

.bc-day.bc-day-today {
    border: 2px solid #1976d2;
}

.bc-day.bc-day-past {
    color: #ddd;
}

.bc-day.bc-day-unavailable {
    background: #f0f0f0;
    color: #aaa;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Time Slots */
.bc-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
    gap: 6px;
    margin-bottom: 20px;
}

.bc-time-slot {
    padding: 7px 4px;
    text-align: center;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    font-size: var(--bc-font-time-slot, 11px);
    font-weight: 500;
    transition: all 0.2s;
}

.bc-time-slot:hover {
    border-color: var(--bc-primary, #2e7d32);
    background: var(--bc-avail-bg, #e8f5e9);
}

.bc-time-slot.selected {
    background: var(--bc-primary, #2e7d32);
    color: var(--bc-btn-text, #fff);
    border-color: var(--bc-primary, #2e7d32);
}

.bc-time-slot.bc-time-slot-unavailable {
    background: #f0f0f0;
    color: #aaa;
    border-color: #e0e0e0;
    cursor: not-allowed;
    text-decoration: line-through;
}

.bc-time-slot.bc-time-slot-unavailable:hover {
    background: #f0f0f0;
    border-color: #e0e0e0;
}

/* Form */
.bc-form-row {
    margin-bottom: 16px;
}

.bc-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: var(--bc-font-labels, 14px);
    color: #333;
}

.bc-form-row input,
.bc-form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.bc-form-row input:focus,
.bc-form-row textarea:focus {
    border-color: var(--bc-primary, #2e7d32);
    outline: none;
}

.bc-form-row input.bc-error,
.bc-form-row textarea.bc-error {
    border-color: #d32f2f;
}

.bc-phone-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
}

.bc-phone-prefix {
    background: #f0f0f0;
    border: 2px solid #e0e0e0;
    border-right: none;
    padding: 10px 12px;
    font-size: 15px;
    border-radius: 8px 0 0 8px;
    color: #333;
    font-weight: 600;
    line-height: 1.2;
}

.bc-phone-wrapper input {
    border-radius: 0 8px 8px 0 !important;
    flex: 1;
}

.bc-error-msg {
    color: #d32f2f;
    font-size: 13px;
    margin-top: 4px;
}

.required {
    color: #d32f2f;
}

/* Consents */
.bc-consents {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.bc-consent-item {
    margin-bottom: 12px;
}

.bc-consent-item:last-child {
    margin-bottom: 0;
}

.bc-consent-item label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.5;
}

.bc-consent-item input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
}

/* Buttons */
.bc-back-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.bc-back-btn:hover {
    background: #e0e0e0;
}

.bc-submit-btn {
    background: var(--bc-primary, #2e7d32);
    color: var(--bc-btn-text, #fff);
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: var(--bc-font-btn-submit, 16px);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.bc-submit-btn:hover {
    background: var(--bc-primary-hover, #1b5e20);
}

.bc-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.bc-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

/* Summary */
.bc-summary {
    background: #e3f2fd;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: var(--bc-font-summary, 14px);
}

/* Confirmation */
.bc-confirmation {
    text-align: center;
    padding: 40px 20px;
}

.bc-check-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.bc-confirmation h3 {
    font-size: var(--bc-font-confirm-title, 24px);
    margin-bottom: 10px;
    color: var(--bc-primary, #2e7d32);
}

.bc-confirmation p {
    font-size: var(--bc-font-confirm-msg, 16px);
    color: #555;
    line-height: 1.6;
}

/* Loading */
.bc-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 8px;
}

.bc-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid var(--bc-primary, #2e7d32);
    border-radius: 50%;
    animation: bcSpin 0.8s linear infinite;
}

@keyframes bcSpin {
    to { transform: rotate(360deg); }
}

/* No slots message */
.bc-no-slots {
    text-align: center;
    padding: 30px;
    color: #666;
    font-size: 15px;
}

/* Alerts */
.bc-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

.bc-alert-error {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #ef9a9a;
}
