/* ============================================================
   booking.css — Self-hosted booking page styles
   proOptyk · /rezerwacja/
   ============================================================ */

/* ── Section ── */
.booking-section {
    background: #f9f9f9;
    min-height: 60vh;
    padding-top: 48px;
}

/* ── Step indicators ── */
.booking-steps-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 36px;
}

.booking-step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #aaa;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.booking-step-item.active {
    color: #72b626;
}

.booking-step-item .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ddd;
    color: #888;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
}

.booking-step-item.active .step-num {
    background: #72b626;
    color: #fff;
}

.booking-step-divider {
    color: #ccc;
    font-size: 12px;
}

/* ── Panel ── */
.booking-panel {
    background: #fff;
    border-radius: 8px;
    padding: 36px 40px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

.booking-intro-headline {
    font-size: 20px;
    font-weight: 700;
    color: #e03030;
    margin-bottom: 4px;
    text-align: center;
}

.booking-intro-sub {
    font-size: 14px;
    font-weight: 600;
    color: #e03030;
    margin-bottom: 20px;
    text-align: center;
}

.booking-intro {
    color: #555;
    margin-bottom: 20px;
    font-size: 15px;
}

/* ── Form labels & inputs ── */
.booking-panel label {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #444;
    margin-bottom: 6px;
}

.booking-panel .form-control {
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 15px;
    padding: 10px 14px;
    color: #333;
    transition: border-color 0.2s;
}

.booking-panel .form-control:focus {
    border-color: #72b626;
    box-shadow: 0 0 0 3px rgba(114,182,38,0.15);
}

.booking-panel .form-control.is-invalid {
    border-color: #e74c3c;
}

.required {
    color: #e74c3c;
}

/* ── GDPR checkbox ── */
.booking-gdpr-group {
    margin-top: 20px;
    margin-bottom: 28px;
}

.booking-gdpr-group .form-check-label {
    font-weight: 400;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    color: #666;
    line-height: 1.5;
}

.booking-gdpr-group .form-check-label a {
    color: #72b626;
    text-decoration: underline;
}

.booking-gdpr-group .form-check-input {
    margin-top: 3px;
}

.booking-field-error {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 6px;
}

.booking-field-error a {
    color: #e74c3c;
}

/* ── Buttons ── */
.booking-btn-primary {
    background: #72b626;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: background 0.2s;
}

.booking-btn-primary:hover,
.booking-btn-primary:focus {
    background: #5e9a1e;
    color: #fff;
}

.booking-btn-primary:disabled {
    background: #aaa;
    cursor: not-allowed;
}

.booking-btn-secondary {
    background: transparent;
    color: #72b626;
    border: 2px solid #72b626;
    border-radius: 4px;
    padding: 10px 28px;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.booking-btn-secondary:hover {
    background: #72b626;
    color: #fff;
}

/* ── Calendar ── */
.booking-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cal-month-label {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    text-transform: capitalize;
}

.cal-nav-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    font-size: 18px;
    line-height: 1;
    color: #555;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    padding: 0;
}

.cal-nav-btn:hover:not(:disabled) {
    border-color: #72b626;
    color: #72b626;
}

.cal-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

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

.cal-day-header {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    padding: 6px 0;
}

.cal-day {
    text-align: center;
    padding: 8px 4px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: default;
    transition: background 0.15s, color 0.15s;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-day.cal-empty {
    background: transparent;
}

.cal-day.cal-unavailable {
    color: #ccc;
}

.cal-day.cal-available {
    cursor: pointer;
    color: #72b626;
    font-weight: 700;
    border: 1px solid #d4edaa;
    background: #f6ffe6;
}

.cal-day.cal-available:hover {
    background: #72b626;
    color: #fff;
    border-color: #72b626;
}

.cal-day.cal-selected {
    background: #72b626;
    color: #fff;
    font-weight: 700;
    border: 1px solid #72b626;
}

/* ── Slots ── */
.slots-date-label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 12px;
    text-transform: capitalize;
}

.slots-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.slot-btn {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    min-width: 72px;
}

.slot-btn:hover {
    border-color: #72b626;
    color: #72b626;
}

.slot-btn.selected {
    background: #72b626;
    border-color: #72b626;
    color: #fff;
}

/* ── Spinner ── */
.booking-spinner {
    text-align: center;
    padding: 40px 0;
    color: #aaa;
}

/* ── Countdown timer ── */
.booking-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff8e6;
    border: 1px solid #f5c842;
    border-radius: 4px;
    padding: 10px 16px;
    font-size: 14px;
    color: #7a5c00;
    margin-bottom: 16px;
}

.booking-timer strong {
    font-size: 15px;
    font-weight: 700;
    color: #7a5c00;
}

.booking-timer.timer-urgent {
    background: #fff0f0;
    border-color: #e74c3c;
    color: #c0392b;
}

.booking-timer.timer-urgent strong {
    color: #c0392b;
}

.booking-timer-expired {
    background: #fff0f0;
    border: 1px solid #e74c3c;
    border-radius: 4px;
    padding: 10px 16px;
    font-size: 14px;
    color: #c0392b;
    font-weight: 600;
    margin-bottom: 16px;
}

/* ── Phone row ── */
.booking-phone-row {
    border-top: 1px solid #eee;
    padding-top: 24px;
    margin-top: 8px;
}

/* ── Confirmation ── */
.booking-confirmation {
    text-align: center;
    padding: 60px 40px;
}

.booking-confirmed-icon {
    font-size: 64px;
    color: #72b626;
    display: block;
    margin-bottom: 20px;
}

.booking-confirmation h2 {
    color: #333;
    margin-bottom: 12px;
}

.confirmation-details {
    font-size: 18px;
    font-weight: 700;
    color: #72b626;
    margin-bottom: 8px;
}

/* ── reCAPTCHA notice ── */
.recaptcha-notice {
    margin-top: 12px;
    font-size: 11px;
    color: #aaa;
    line-height: 1.5;
}

.recaptcha-notice a {
    color: #aaa;
    text-decoration: underline;
}

/* ── Hide reCAPTCHA badge (disclaimer shown in form instead) ── */
.grecaptcha-badge {
    visibility: hidden !important;
}

/* ── Responsive ── */

@media (max-width: 575px) {
    .booking-panel {
        padding: 24px 20px;
    }

    .booking-steps-bar {
        gap: 8px;
    }

    .booking-step-item {
        font-size: 12px;
    }

    .cal-day {
        font-size: 13px;
        padding: 6px 2px;
        min-height: 32px;
    }

    .slot-btn {
        padding: 7px 12px;
        font-size: 13px;
        min-width: 64px;
    }
}
