/**
 * Booking Widget Styles
 *
 * Matches prototipo.html design exactly.
 *
 * @package Flavor_Flavor_Booking
 */

/* ==========================================================================
   Variables
   ========================================================================== */

:root {
    --ffb-primary: #c026d3;
    --ffb-primary-dark: #a21caf;
    --ffb-primary-light: #f5d0fe;
    --ffb-secondary: #ec4899;
    --ffb-success: #10b981;
    --ffb-warning: #f59e0b;
    --ffb-error: #ef4444;
    --ffb-text: #1f2937;
    --ffb-text-light: #6b7280;
    --ffb-text-muted: #9ca3af;
    --ffb-border: #e5e7eb;
    --ffb-bg: #f9fafb;
    --ffb-bg-gray: #f3f4f6;
    --ffb-white: #ffffff;
    --ffb-slate-900: #0f172a;
    --ffb-orange-50: #fff7ed;
    --ffb-orange-100: #ffedd5;
    --ffb-orange-500: #f97316;
    --ffb-orange-800: #9a3412;
    --ffb-radius: 0.75rem;
    --ffb-radius-lg: 1rem;
    --ffb-radius-xl: 1.5rem;
    --ffb-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --ffb-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Booking Widget Container
   ========================================================================== */

.ffb-booking-widget {
    position: relative;
    font-family: system-ui, -apple-system, sans-serif;
    height: 100%;
    min-height: 400px;
}

/* ==========================================================================
   Steps Indicator (internal - when not using theme sidebar)
   ========================================================================== */

.ffb-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.ffb-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--ffb-border);
    z-index: 0;
}

.ffb-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.ffb-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ffb-white);
    border: 2px solid var(--ffb-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--ffb-text-light);
    transition: all 0.3s ease;
}

.ffb-step.active .ffb-step-number,
.ffb-step.completed .ffb-step-number {
    background: var(--ffb-primary);
    border-color: var(--ffb-primary);
    color: var(--ffb-white);
}

.ffb-step-label {
    font-size: 0.75rem;
    color: var(--ffb-text-light);
    font-weight: 500;
}

.ffb-step.active .ffb-step-label {
    color: var(--ffb-primary);
}

/* ==========================================================================
   Step Content
   ========================================================================== */

.ffb-step-content {
    display: none;
    animation: fadeIn 0.3s ease;
    height: 100%;
}

.ffb-step-content.active {
    display: flex;
    flex-direction: column;
}

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

.ffb-step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ffb-text);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Empty State (Step 1 initial)
   ========================================================================== */

.ffb-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    height: 100%;
    min-height: 300px;
}

.ffb-empty-state-icon {
    background: var(--ffb-primary-light);
    padding: 1rem;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.ffb-empty-state-icon .material-symbols-outlined {
    font-size: 2.5rem;
    color: var(--ffb-primary);
}

.ffb-empty-state-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ffb-text);
    margin-bottom: 0.5rem;
}

.ffb-empty-state-text {
    color: var(--ffb-text-light);
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.ffb-empty-state-link {
    color: var(--ffb-primary);
    font-weight: 600;
    text-decoration: none;
    transition: text-decoration 0.2s;
}

.ffb-empty-state-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Services List
   ========================================================================== */

.ffb-services-wrapper {
    height: 100%;
}

.ffb-services-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ffb-service-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: var(--ffb-white);
    border: 2px solid var(--ffb-border);
    border-radius: var(--ffb-radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ffb-service-option:hover {
    border-color: var(--ffb-primary);
    box-shadow: var(--ffb-shadow);
}

.ffb-service-option.selected {
    border-color: var(--ffb-primary);
    background: linear-gradient(135deg, rgba(192, 38, 211, 0.05), rgba(236, 72, 153, 0.05));
}

.ffb-service-info {
    flex: 1;
}

.ffb-service-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ffb-text);
    margin: 0 0 0.25rem 0;
}

.ffb-service-desc {
    font-size: 0.875rem;
    color: var(--ffb-text-light);
    margin: 0 0 0.5rem 0;
}

.ffb-service-meta {
    display: flex;
    gap: 1rem;
}

.ffb-service-duration {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--ffb-text-light);
}

.ffb-service-duration .material-symbols-outlined {
    font-size: 1rem;
}

.ffb-service-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.ffb-price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ffb-primary);
}

/* ==========================================================================
   Horizontal Date Picker with Navigation
   ========================================================================== */

.ffb-date-picker {
    margin-bottom: 1.5rem;
}

/* Calendar Header with Navigation */
.ffb-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0 0.25rem;
}

.ffb-calendar-month {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ffb-text);
    text-transform: capitalize;
}

.ffb-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--ffb-white);
    border: 2px solid var(--ffb-border);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--ffb-text);
}

.ffb-calendar-nav:hover:not(.disabled) {
    border-color: var(--ffb-primary);
    background: var(--ffb-primary-light);
    color: var(--ffb-primary);
}

.ffb-calendar-nav.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.ffb-calendar-nav .material-symbols-outlined {
    font-size: 1.25rem;
}

/* Calendar Dates Grid */
.ffb-calendar-dates {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    animation: ffb-calendar-slide 0.25s ease-out;
}

@keyframes ffb-calendar-slide {
    from {
        opacity: 0.5;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 480px) {
    .ffb-calendar-dates {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 360px) {
    .ffb-calendar-dates {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ffb-date-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: var(--ffb-white);
    border: 2px solid var(--ffb-border);
    border-radius: var(--ffb-radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ffb-date-btn:hover {
    border-color: var(--ffb-primary);
    background: var(--ffb-primary-light);
}

.ffb-date-btn:hover .ffb-date-weekday {
    color: var(--ffb-primary);
}

.ffb-date-btn:hover .ffb-date-num {
    color: var(--ffb-primary-dark);
}

.ffb-date-btn.selected {
    border-color: var(--ffb-primary);
    background: var(--ffb-primary-light);
    box-shadow: 0 0 0 2px var(--ffb-primary);
}

.ffb-date-weekday {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ffb-text-light);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.ffb-date-btn.selected .ffb-date-weekday {
    color: var(--ffb-primary);
}

.ffb-date-num {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ffb-text);
}

.ffb-date-btn.selected .ffb-date-num {
    color: var(--ffb-primary-dark);
}

/* ==========================================================================
   Time Slots
   ========================================================================== */

.ffb-time-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--ffb-text);
}

.ffb-slots-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
    .ffb-slots-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ffb-time-slot {
    padding: 0.625rem 1rem;
    text-align: center;
    background: var(--ffb-white);
    border: 2px solid var(--ffb-border);
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    color: var(--ffb-text);
}

.ffb-time-slot:hover:not(.disabled):not(.selected) {
    border-color: var(--ffb-primary);
    color: var(--ffb-primary);
}

.ffb-time-slot.selected {
    background: var(--ffb-primary);
    border-color: var(--ffb-primary);
    color: var(--ffb-white);
}

.ffb-time-slot.selected:hover {
    background: var(--ffb-primary-dark, #a21caf);
    border-color: var(--ffb-primary-dark, #a21caf);
    color: var(--ffb-white);
}

.ffb-time-slot.disabled {
    background: var(--ffb-bg);
    color: var(--ffb-text-muted);
    cursor: not-allowed;
    text-decoration: line-through;
}

.ffb-select-date-first,
.ffb-no-slots {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--ffb-text-light);
    padding: 2rem;
}

/* ==========================================================================
   Form Styles (Step 3)
   ========================================================================== */

.ffb-booking-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ffb-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 480px) {
    .ffb-form-row {
        grid-template-columns: 1fr;
    }
}

.ffb-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ffb-form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ffb-text-light);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.ffb-form-group input,
.ffb-form-group textarea,
.ffb-form-group select {
    padding: 0.625rem 1rem;
    border: 1px solid var(--ffb-border);
    border-radius: 0.5rem;
    font-size: 1rem;
    background: var(--ffb-bg-gray);
    transition: all 0.2s ease;
    color: var(--ffb-text);
}

.ffb-form-group input::placeholder,
.ffb-form-group textarea::placeholder {
    color: var(--ffb-text-muted);
}

.ffb-form-group input:focus,
.ffb-form-group textarea:focus,
.ffb-form-group select:focus {
    outline: none;
    border-color: var(--ffb-primary);
    box-shadow: 0 0 0 2px rgba(192, 38, 211, 0.2);
    background: var(--ffb-white);
}

.ffb-form-group input.error,
.ffb-form-group textarea.error {
    border-color: var(--ffb-error);
}

/* Birth Date Field */
.ffb-form-birthdate {
    margin-top: 0.5rem;
}

.ffb-birthdate-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ffb-form-birthdate input[type="date"] {
    max-width: 180px;
    padding: 0.75rem 1rem;
}

.ffb-calculated-age {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--ffb-primary), var(--ffb-secondary, #a21caf));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.ffb-calculated-age .material-symbols-outlined {
    font-size: 1rem;
}

.ffb-age-note {
    font-size: 0.75rem;
    color: var(--ffb-text-muted);
    margin-top: 0.25rem;
    display: block;
    width: 100%;
}

.ffb-field-error {
    color: var(--ffb-error, #dc2626);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ffb-field-error::before {
    content: '⚠';
}

/* General form error message */
.ffb-form-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #fee2e2 0%, #fef2f2 100%);
    border: 1px solid #fecaca;
    border-radius: var(--ffb-radius);
    color: #dc2626;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    animation: ffb-shake 0.3s ease;
}

.ffb-form-error .material-symbols-outlined {
    font-size: 1.25rem;
    flex-shrink: 0;
}

@keyframes ffb-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

/* Form field error state */
.ffb-form-group input.error,
.ffb-form-group select.error,
.ffb-form-group textarea.error {
    border-color: var(--ffb-error, #dc2626);
    background-color: #fef2f2;
}

.ffb-form-group input.error:focus,
.ffb-form-group select.error:focus,
.ffb-form-group textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

/* Read-only email for logged-in users */
.ffb-form-group input[readonly],
.ffb-form-group input.ffb-readonly {
    background-color: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
    border-color: #d1d5db;
}

.ffb-form-group .ffb-readonly-note {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Parental Consent Box */
.ffb-parental-consent {
    margin-top: 1rem;
}

.ffb-consent-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: var(--ffb-radius);
    padding: 1rem;
    transition: all 0.3s ease;
}

.ffb-consent-box.error {
    border-color: var(--ffb-error);
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.ffb-consent-icon {
    color: #d97706;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.ffb-consent-content {
    flex: 1;
}

.ffb-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.ffb-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ffb-checkmark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    background: white;
    border: 2px solid #d97706;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 1px;
}

.ffb-checkmark::after {
    content: '';
    display: none;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.ffb-checkbox-label input[type="checkbox"]:checked ~ .ffb-checkmark {
    background: #d97706;
    border-color: #d97706;
}

.ffb-checkbox-label input[type="checkbox"]:checked ~ .ffb-checkmark::after {
    display: block;
}

.ffb-checkbox-label:hover .ffb-checkmark {
    border-color: #b45309;
}

.ffb-consent-text {
    font-size: 0.875rem;
    color: #92400e;
    line-height: 1.5;
    font-weight: 500;
}

/* Privacy Consent Box */
.ffb-privacy-consent {
    margin-top: 1.25rem;
}

.ffb-privacy-box {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    border-color: var(--ffb-primary);
}

.ffb-privacy-box .ffb-consent-icon {
    color: var(--ffb-primary);
}

.ffb-privacy-label .ffb-checkmark {
    border-color: var(--ffb-primary);
}

.ffb-privacy-label input[type="checkbox"]:checked ~ .ffb-checkmark {
    background: var(--ffb-primary);
    border-color: var(--ffb-primary);
}

.ffb-privacy-label:hover .ffb-checkmark {
    border-color: var(--ffb-primary-dark);
}

.ffb-privacy-box .ffb-consent-text {
    color: #5b21b6;
}

.ffb-privacy-box .ffb-consent-text a {
    color: var(--ffb-primary);
    text-decoration: underline;
    font-weight: 600;
}

.ffb-privacy-box .ffb-consent-text a:hover {
    color: var(--ffb-primary-dark);
}

.ffb-required-star {
    color: var(--ffb-error);
    font-weight: bold;
}

.ffb-privacy-consent .ffb-field-error {
    color: var(--ffb-error);
    font-size: 0.8125rem;
    margin-top: 0.5rem;
}

/* ==========================================================================
   Client Notes Section
   ========================================================================== */

.ffb-notes-group {
    margin-top: 1.25rem;
}

.ffb-notes-group textarea {
    min-height: 80px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.5;
}

.ffb-notes-counter {
    display: flex;
    justify-content: flex-end;
    font-size: 0.75rem;
    color: var(--ffb-text-muted);
    margin-top: 0.25rem;
}

.ffb-notes-counter.warning {
    color: #f59e0b;
}

.ffb-notes-counter.limit {
    color: var(--ffb-error);
}

/* ==========================================================================
   Payment Section
   ========================================================================== */

.ffb-payment-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ffb-text);
    margin: 1rem 0;
}

/* Payment Toggle - Pill style like prototype */
.ffb-payment-toggle {
    display: flex;
    padding: 0.25rem;
    background: var(--ffb-bg-gray);
    border-radius: var(--ffb-radius);
    margin-bottom: 1.5rem;
}

.ffb-payment-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    color: var(--ffb-text-light);
}

.ffb-payment-option:hover {
    color: var(--ffb-text);
}

.ffb-payment-option.active {
    background: var(--ffb-white);
    color: var(--ffb-text);
    box-shadow: var(--ffb-shadow);
}

.ffb-payment-option .material-symbols-outlined {
    font-size: 1.125rem;
}

/* Stripe Container */
.ffb-stripe-container {
    background: var(--ffb-white);
    border: 1px solid var(--ffb-border);
    border-radius: var(--ffb-radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.ffb-stripe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.ffb-stripe-powered {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ffb-text-muted);
    letter-spacing: 0.025em;
}

.ffb-card-logos {
    display: flex;
    gap: 0.5rem;
    opacity: 0.6;
}

.ffb-card-logo {
    height: 1rem;
    object-fit: contain;
}

.ffb-stripe-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ffb-stripe-field {
    position: relative;
}

.ffb-stripe-field .material-symbols-outlined {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    color: var(--ffb-text-muted);
    font-size: 1.25rem;
}

.ffb-stripe-card .ffb-stripe-input {
    padding-left: 2.5rem;
}

.ffb-stripe-input {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid var(--ffb-border);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: var(--ffb-white);
    color: var(--ffb-text);
}

.ffb-stripe-input::placeholder {
    color: var(--ffb-text-muted);
}

.ffb-stripe-input:focus {
    outline: none;
    border-color: var(--ffb-primary);
}

.ffb-stripe-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* Cash Container */
.ffb-cash-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--ffb-orange-50);
    border: 1px solid var(--ffb-orange-100);
    border-radius: var(--ffb-radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.ffb-cash-container .material-symbols-outlined {
    color: var(--ffb-orange-500);
    flex-shrink: 0;
}

.ffb-cash-container p {
    font-size: 0.875rem;
    color: var(--ffb-orange-800);
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.ffb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ffb-btn-primary {
    background: linear-gradient(135deg, var(--ffb-primary), var(--ffb-secondary));
    color: var(--ffb-white);
}

.ffb-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 38, 211, 0.3);
}

.ffb-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.ffb-btn-secondary {
    background: var(--ffb-white);
    border: 2px solid var(--ffb-border);
    color: var(--ffb-text);
}

.ffb-btn-secondary:hover {
    background: var(--ffb-bg);
}

.ffb-btn-select {
    background: var(--ffb-primary);
    color: var(--ffb-white);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: var(--ffb-radius);
}

.ffb-btn-select:hover {
    background: var(--ffb-primary-dark);
}

/* Continue Button (Step 2) */
.ffb-btn-continue {
    background: var(--ffb-slate-900);
    color: var(--ffb-white);
    padding: 0.875rem 2rem;
    border-radius: var(--ffb-radius);
}

.ffb-btn-continue:hover:not(:disabled) {
    background: #1e293b;
}

.ffb-btn-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Submit Button */
.ffb-btn-submit {
    width: 100%;
    background: var(--ffb-primary);
    color: var(--ffb-white);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--ffb-radius);
    box-shadow: 0 4px 14px -4px rgba(192, 38, 211, 0.4);
}

.ffb-btn-submit:hover {
    background: var(--ffb-primary-dark);
    box-shadow: 0 6px 20px -4px rgba(192, 38, 211, 0.5);
}

.ffb-submit-arrow {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

/* Link Button */
.ffb-btn-link {
    background: none;
    border: none;
    color: var(--ffb-primary);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.ffb-btn-link:hover {
    text-decoration: underline;
}

/* Step Actions */
.ffb-step-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 1.5rem;
    gap: 1rem;
}

/* ==========================================================================
   Confirmation (Step 4)
   ========================================================================== */

.ffb-confirmation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    height: 100%;
}

.ffb-confirmation-icon {
    width: 5rem;
    height: 5rem;
    background: var(--ffb-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.ffb-confirmation-icon .material-symbols-outlined {
    font-size: 3rem;
    color: var(--ffb-primary);
}

.ffb-confirmation-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ffb-text);
    margin-bottom: 0.5rem;
}

.ffb-confirmation-message {
    color: var(--ffb-text-light);
    max-width: 400px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.ffb-confirmation-details {
    background: var(--ffb-bg-gray);
    border: 1px solid var(--ffb-border);
    border-radius: var(--ffb-radius-lg);
    padding: 1.5rem;
    width: 100%;
    max-width: 350px;
    margin-bottom: 2rem;
    text-align: left;
}

.ffb-details-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ffb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.ffb-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--ffb-border);
    font-size: 0.875rem;
}

.ffb-detail-row:last-child {
    border-bottom: none;
}

.ffb-detail-row span:first-child {
    color: var(--ffb-text-light);
}

.ffb-detail-value {
    font-weight: 700;
    color: var(--ffb-text);
}

.ffb-detail-payment {
    color: var(--ffb-primary) !important;
}

/* ==========================================================================
   Loading Overlay
   ========================================================================== */

.ffb-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 100;
    border-radius: var(--ffb-radius);
}

.ffb-loading-overlay.active {
    display: flex;
}

.ffb-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--ffb-border);
    border-top-color: var(--ffb-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ==========================================================================
   No Services
   ========================================================================== */

.ffb-no-services {
    text-align: center;
    padding: 3rem;
    color: var(--ffb-text-light);
}

/* ==========================================================================
   Minimal Mode - For embedding in theme with external step indicators
   ========================================================================== */

.ffb-booking-widget.ffb-minimal {
    max-width: none;
    padding: 0;
}

.ffb-booking-widget.ffb-minimal .ffb-steps {
    display: none;
}

.ffb-booking-widget.ffb-minimal .ffb-step-content {
    padding: 0;
}

.ffb-booking-widget.ffb-minimal .ffb-step-title {
    text-align: left;
}

.ffb-booking-widget.ffb-minimal .ffb-step-actions {
    border-top: none;
}

/* ==========================================================================
   Theme Integration - when used inside ff-booking-widget
   ========================================================================== */

.ff-booking-widget .ffb-booking-widget {
    max-width: none;
    height: 100%;
}

.ff-booking-widget .ffb-steps {
    display: none !important;
}

.ff-booking-widget .ffb-step-title {
    text-align: left;
    color: var(--ff-gray-900, #1f2937);
}

.ff-booking-widget .ffb-btn-submit {
    background: linear-gradient(135deg, var(--ff-fuchsia-600, #c026d3), var(--ff-pink-600, #db2777));
}

.ff-booking-widget .ffb-btn-submit:hover {
    box-shadow: 0 8px 20px -4px rgba(192, 38, 211, 0.4);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 640px) {
    .ffb-step-title {
        font-size: 1.25rem;
    }

    .ffb-empty-state {
        padding: 2rem 1rem;
    }

    .ffb-empty-state-title {
        font-size: 1.25rem;
    }

    .ffb-service-option {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .ffb-service-price {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }

    .ffb-calendar-dates {
        grid-template-columns: repeat(4, 1fr);
    }

    .ffb-calendar-month {
        font-size: 0.875rem;
    }

    .ffb-confirmation-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .ffb-calendar-dates {
        grid-template-columns: repeat(3, 1fr);
    }

    .ffb-calendar-nav {
        width: 32px;
        height: 32px;
    }

    .ffb-calendar-nav .material-symbols-outlined {
        font-size: 1.125rem;
    }

    .ffb-slots-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .ffb-stripe-row {
        grid-template-columns: 1fr;
    }
}
