/* SF Calendar Styles - Modern Design Overhaul */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --sf-calendar-color: #c99a4b;
    --sf-calendar-color-rgb: 201, 154, 75;
    --sf-calendar-color-dark: #6e4912;
    --sf-calendar-color-light: #fdf8f0;
    --sf-calendar-hover-bg: #f7eedf;
    --sf-font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --sf-radius-lg: 20px;
    --sf-radius-md: 14px;
    --sf-radius-sm: 10px;
    --sf-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
    --sf-shadow-md: 0 12px 32px rgba(0, 0, 0, 0.07);
    --sf-shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.15);
}

/* Open calendar button */
.sf-open-calendar-btn {
    background: var(--sf-btn-bg, var(--sf-calendar-color)) !important;
    color: var(--sf-btn-color, #fff) !important;
    border: none !important;
    padding: var(--sf-btn-padding, 14px 28px) !important;
    border-radius: var(--sf-btn-radius, 12px) !important;
    cursor: pointer !important;
    font-size: var(--sf-btn-font-size, 16px) !important;
    font-weight: 700 !important;
    font-family: var(--sf-font-family) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
}

.sf-open-calendar-btn:hover {
    opacity: 0.92 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.sf-calendar-opener {
    text-align: center;
    margin: 24px 0;
}

/* Container kalendarza */
#sf-calendar-container {
    display: block;
    max-width: 840px;
    margin: 20px auto;
    padding: 16px;
    font-family: var(--sf-font-family);
    width: 100%;
}

#sf-calendar-main-modal #sf-calendar-container {
    padding: 0;
}

.sf-calendar-wrapper {
    background: #ffffff;
    border-radius: var(--sf-radius-lg);
    box-shadow: var(--sf-shadow-md);
    border: 1px solid #e2e8f0;
    padding: 28px;
    width: 100%;
    box-sizing: border-box;
}

/* Header kalendarza */
.sf-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.sf-calendar-month-year {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    font-family: var(--sf-font-family);
}

.sf-calendar-nav {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease;
    font-family: var(--sf-font-family);
    box-sizing: border-box !important;
    outline: none;
    line-height: 1;
}

.sf-calendar-nav svg {
    width: 16px !important;
    height: 16px !important;
    display: block !important;
    pointer-events: none !important;
    transition: transform 0.2s ease !important;
}

.sf-calendar-nav:hover {
    background: var(--sf-calendar-color);
    color: #ffffff;
    border-color: var(--sf-calendar-color);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sf-calendar-nav:hover svg {
    transform: scale(1.1);
}

/* Dni tygodnia */
.sf-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.sf-calendar-weekday {
    text-align: center;
    font-weight: 700;
    color: #94a3b8;
    padding: 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Dni kalendarza */
.sf-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 1fr;
    gap: 8px;
}

.sf-calendar-day {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--sf-radius-sm);
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    box-sizing: border-box;
    aspect-ratio: 1;
    min-height: 46px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.sf-calendar-day-number {
    font-size: 14px;
    line-height: 1;
    color: #1e293b;
    font-weight: 700;
    pointer-events: none;
    transition: all 0.2s ease;
}

.sf-calendar-day:hover {
    background: var(--sf-calendar-hover-bg);
    border-color: var(--sf-calendar-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.sf-calendar-day:hover .sf-calendar-day-number {
    color: #fff;
}

.sf-calendar-day.past {
    background: #f8fafc;
    cursor: not-allowed;
    opacity: 0.45;
}

.sf-calendar-day.past .sf-calendar-day-number {
    color: #94a3b8;
}

.sf-calendar-day.past:hover {
    background: #f8fafc;
    border-color: #f1f5f9;
    transform: none;
    box-shadow: none;
}

.sf-calendar-day.sf-day-closed {
    background: #f8fafc;
    border-color: #e2e8f0;
    cursor: not-allowed;
    opacity: 0.5;
}

.sf-calendar-day.sf-day-closed:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
    transform: none;
    box-shadow: none;
}

.sf-calendar-day.sf-day-closed .sf-calendar-day-number {
    color: #94a3b8;
}

.sf-calendar-day.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.sf-calendar-day.empty:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}

.sf-calendar-day.today {
    border: 2px solid var(--sf-calendar-color) !important;
    background: var(--sf-calendar-color-light) !important;
}

.sf-calendar-day.today .sf-calendar-day-number {
    color: #232732 !important;
    font-weight: 800 !important;
}

.sf-calendar-day.today::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--sf-calendar-color);
}

.sf-calendar-day.today.selected::after,
.sf-calendar-day.today:hover::after {
    background-color: #ffffff;
}

.sf-calendar-day.selected,
.sf-calendar-day.active {
    background: var(--sf-calendar-color) !important;
    border-color: var(--sf-calendar-color) !important;
    box-shadow: 0 6px 18px rgba(var(--sf-calendar-color-rgb, 201, 154, 75), 0.35) !important;
}

.sf-calendar-day.selected .sf-calendar-day-number,
.sf-calendar-day.active .sf-calendar-day-number {
    color: #ffffff !important;
    font-weight: 800 !important;
}

/* Blokada scrollowania strony przy otwartym modalu */
body.sf-body-no-scroll,
html.sf-body-no-scroll {
    overflow: hidden !important;
}

/* Modale */
.sf-modal {
    display: none !important;
    position: fixed !important;
    z-index: 100000 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: auto !important;
    background-color: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.sf-modal.active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

.sf-modal-content {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    margin: auto;
    padding: 32px 36px 36px 36px !important;
    border-radius: 24px;
    width: 100%;
    max-width: 760px;
    position: relative !important;
    box-shadow: var(--sf-shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.8);
    font-family: var(--sf-font-family);
    animation: sfModalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

@keyframes sfModalIn {
    0% {
        opacity: 0;
        transform: scale(0.96) translateY(12px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Modal Header Bar & Stepper */
.sf-modal-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.sf-stepper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

.sf-step {
    color: #94a3b8;
    padding: 4px 10px;
    border-radius: 20px;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.sf-step.active {
    color: #ffffff !important;
    background: var(--sf-calendar-color) !important;
    font-weight: 800 !important;
    box-shadow: 0 3px 10px rgba(201, 154, 75, 0.25) !important;
}

.sf-step.completed {
    color: #10b981;
    background: #ecfdf5;
    font-weight: 700;
}

.sf-step-line {
    width: 18px;
    height: 2px;
    background: #e2e8f0;
    border-radius: 2px;
}

.sf-step-line.active {
    background: var(--sf-calendar-color);
}

.sf-modal-close {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 10 !important;
    background: #f1f5f9 !important;
    border: none !important;
    color: #475569 !important;
    cursor: pointer !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.sf-modal-close svg {
    width: 12px !important;
    height: 12px !important;
    display: block !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    transform-origin: 50% 50% !important;
    pointer-events: none !important;
}

.sf-modal-close:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.sf-modal-close:hover svg {
    transform: rotate(90deg) !important;
}

.sf-modal-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sf-modal-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.3px;
    font-family: var(--sf-font-family);
}

/* Summary Bar */
.sf-summary-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 4px;
}

.sf-summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13.5px;
    color: #334155;
    font-weight: 500;
}

.sf-summary-pill strong {
    color: #0f172a !important;
    font-weight: 800 !important;
}

/* Lista zabiegów */
.sf-treatments {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    max-height: 480px;
    overflow-y: auto;
    padding: 8px 0;
    width: 100%;
    margin-top: 16px;
}

.sf-treatment {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--sf-radius-md);
    cursor: pointer;
    padding: 18px 20px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.sf-treatment:hover {
    background: #ffffff;
    border-color: var(--sf-calendar-color);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
}

.sf-treatment.unavailable {
    opacity: 0.55;
    background: #f8fafc;
    border-color: #f1f5f9;
    cursor: not-allowed;
}

.sf-treatment.unavailable:hover {
    transform: none;
    box-shadow: none;
    border-color: #f1f5f9;
}

.sf-treatment-header {
    display: block;
    width: 100%;
}

.sf-treatment-header h4 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.35;
    width: 100%;
}

.sf-treatment-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.sf-treatment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px dashed #f1f5f9;
    margin-top: 4px;
    gap: 8px;
    flex-wrap: wrap;
}

.sf-treatment-meta-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sf-treatment-duration-badge {
    background: #f1f5f9;
    color: #334155;
    font-size: 12.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.sf-treatment-price-badge {
    background: var(--sf-calendar-color) !important;
    color: #ffffff !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 6px rgba(201, 154, 75, 0.25) !important;
}

.sf-treatment-select-btn {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    transition: all 0.2s ease !important;
}

.sf-treatment:hover .sf-treatment-select-btn {
    transform: translateX(3px);
}

/* Sloty czasowe */
.sf-time-slots {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 440px;
    overflow-y: auto;
    padding: 4px 8px 4px 4px;
    width: 100%;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

/* Custom Scrollbar dla slotów czasowych i zabiegów */
.sf-time-slots::-webkit-scrollbar,
.sf-treatments::-webkit-scrollbar {
    width: 6px;
}

.sf-time-slots::-webkit-scrollbar-track,
.sf-treatments::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 10px;
}

.sf-time-slots::-webkit-scrollbar-thumb,
.sf-treatments::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
    transition: background-color 0.2s ease;
}

.sf-time-slots::-webkit-scrollbar-thumb:hover,
.sf-treatments::-webkit-scrollbar-thumb:hover {
    background: var(--sf-calendar-color, #c99a4b);
}

.sf-time-slot {
    padding: 14px 12px !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: var(--sf-radius-sm) !important;
    cursor: pointer !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    font-family: var(--sf-font-family) !important;
}

.sf-time-slot:hover {
    background: var(--sf-calendar-hover-bg) !important;
    border-color: var(--sf-calendar-color) !important;
    color: #0f172a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08) !important;
}

.sf-time-slot.selected {
    background: var(--sf-calendar-color) !important;
    border-color: var(--sf-calendar-color) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 6px 20px rgba(201, 154, 75, 0.35) !important;
    transform: scale(1.04) !important;
}

.sf-time-slot.disabled {
    background: #f8fafc !important;
    color: #cbd5e1 !important;
    border-color: #f1f5f9 !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
}


@media only screen and (max-width: 768px) {
    .sf-time-slot {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }
}

/* Formularz */
.sf-form-cf7 {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
    margin: 0 !important;
}

#sf-booking-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 18px;
    margin-top: 6px;
}

.sf-form-group-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
}

.sf-form-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    gap: 8px !important;
}

.sf-form-group>p {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    gap: 8px !important;
    margin: 0 !important;
}

.sf-form-group label {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    font-family: var(--sf-font-family) !important;
}

.sf-form-group input[type="text"],
.sf-form-group input[type="tel"],
.sf-form-group input[type="email"] {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: var(--sf-radius-sm) !important;
    font-size: 14.5px !important;
    font-family: var(--sf-font-family) !important;
    box-sizing: border-box !important;
    color: #0f172a !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
}

.sf-form-group input[type="text"]:focus,
.sf-form-group input[type="tel"]:focus,
.sf-form-group input[type="email"]:focus {
    outline: none !important;
    border-color: var(--sf-calendar-color) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(201, 154, 75, 0.2) !important;
}

.sf-form-group input[type="text"]:not(:placeholder-shown),
.sf-form-group input[type="tel"]:not(:placeholder-shown),
.sf-form-group input[type="email"]:not(:placeholder-shown) {
    border-color: #22c55e !important;
    background-color: #f0fdf4 !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12) !important;
}

.sf-checkbox-label {
    display: flex !important;
    align-items: center !important;
    cursor: pointer;
    gap: 10px !important;
    font-size: 13.5px !important;
    color: #475569 !important;
    user-select: none !important;
}

.sf-form-group input[type="checkbox"],
.sf-checkbox-label input[type="checkbox"],
input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background-color: #ffffff !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    position: relative !important;
    display: inline-block !important;
    margin: 0 10px 0 0 !important;
    padding: 0 !important;
    float: none !important;
    vertical-align: middle !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

.sf-form-group input[type="checkbox"]:hover,
.sf-checkbox-label input[type="checkbox"]:hover {
    border-color: var(--sf-calendar-color) !important;
}

.sf-form-group input[type="checkbox"]:checked,
.sf-checkbox-label input[type="checkbox"]:checked,
input[type="checkbox"]:checked {
    background-color: var(--sf-calendar-color) !important;
    border-color: var(--sf-calendar-color) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
    background-size: 70% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Przyciski Akcji - Wyrównane do lewej z odstępami */
.sf-form-actions {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: 100% !important;
    gap: 16px !important;
    margin-top: 16px !important;
    padding-top: 16px !important;
    border-top: 1px solid #f1f5f9 !important;
    float: none !important;
    clear: both !important;
}

.sf-form-actions p,
.sf-form-actions>p {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-top: none !important;
    width: auto !important;
    justify-content: flex-start !important;
}

.sf-modal-btn,
.sf-form-actions .sf-modal-btn,
.sf-form-actions input[type="submit"],
.sf-form-actions button {
    margin: 0 !important;
    margin-right: 0 !important;
    padding: 14px 28px !important;
    border: none !important;
    border-radius: var(--sf-radius-sm) !important;
    cursor: pointer !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    font-family: var(--sf-font-family) !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
    min-width: 130px !important;
    text-align: center !important;
}

/* Micro-animacje */
@keyframes sfPulseStep {
    0% {
        box-shadow: 0 0 0 0 rgba(201, 154, 75, 0.4);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(201, 154, 75, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(201, 154, 75, 0);
    }
}

.sf-step.active {
    animation: sfPulseStep 2s infinite;
}

.sf-modal-btn:active,
.sf-time-slot:active,
.sf-treatment:active,
.sf-calendar-day:active {
    transform: scale(0.96) !important;
}

.sf-btn-back {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}

.sf-btn-back:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.sf-btn-submit,
.wpcf7-submit,
#sf-calendar-form-modal input[type="submit"] {
    background: var(--sf-calendar-color) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(201, 154, 75, 0.28) !important;
}

.sf-btn-submit:hover,
.wpcf7-submit:hover,
#sf-calendar-form-modal input[type="submit"]:hover {
    background: var(--sf-calendar-color-dark) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 10px 25px rgba(201, 154, 75, 0.35) !important;
}

.sf-btn-submit:disabled,
.wpcf7-submit:disabled,
#sf-calendar-form-modal input[type="submit"]:disabled {
    background: #cbd5e1 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

/* Modal Podziękowań */
.sf-thank-you-content {
    text-align: center;
    padding: 30px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.sf-success-icon-badge {
    width: 72px;
    height: 72px;
    background: #ecfdf5;
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.25);
    animation: sfPulseBadge 1.2s ease-out 0.2s 1 normal both;
}

.sf-checkmark-svg {
    width: 36px;
    height: 36px;
    stroke: #10b981;
}

.sf-checkmark-svg polyline {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: sfCheckmarkDraw 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.2s forwards;
}

@keyframes sfCheckmarkDraw {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes sfPulseBadge {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Animacje przejścia miesięcy kalendarza */
.sf-calendar-days.sf-slide-next {
    animation: sfSlideNext 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

.sf-calendar-days.sf-slide-prev {
    animation: sfSlidePrev 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes sfSlideNext {
    0% {
        opacity: 0.2;
        transform: translateX(16px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes sfSlidePrev {
    0% {
        opacity: 0.2;
        transform: translateX(-16px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Skeleton Loader */
.sf-skeleton-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    width: 100%;
    padding: 4px;
    box-sizing: border-box;
}

@media only screen and (max-width: 640px) {
    .sf-skeleton-container {
        grid-template-columns: 1fr;
    }
}

.sf-skeleton-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--sf-radius-md);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.sf-skeleton-block {
    background: #f1f5f9;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.sf-skeleton-block::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.75) 50%, rgba(255, 255, 255, 0) 100%);
    animation: sfShimmer 1.4s infinite;
}

@keyframes sfShimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Nagłówki pór dnia w slotach czasowych */
.sf-time-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
}

.sf-time-group-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #475569;
    padding-bottom: 8px;
    border-bottom: 1.5px solid #f1f5f9;
    width: 100%;
    box-sizing: border-box;
}

.sf-time-group-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.sf-thank-you-content h3 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.sf-thank-you-content p {
    font-size: 15px;
    color: #64748b;
    margin: 0;
    max-width: 440px;
    line-height: 1.6;
}

/* Responsywność dla urządzeń mobilnych */
@media only screen and (max-width: 768px) {
    #sf-calendar-container {
        padding: 12px !important;
        margin: 10px auto !important;
    }

    .sf-calendar-wrapper {
        padding: 16px 12px !important;
        border-radius: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .sf-calendar-header {
        margin-bottom: 14px !important;
        padding-bottom: 12px !important;
    }

    .sf-calendar-month-year {
        font-size: 18px !important;
    }

    .sf-calendar-nav {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
    }

    .sf-calendar-weekdays {
        gap: 4px !important;
        margin-bottom: 8px !important;
    }

    .sf-calendar-weekday {
        padding: 4px 1px !important;
        font-size: 10.5px !important;
        letter-spacing: 0 !important;
    }

    .sf-calendar-days {
        gap: 4px !important;
    }

    .sf-calendar-day {
        min-height: unset !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        padding: 0 !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    .sf-calendar-day-number {
        font-size: 13px !important;
    }

    .sf-modal.active {
        padding: 12px !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .sf-modal-content {
        padding: 20px 16px 22px 16px !important;
        border-radius: 20px !important;
        max-height: 80vh !important;
        height: auto !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        margin: auto !important;
    }

    .sf-modal-close {
        top: 14px !important;
        right: 14px !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 18px !important;
    }

    .sf-modal-header-bar {
        margin-bottom: 14px !important;
        padding-bottom: 12px !important;
        padding-right: 36px !important;
    }

    .sf-stepper {
        font-size: 11.5px !important;
        gap: 4px !important;
        flex-wrap: wrap !important;
    }

    .sf-step {
        padding: 3px 8px !important;
    }

    .sf-step-line {
        width: 12px !important;
    }

    .sf-summary-bar {
        gap: 6px !important;
    }

    .sf-summary-pill {
        font-size: 12px !important;
        padding: 4px 10px !important;
    }

    .sf-modal-title {
        font-size: 18px !important;
    }

    .sf-treatments {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        max-height: 45vh !important;
    }

    .sf-time-slots {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        max-height: 45vh !important;
    }

    .sf-time-group-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 8px !important;
    }

    .sf-form-group-container {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .sf-form-group {
        width: 100% !important;
    }

    .sf-form-actions {
        margin-top: 12px !important;
        padding-top: 12px !important;
        gap: 10px !important;
    }

    .sf-modal-btn {
        flex: 1 1 auto !important;
        min-width: 110px !important;
        padding: 12px 18px !important;
        font-size: 14px !important;
    }

    .wpcf7-not-valid-tip {
        font-size: 12px !important;
        color: #ef4444 !important;
        margin-top: 4px !important;
        font-weight: 600 !important;
        display: block !important;
    }

    .wpcf7-form-control-wrap {
        display: block !important;
        width: 100% !important;
    }
}

@media only screen and (max-width: 480px) {
    .sf-time-group-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    .sf-stepper {
        font-size: 10.5px !important;
    }

    .sf-calendar-day {
        min-height: 38px !important;
        padding: 4px !important;
    }

    .sf-calendar-day-number {
        font-size: 12px !important;
    }

    .sf-modal-content {
        padding: 16px 14px 18px 14px !important;
        max-height: 80vh !important;
    }
}

/* =============================================
   Strona chroniona haslem — panel CRM
   ============================================= */
.post-password-form {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    margin: 0 !important;
    padding: 24px !important;
    background: linear-gradient(135deg, #1a0a00 0%, #2a1200 40%, #1f0e00 100%) !important;
    box-sizing: border-box !important;
}

.post-password-form::before,
.post-password-form::after {
    display: none !important;
    content: none !important;
}

/* Ukryj domyslny tekst WP */
.post-password-form p:first-of-type {
    display: none !important;
}

/* Karta */
.post-password-form p:last-of-type {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(249, 115, 22, 0.25) !important;
    border-radius: 20px !important;
    padding: 44px 48px 40px !important;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    width: 380px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Naglowek nad karta przez pseudo-element na formularzu nie dziala dobrze — uzywamy ::before na p:last-of-type ale to tez nie wychodzi, wiec zamieniamy hide na pierwsze p i wstawiamy tekst przez nie */

/* Odkryj pierwsze p i ustaw je jako naglowek */
.post-password-form p:first-of-type {
    display: block !important;
    font-size: 0 !important;
    line-height: 0 !important;
    margin: 0 0 0 0 !important;
    position: relative !important;
    z-index: 1 !important;
}

.post-password-form p:first-of-type::before {
    content: "Studio Figura" !important;
    display: block !important;
    font-family: Arial, sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: .35em !important;
    text-transform: uppercase !important;
    color: #f97316 !important;
    text-align: center !important;
    margin-bottom: 10px !important;
    line-height: 1 !important;
}

.post-password-form p:first-of-type::after {
    content: "Witamy w panelu zarzadzania klientkami" !important;
    display: block !important;
    font-family: Georgia, serif !important;
    font-size: 19px !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.88) !important;
    text-align: center !important;
    line-height: 1.4 !important;
    margin-bottom: 6px !important;
}

.post-password-form p:last-of-type::before {
    content: "Zaloguj sie, aby wejsc do swojego panelu" !important;
    display: block !important;
    font-family: Arial, sans-serif !important;
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.35) !important;
    text-align: center !important;
    margin-bottom: 28px !important;
    line-height: 1.5 !important;
}

.post-password-form label {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    font-family: Arial, sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .12em !important;
    color: rgba(255, 255, 255, 0.3) !important;
    margin-bottom: 14px !important;
}

.post-password-form input[type="password"] {
    width: 100% !important;
    padding: 14px 18px !important;
    border: 1px solid rgba(249, 115, 22, 0.2) !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    font-family: Arial, sans-serif !important;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.06) !important;
    outline: none !important;
    transition: border-color .2s, background .2s !important;
    letter-spacing: .1em !important;
    box-sizing: border-box !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 100001 !important;
    cursor: text !important;
}

.post-password-form input[type="password"]:focus {
    border-color: #f97316 !important;
    background: rgba(249, 115, 22, 0.08) !important;
}

.post-password-form input[type="submit"] {
    width: 100% !important;
    padding: 15px 18px !important;
    background: #f97316 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    font-family: Arial, sans-serif !important;
    cursor: pointer !important;
    letter-spacing: .14em !important;
    text-transform: uppercase !important;
    transition: opacity .2s, transform .1s !important;
    box-sizing: border-box !important;
    margin-top: 4px !important;
}

.post-password-form input[type="submit"]:hover {
    opacity: .88 !important;
    transform: translateY(-1px) !important;
}

.post-password-form input[type="submit"]:active {
    transform: translateY(0) !important;
}

/* Napraw Bootstrap modal-open blokujący formularz hasła */
body.modal-open .post-password-form,
body.modal-open .post-password-form * {
    pointer-events: auto !important;
}

body.modal-open {
    overflow: visible !important;
    overflow-y: auto !important;
    padding-right: 0 !important;
}

/* ============================================================
   UNIFIED MULTI-STEP BOOKING WIZARD & MODERN UI OVERHAUL
   ============================================================ */

.sf-wizard-modal-content {
    max-width: 700px !important;
    width: 95% !important;
    padding: 24px !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25) !important;
}

@media only screen and (max-width: 768px) {
    .sf-wizard-modal-content {
        padding: 16px !important;
    }
}

.sf-wizard-header {
    margin-bottom: 20px;
}

.sf-wizard-summary-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 20px;
    align-items: center;
}

.sf-summary-pill {
    font-size: 13px;
    color: #475569;
    background: #ffffff;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
    font-weight: 500;
}

.sf-summary-pill strong {
    color: #0f172a;
}

.sf-wizard-step-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: sfWizardFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@media only screen and (max-width: 768px) {
    .sf-wizard-summary-bar {
        padding: 8px 12px;
    }
}

@keyframes sfWizardFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* KARTY SPECJALISTÓW / PRACOWNIKÓW */
.sf-staff-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.sf-staff-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sf-staff-card:hover {
    border-color: var(--sf-calendar-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.sf-staff-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

.sf-staff-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf-staff-info h4 {
    margin: 0 0 2px 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.sf-staff-info p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}

.sf-staff-any {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px dashed var(--sf-calendar-color);
}

/* PODSUMOWANIE REZERWACJI I KALENDARZE */
.sf-thank-you-summary-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 20px;
    margin: 20px 0;
    text-align: left;
}

.sf-thank-you-summary-card h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #0f172a;
}

.sf-summary-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: #475569;
}

.sf-summary-details-list li span {
    color: #64748b;
    display: inline-block;
    width: 95px;
}

/* GRID WIDOKU PODZIĘKOWANIA (KALENDARZE + QR OBOK SIEBIE) */
.sf-thank-you-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
    align-items: stretch;
}

@media (max-width: 640px) {
    .sf-thank-you-grid {
        grid-template-columns: 1fr;
    }
}

.sf-thank-you-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    text-align: left;
}

.sf-export-header,
.sf-qr-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sf-card-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}

.sf-export-header h5,
.sf-qr-header h5 {
    margin: 0 0 2px 0;
    font-size: 14px;
    color: #0f172a;
    font-weight: 700;
}

.sf-export-header p,
.sf-qr-header p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.sf-export-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    padding-top: 10px;
}

.sf-export-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.sf-export-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sf-btn-gcal {
    border: 1px solid #4285f4;
    background: #f0f6ff;
    color: #1a73e8;
}

.sf-btn-gcal:hover {
    background: #e8f0fe;
    border-color: #1a73e8;
    color: #1557b0;
}

.sf-btn-ical {
    border: 1px solid #0f172a;
    background: #0f172a;
    color: #ffffff;
}

.sf-btn-ical:hover {
    background: #1e293b;
    border-color: #1e293b;
    color: #ffffff;
}

/* KOD QR REZERWACJI */
.sf-qr-code-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    text-align: center;
}

.sf-qr-code-display img {
    width: 120px !important;
    height: 120px !important;
    max-width: 120px !important;
    max-height: 120px !important;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}