/* Estilos melhorados para tela de agendamento - Cliente */

.appointment-create {
    position: relative;
}


.booking-container {
    max-width: 920px;
    margin: 0 auto;
}

.booking-header {
    position: relative;
    background: var(--brand-card-background-color);
    color: var(--brand-card-text-color);
    padding: 1.75rem 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    border: 1px solid rgba(var(--brand-primary-color-rgb), 0.18);
    box-shadow: 0 18px 40px rgba(var(--brand-primary-color-rgb), 0.08);
}

    .booking-header::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 6px;
        background: var(--primary-gradient);
        border-radius: 20px 0 0 20px;
    }

.booking-hero {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-content {
    min-width: 240px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(var(--brand-primary-color-rgb), 0.12);
    color: var(--primary-dark);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.page-title {
    color: var(--brand-card-text-color);
    margin: 0;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.header-subtitle {
    color: var(--brand-card-meta-text-color);
    margin: 0.5rem 0 0 0;
    font-weight: 500;
}

.hero-highlight {
    margin-top: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(var(--brand-primary-color-rgb), 0.08);
    color: var(--brand-card-text-color);
    font-weight: 600;
}

    .hero-highlight strong {
        color: var(--primary-dark);
        font-weight: 700;
    }

.hero-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 0.75rem;
    min-width: 240px;
}

.meta-card {
    background: var(--brand-card-background-color);
    border: 1px solid rgba(var(--brand-primary-color-rgb), 0.14);
    border-radius: 14px;
    padding: 0.85rem 1rem;
}

.meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--brand-card-meta-text-color);
    font-weight: 700;
}

.meta-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-card-text-color);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

    .meta-value .bi-dot {
        font-size: 1.4rem;
        color: var(--success);
        line-height: 0;
    }

.booking-card {
    border-radius: var(--border-radius-xl);
    border: 1px solid rgba(var(--brand-primary-color-rgb), 0.12);
    background: var(--brand-card-background-color);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    position: relative;
    padding-left: 12px;
}

    .section-title::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 18px;
        border-radius: 999px;
        background: var(--primary-gradient);
    }

.saved-info-card {
    background: linear-gradient(135deg, rgba(var(--brand-primary-color-rgb), 0.08), rgba(var(--brand-secondary-color-rgb), 0.08));
    border-color: rgba(var(--brand-primary-color-rgb), 0.25) !important;
}

body:not(.has-sidebar) .appointment-create.booking-container .saved-info-card-inline {
    padding: 0.15rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body:not(.has-sidebar) .appointment-create.booking-container .saved-info-card-inline::before {
    content: none;
}

body:not(.has-sidebar) .appointment-create.booking-container .saved-info-card-inline::after {
    content: none;
}

body:not(.has-sidebar) .appointment-create.booking-container .saved-info-card-inline-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
}

body:not(.has-sidebar) .appointment-create.booking-container .saved-info-inline-text {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    color: var(--brand-card-text-color);
    font-size: 0.84rem;
    line-height: 1.45;
    margin: 0;
}

body:not(.has-sidebar) .appointment-create.booking-container .saved-info-details-scroll {
    display: block;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    cursor: grab;
    touch-action: pan-x;
}

    body:not(.has-sidebar) .appointment-create.booking-container .saved-info-details-scroll::-webkit-scrollbar {
        display: none;
    }

    body:not(.has-sidebar) .appointment-create.booking-container .saved-info-details-scroll:active {
        cursor: grabbing;
    }

body:not(.has-sidebar) .appointment-create.booking-container .saved-info-details-content {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: max-content;
    white-space: nowrap;
}

body:not(.has-sidebar) .appointment-create.booking-container .saved-info-prefix,
body:not(.has-sidebar) .appointment-create.booking-container .saved-info-separator {
    color: var(--brand-primary-color);
    font-weight: 500;
}

body:not(.has-sidebar) .appointment-create.booking-container .saved-info-prefix {
    flex-shrink: 0;
}

body:not(.has-sidebar) .appointment-create.booking-container .saved-info-inline-text strong,
body:not(.has-sidebar) .appointment-create.booking-container .saved-info-inline-text #displayClientName,
body:not(.has-sidebar) .appointment-create.booking-container .saved-info-inline-text #displayClientPhone {
    color: var(--brand-card-text-color);
    font-weight: 700;
}

body:not(.has-sidebar) .appointment-create.booking-container .saved-info-edit-link {
    color: var(--brand-primary-color);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex: 0 0 auto;
}

body:not(.has-sidebar) .appointment-create.booking-container .saved-info-edit-link:hover,
body:not(.has-sidebar) .appointment-create.booking-container .saved-info-edit-link:focus-visible {
    color: var(--brand-primary-dark);
    text-decoration: underline;
}

.service-summary-card {
    background: white;
    border: 2px solid var(--primary);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

    .service-summary-card:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }

.service-summary-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.booking-step {
    background: white;
    border-radius: var(--border-radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-left: 4px solid var(--primary);
}

    .booking-step h5 {
        color: var(--primary);
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .booking-step h5 i {
            font-size: 1.25rem;
        }

.form-control-lg,
.form-select-lg {
    padding: 0.875rem 1.125rem;
    font-size: 1rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

    .form-control-lg:focus,
    .form-select-lg:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 0.2rem rgba(var(--brand-primary-color-rgb), 0.15);
    }

.input-group-lg .input-group-text {
    background: var(--primary-lighter);
    border: 2px solid var(--border-color);
    border-right: none;
    color: var(--primary);
}

.input-group-lg .form-control,
.input-group-lg .form-select {
    border-left: none;
}

    .input-group-lg .form-control:focus,
    .input-group-lg .form-select:focus {
        border-left: 2px solid var(--primary);
    }

.employee-option-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
    justify-content: stretch;
    width: 100%;
}

.employee-option-card {
    border: 2px solid var(--border-color);
    background: var(--brand-card-background-color);
    border-radius: 16px;
    padding: 0.75rem 0.55rem 0.7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
}

@media (hover: hover) and (pointer: fine) {
    .employee-option-card:hover {
        border-color: var(--primary);
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(var(--brand-primary-color-rgb), 0.1);
    }
}

    .employee-option-card.selected {
        border-color: var(--primary);
        background: var(--primary-lighter);
        box-shadow: 0 8px 18px rgba(var(--brand-primary-color-rgb), 0.18);
    }

.employee-option-photo {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(var(--brand-primary-color-rgb), 0.22);
}

.employee-option-card.selected .employee-option-photo {
    border-color: var(--primary);
}

.employee-option-name {
    color: var(--brand-card-text-color);
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.2;
}

/* Calendário melhorado */
.calendar-container {
    background: white;
    border-radius: var(--border-radius-lg);
    margin-bottom: 1.5rem;
}

.month-label {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 1.5rem;
    text-transform: capitalize;
}

.day-selector-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

    .day-selector-container > .btn {
        padding: 0.4rem 0.55rem;
        border-radius: 999px;
    }

.day-selector .btn {
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-weight: 600;
    border-width: 2px;
}

.day-selector .btn-outline-secondary {
    color: var(--text-primary);
    border-color: rgba(100, 116, 139, 0.35);
    background: transparent;
}

@media (hover: hover) and (pointer: fine) {
    .day-selector .btn-outline-secondary:hover {
        border-color: var(--primary);
        color: var(--primary);
        background: var(--primary-lighter);
    }
}

.day-selector .btn-primary {
    background: var(--primary-gradient);
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(var(--brand-primary-color-rgb), 0.35);
}

@media (hover: hover) and (pointer: fine) {
    .day-selector .btn-primary:hover {
        filter: brightness(1.03);
    }
}

.day-btn {
    min-width: 80px;
    padding: 0.55rem 0.6rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    line-height: 1.05;
}

@media (hover: hover) and (pointer: fine) {
    .day-btn:hover:not(.active) {
        border-color: var(--primary);
        background: var(--primary-lighter);
        transform: translateY(-2px);
    }
}

    .day-btn.active {
        background: var(--primary-gradient);
        color: white;
        border-color: var(--primary);
        box-shadow: 0 4px 12px rgba(var(--brand-primary-color-rgb), 0.3);
    }

    .day-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.day-week {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #64748b;
}

.day-num {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-day-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .nav-day-btn:hover {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
        transform: scale(1.1);
    }
}

/* Horários disponíveis */
.times-container {
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

/* Modal de confirmação */
.confirmation-modal + .modal-backdrop.show,
.modal-backdrop.show {
    background: rgba(15, 23, 42, 0.45);
}

.confirmation-modal .modal-content {
    border-radius: 20px;
    border: 1px solid rgba(var(--brand-primary-color-rgb), 0.12);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    overflow: hidden;
}

.confirmation-modal .modal-header {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    border-bottom: none;
    padding: 1.5rem 1.75rem;
}

.confirmation-modal .modal-title {
    font-weight: 700;
    letter-spacing: 0.2px;
}

.confirmation-modal .modal-subtitle {
    font-size: 0.95rem;
}

.confirmation-modal .btn-close {
    filter: brightness(0) invert(1);
}

.confirmation-modal .modal-body {
    padding: 1.5rem 1.75rem;
    background: #f8fafc;
}

.confirmation-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    margin-bottom: 1rem;
}

.loyalty-reward-option .bi-gift {
    color: var(--brand-primary-color);
}

.loyalty-reward-option:has(.form-check-input:checked) {
    border-color: rgba(var(--brand-primary-color-rgb), 0.45);
    box-shadow: 0 0 0 0.2rem rgba(var(--brand-primary-color-rgb), 0.1);
}

.loyalty-reward-option .form-check-input:focus {
    border-color: var(--brand-primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--brand-primary-color-rgb), 0.2);
}

.loyalty-reward-option.is-ineligible {
    border-color: color-mix(in srgb, var(--warning) 38%, transparent);
    background: color-mix(in srgb, var(--warning) 8%, transparent);
}

.loyalty-reward-option.is-ineligible .bi-gift {
    color: var(--warning-text);
}

.confirmation-total-price {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.confirmation-total-price.is-loyalty-reward #modalPriceAmount {
    color: var(--brand-card-meta-text-color);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.confirmation-total-price__free {
    color: var(--success-text);
    font-weight: 800;
    text-decoration: none;
}

.confirmation-total-price__free[hidden] {
    display: none;
}

[data-theme="dark"] .loyalty-reward-option.is-ineligible {
    border-color: color-mix(in srgb, var(--warning) 42%, transparent);
    background: color-mix(in srgb, var(--warning) 12%, transparent);
}

[data-theme="dark"] .loyalty-reward-option.is-ineligible .bi-gift {
    color: var(--warning-text);
}

[data-theme="dark"] .confirmation-total-price__free {
    color: var(--success-text);
}

    .confirmation-section h2 {
        font-size: 1rem;
        font-weight: 700;
        color: #1f2937;
        margin-bottom: 0.75rem;
    }

.confirmation-grid {
    display: grid;
    gap: 0.75rem;
}

.confirmation-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
}

.confirmation-label {
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
}

.confirmation-value {
    color: #0f172a;
    font-weight: 700;
    text-align: right;
}

.modal-policy {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

    .modal-policy .policy-checkbox-container {
        align-items: flex-start;
    }

    .modal-policy .policy-label {
        color: #1f2937;
        font-weight: 600;
        font-size: 0.95rem;
    }

    .modal-policy .policy-link {
        color: var(--primary-dark);
    }

    .modal-policy.error {
        border-color: color-mix(in srgb, var(--danger) 50%, transparent);
        background: color-mix(in srgb, var(--danger-light) 60%, transparent);
    }

.confirmation-modal .modal-footer {
    padding: 1.25rem 1.75rem;
    border-top: none;
    background: #f8fafc;
}

    .confirmation-modal .modal-footer .btn {
        border-radius: 999px;
        padding: 0.6rem 1.5rem;
        font-weight: 600;
    }

    .confirmation-modal .modal-footer .btn-primary {
        background: var(--primary-gradient);
        border: none;
        box-shadow: 0 10px 20px rgba(var(--brand-primary-color-rgb), 0.35);
    }

    .confirmation-modal .modal-footer .btn-secondary {
        background: #e2e8f0;
        border: none;
        color: #1f2937;
    }

.times-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

    .times-header h5 {
        color: var(--primary);
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

.times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.hour-btn {
    padding: 0.875rem 1rem;
    border: 2px solid var(--primary);
    border-radius: var(--border-radius);
    background: white;
    color: var(--primary);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 90px;
}

@media (hover: hover) and (pointer: fine) {
    .hour-btn:hover:not(.active):not(:disabled) {
        background: var(--primary-lighter);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(var(--brand-primary-color-rgb), 0.2);
    }
}

    .hour-btn.active {
        background: var(--primary-gradient);
        color: white;
        border-color: var(--primary);
        box-shadow: 0 4px 12px rgba(var(--brand-primary-color-rgb), 0.4);
        transform: scale(1.05);
    }

    .hour-btn:disabled,
    .hour-btn.disabled {
        opacity: 0.4;
        cursor: not-allowed;
        background: var(--gray-200);
        border-color: var(--gray-300);
        color: var(--text-muted);
    }

/* Modal de confirmação melhorado */
.modal-content {
    border-radius: var(--border-radius-lg);
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    border-bottom: none;
    padding: 1.5rem;
}

    .modal-header .btn-close {
        filter: brightness(0) invert(1);
    }

.modal-body {
    padding: 2rem;
}

.confirmation-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

    .confirmation-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .confirmation-section h6 {
        color: var(--primary);
        font-weight: 700;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

.confirmation-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-100);
}

    .confirmation-item:last-child {
        border-bottom: none;
    }

.confirmation-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.confirmation-value {
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
}

/* Botões de ação */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.btn-cancel {
    padding: 0.875rem 2rem;
    font-weight: 600;
}

.btn-confirm {
    padding: 0.875rem 2rem;
    font-weight: 600;
    min-width: 200px;
}

/* Alertas melhorados */
.alert-saved-info {
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--gray-50) 100%);
    border: 2px solid var(--primary);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

    .alert-saved-info h6 {
        color: var(--primary);
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .alert-saved-info .info-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }

        .alert-saved-info .info-item i {
            color: var(--primary);
            font-size: 1.25rem;
        }

/* Responsividade */
@media (max-width: 768px) {
    .booking-container {
        padding: 0 0.25rem;
    }

    .booking-header {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .page-title {
        font-size: 1.6rem;
    }

    .booking-hero {
        align-items: flex-start;
    }

    .hero-meta {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .booking-step {
        padding: 1.1rem;
    }

    body:not(.has-sidebar) .appointment-create.booking-container .saved-info-card-inline {
        padding: 0;
    }

    body:not(.has-sidebar) .appointment-create.booking-container .saved-info-card-inline-head {
        align-items: flex-start;
        gap: 0.6rem;
    }

    body:not(.has-sidebar) .appointment-create.booking-container .saved-info-inline-text {
        font-size: 0.8rem;
    }

    body:not(.has-sidebar) .appointment-create.booking-container .saved-info-inline-text strong {
        display: inline;
    }

    body:not(.has-sidebar) .appointment-create.booking-container .saved-info-separator {
        display: inline-block;
        margin: 0 0.2rem;
    }

    body:not(.has-sidebar) .appointment-create.booking-container .saved-info-edit-link {
        margin-left: auto;
    }

    .day-selector,
    .day-selector-container {
        gap: 0.35rem !important;
        padding: 0 0.1rem;
    }

    #daySelector {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.2rem;
        width: 100%;
    }

        #daySelector .day-btn {
            min-width: 0;
            min-height: 64px;
            padding: 0.56rem 0.28rem;
            gap: 0.14rem;
            border-radius: 12px;
        }

        #daySelector .day-week {
            font-size: 0.7rem;
            line-height: 1.05;
        }

        #daySelector .day-num {
            font-size: 1rem;
            line-height: 1.05;
        }

    .day-selector > .btn,
    .day-selector-container > .btn {
        padding: 0.28rem 0.4rem;
        min-width: 34px;
        min-height: 34px;
    }

    .times-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.5rem;
    }

    .hour-btn {
        min-width: 80px;
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-cancel,
    .btn-confirm {
        width: 100%;
    }

    .booking-card .card-body {
        padding: 1rem;
    }

    .times-container {
        padding: 0;
        margin-top: 0.75rem;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    }

    .available-times {
        margin-top: 0.75rem !important;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.booking-step,
.service-summary-card,
.calendar-container,
.times-container {
    animation: fadeInUp 0.4s ease-out;
}

    .booking-step:nth-child(1) {
        animation-delay: 0.1s;
    }

    .booking-step:nth-child(2) {
        animation-delay: 0.2s;
    }

    .booking-step:nth-child(3) {
        animation-delay: 0.3s;
    }

/* Seleção de serviços (modal) */
.appointment-create .service-summary-duration,
.appointment-create .service-summary-price {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.appointment-create .service-summary-duration-value {
    color: var(--brand-card-duration-text-color);
}

.appointment-create .service-summary-price-value {
    color: var(--brand-card-price-text-color);
}

.appointment-create .service-summary-meta-separator {
    color: var(--text-secondary);
}

.appointment-create .add-service-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 46px;
    border-width: 1px;
    border-radius: 999px;
    padding: 0.7rem 1.2rem;
    font-weight: 700;
    color: var(--brand-public-button-text-color, #fff);
    background: var(--primary-gradient);
    border-color: transparent;
    box-shadow: 0 12px 28px rgba(var(--brand-primary-color-rgb), 0.24);
}

    .appointment-create .add-service-trigger i {
        font-size: 1rem;
    }

    .appointment-create .add-service-trigger:hover:not(:disabled),
    .appointment-create .add-service-trigger:focus-visible:not(:disabled) {
        color: var(--brand-public-button-text-color, #fff);
        background: var(--primary-gradient-alt);
        transform: translateY(-1px);
        box-shadow: 0 16px 34px rgba(var(--brand-primary-color-rgb), 0.28);
    }

    .appointment-create .add-service-trigger:disabled {
        color: #e2e8f0;
        background: linear-gradient(135deg, #94a3b8, #94a3b8);
        border-color: transparent;
        box-shadow: none;
    }

.appointment-create .service-selection-summary {
    position: relative;
    padding: 1.2rem 1.25rem;
    border-radius: 20px !important;
    border: 1px solid rgba(var(--brand-primary-color-rgb), 0.18) !important;
    background: linear-gradient(180deg, rgba(var(--brand-primary-color-rgb), 0.08), rgba(var(--brand-primary-color-rgb), 0.04)), linear-gradient(135deg, rgba(var(--brand-primary-color-rgb), 0.08), rgba(var(--brand-secondary-color-rgb), 0.08));
    box-shadow: inset 0 1px 0 rgba(var(--brand-primary-color-rgb), 0.08), 0 16px 34px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

    .appointment-create .service-selection-summary::after {
        content: none;
    }

.appointment-create .service-selection-summary-head {
    position: relative;
    z-index: 1;
    padding-bottom: 0.9rem;
    margin-bottom: 0.3rem;
    border-bottom: 1px solid rgba(var(--brand-primary-color-rgb), 0.12);
}

    .appointment-create .service-selection-summary-head > div:first-child::before {
        content: "Serviços selecionados";
        display: inline-flex;
        align-items: center;
        padding: 0.24rem 0.55rem;
        margin-bottom: 0.4rem;
        border-radius: 999px;
        background: rgba(var(--brand-primary-color-rgb), 0.1);
        color: var(--text-primary);
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

.appointment-create .service-selection-summary #selectedServicesTotals {
    white-space: nowrap;
    color: var(--text-secondary) !important;
}

.appointment-create .prepayment-disclosure {
    display: grid;
    gap: 0.3rem;
    margin-top: 0.8rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--brand-primary-color);
    border-radius: 12px;
    background: var(--brand-card-background-color);
    color: var(--brand-card-text-color);
    line-height: 1.45;
}

.appointment-create .prepayment-disclosure strong {
    color: var(--brand-card-text-color);
    font-weight: 800;
}

.appointment-create .prepayment-disclosure p {
    margin: 0;
    color: var(--brand-card-meta-text-color);
}

.appointment-create .confirmation-modal .prepayment-disclosure {
    margin-top: 0.9rem;
}

.appointment-create .service-selection-summary #selectedServicesLimitText {
    margin-top: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    background: rgba(var(--brand-primary-color-rgb), 0.1);
    border: 1px solid rgba(var(--brand-primary-color-rgb), 0.14);
    color: var(--text-secondary) !important;
}

/* Resumo de serviços selecionados (card) */
.appointment-create #selectedServicesSummary ul {
    display: grid;
    gap: 0.65rem;
    position: relative;
    z-index: 1;
}

.appointment-create #selectedServicesSummary li {
    list-style: none;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(var(--brand-primary-color-rgb), 0.12);
    background: rgba(var(--brand-primary-color-rgb), 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

    .appointment-create #selectedServicesSummary li .fw-semibold {
        color: var(--brand-card-text-color);
    }

    .appointment-create #selectedServicesSummary li .text-muted {
        white-space: nowrap;
        color: var(--brand-card-meta-text-color) !important;
    }

.appointment-themed-modal .modal-content {
    background: var(--brand-card-background-color);
    color: var(--brand-card-text-color);
    border: 1px solid rgba(var(--brand-primary-color-rgb), 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 46px rgba(var(--brand-primary-color-rgb), 0.16);
    overflow: hidden;
}

.appointment-themed-modal .modal-header,
.appointment-themed-modal .modal-body,
.appointment-themed-modal .modal-footer {
    background: var(--brand-card-background-color);
    color: var(--brand-card-text-color);
}

.appointment-themed-modal .modal-header {
    border-bottom: 1px solid rgba(var(--brand-primary-color-rgb), 0.16);
    padding: 1.5rem 1.75rem;
}

.appointment-themed-modal .modal-body {
    padding: 1.5rem 1.75rem;
}

.appointment-themed-modal .modal-footer {
    border-top: 1px solid rgba(var(--brand-primary-color-rgb), 0.16);
    padding: 1.25rem 1.75rem;
}

.appointment-themed-modal .modal-title,
.appointment-themed-modal strong,
.appointment-themed-modal .form-label,
.appointment-themed-modal .birthday-expander-title,
.appointment-themed-modal .service-picker-item-name {
    color: var(--brand-card-text-color) !important;
}

.appointment-themed-modal .text-muted,
.appointment-themed-modal .service-picker-description,
.appointment-themed-modal .service-picker-item-meta {
    color: var(--brand-card-meta-text-color) !important;
}

.appointment-themed-modal .text-primary,
.appointment-themed-modal .text-success {
    color: var(--brand-primary-color) !important;
}

.appointment-themed-modal .btn-close {
    filter: none;
    opacity: 0.75;
}

.appointment-themed-modal .btn-close:hover {
    opacity: 1;
}

.appointment-themed-modal .modal-footer .btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
}

.appointment-themed-modal .modal-footer .btn-secondary {
    background: rgba(var(--brand-primary-color-rgb), 0.14);
    border: 1px solid rgba(var(--brand-primary-color-rgb), 0.35);
    color: var(--brand-primary-dark) !important;
}

.appointment-themed-modal .modal-footer .btn-secondary:hover,
.appointment-themed-modal .modal-footer .btn-secondary:focus {
    background: rgba(var(--brand-primary-color-rgb), 0.22);
    border-color: rgba(var(--brand-primary-color-rgb), 0.5);
    color: var(--brand-primary-dark) !important;
}

.appointment-themed-modal .modal-footer .btn-primary {
    background: var(--brand-primary-gradient);
    border: none;
    color: var(--brand-public-button-text-color);
    box-shadow: 0 10px 20px rgba(var(--brand-primary-color-rgb), 0.35);
}

.appointment-themed-modal .modal-footer .btn-primary:hover,
.appointment-themed-modal .modal-footer .btn-primary:focus {
    background: var(--brand-primary-gradient-alt);
    border: none;
    color: var(--brand-public-button-text-color);
}

.appointment-service-modal .service-picker-header,
.appointment-service-modal .service-picker-item,
.appointment-client-modal .birthday-expander {
    background: rgba(var(--brand-primary-color-rgb), 0.04);
    border: 1px solid rgba(var(--brand-primary-color-rgb), 0.18);
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.appointment-service-modal .service-picker-header {
    padding: 1rem 1.1rem;
}

.appointment-service-modal .service-picker-progress {
    background: rgba(var(--brand-primary-color-rgb), 0.12);
}

.appointment-service-modal .service-picker-progress .progress-bar {
    background: var(--brand-primary-gradient);
}

.appointment-service-modal .service-picker-list {
    background: transparent;
}

.appointment-service-modal .service-picker-item {
    color: var(--brand-card-text-color);
    margin-bottom: 0.75rem;
    padding: 1rem 1.05rem;
}

.appointment-service-modal .service-picker-item:has(.form-check-input:checked) {
    border-color: rgba(var(--brand-primary-color-rgb), 0.35);
    box-shadow: 0 10px 24px rgba(var(--brand-primary-color-rgb), 0.12);
}

@media (hover: hover) and (pointer: fine) {
    .appointment-service-modal .service-picker-item:hover {
        border-color: rgba(var(--brand-primary-color-rgb), 0.35);
        box-shadow: 0 10px 24px rgba(var(--brand-primary-color-rgb), 0.12);
    }
}

.appointment-service-modal .service-picker-item:has(.form-check-input:checked) {
    background: rgba(var(--brand-primary-color-rgb), 0.08);
}

.appointment-service-modal .service-picker-badge,
.appointment-service-modal .service-picker-tag {
    background: rgba(var(--brand-primary-color-rgb), 0.12);
    border: 1px solid rgba(var(--brand-primary-color-rgb), 0.18);
    color: var(--brand-card-text-color);
}

.appointment-service-modal .service-picker-item .form-check-input {
    background-color: var(--brand-card-background-color);
    border-color: rgba(var(--brand-primary-color-rgb), 0.28);
}

.appointment-service-modal .service-picker-item .form-check-input:checked {
    background-color: var(--brand-primary-color);
    border-color: var(--brand-primary-color);
}

.appointment-service-modal #addServicesModalError,
.appointment-client-modal .invalid-feedback,
.appointment-client-modal .text-danger {
    color: var(--danger-text) !important;
}

.appointment-client-modal .form-control,
.appointment-client-modal .input-group-text {
    background: rgba(var(--brand-primary-color-rgb), 0.04);
    border-color: rgba(var(--brand-primary-color-rgb), 0.22);
    color: var(--brand-card-text-color);
}

.appointment-client-modal .form-control::placeholder {
    color: var(--brand-card-meta-text-color);
    opacity: 1;
}

.appointment-client-modal .form-control:focus {
    background: rgba(var(--brand-primary-color-rgb), 0.04);
    border-color: var(--brand-primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--brand-primary-color-rgb), 0.16);
    color: var(--brand-card-text-color);
}

.appointment-client-modal .birthday-expander {
    margin-top: 0.35rem;
    overflow: hidden;
    padding: 0.6rem 0.75rem;
}

.appointment-client-modal .birthday-expander summary {
    align-items: center;
    color: inherit;
    cursor: pointer;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    user-select: none;
}

.appointment-client-modal .birthday-expander summary::-webkit-details-marker {
    display: none;
}

.appointment-client-modal .birthday-expander-body {
    padding-top: 0.75rem;
}

.appointment-client-modal .alert-danger {
    background: var(--danger-light);
    border-color: var(--danger-border);
    color: var(--danger-text);
}

@media (max-width: 991.98px) {
    .appointment-create .service-selection-summary #selectedServicesTotals {
        font-size: 0.88rem;
    }

    .appointment-create .service-selection-summary #selectedServicesLimitText {
        padding: 0;
        border: none;
        background: transparent;
        font-size: 0.82rem;
    }

    .appointment-create #selectedServicesSummary ul {
        gap: 0.4rem;
        margin-top: 0.65rem !important;
    }

    .appointment-create #selectedServicesSummary li {
        padding: 0.55rem 0.65rem;
        border-radius: 10px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
    }

        .appointment-create #selectedServicesSummary li .text-muted {
            white-space: normal;
            font-size: 0.82rem;
        }

    .appointment-themed-modal .modal-header,
    .appointment-themed-modal .modal-body,
    .appointment-themed-modal .modal-footer {
        padding-inline: 0.95rem;
    }
}

@media (max-width: 768px) {
    body:not(.has-sidebar) .appointment-create-page-shell {
        width: 100%;
        max-width: none;
        margin: 0 !important;
        padding-inline: 0;
    }

    body:not(.has-sidebar) .appointment-create-page-shell .guest-back-navigation {
        display: none;
    }

    body:not(.has-sidebar) .appointment-create-page-shell .appointment-create.booking-container {
        width: 100%;
        max-width: none;
        padding-inline: 0;
    }

    body:not(.has-sidebar) .appointment-create-page-shell .booking-card {
        margin-bottom: 0 !important;
        border-right: 0 !important;
        border-left: 0 !important;
        border-radius: 0;
        box-shadow: none;
    }

    body:not(.has-sidebar) .appointment-create-page-shell .booking-card .card-body {
        padding: 0.75rem;
    }

    .appointment-create .service-selection-summary {
        padding-top: 0.5rem;
    }

    .appointment-create #selectedServicesSummary .service-selection-list {
        margin-top: 0 !important;
    }
}

[data-theme="dark"] .appointment-create .booking-header,
[data-theme="dark"] .appointment-create .booking-card,
[data-theme="dark"] .appointment-create .booking-step,
[data-theme="dark"] .appointment-create .service-summary-card,
[data-theme="dark"] .appointment-create .calendar-container,
[data-theme="dark"] .appointment-create .times-container,
[data-theme="dark"] .appointment-create .employee-option-card,
[data-theme="dark"] .appointment-create .confirmation-modal .modal-content,
[data-theme="dark"] .appointment-create .confirmation-section,
[data-theme="dark"] .appointment-create .confirmation-item {
    background: var(--bg-primary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .appointment-create .loyalty-reward-option:has(.form-check-input:checked) {
    border-color: rgba(var(--brand-primary-color-rgb), 0.55) !important;
    box-shadow: 0 0 0 0.2rem rgba(var(--brand-primary-color-rgb), 0.18);
}

@media (hover: hover) and (pointer: fine) {
    [data-theme="dark"] .appointment-create .employee-option-card:hover,
    [data-theme="dark"] .appointment-create .day-btn:hover:not(.active),
    [data-theme="dark"] .appointment-create .hour-btn:hover:not(.active):not(:disabled) {
        background: var(--bg-tertiary) !important;
        border-color: var(--primary-light) !important;
        color: #ffffff !important;
    }
}

[data-theme="dark"] .appointment-create .header-subtitle,
[data-theme="dark"] .appointment-create .meta-label,
[data-theme="dark"] .appointment-create .confirmation-label,
[data-theme="dark"] .appointment-create .service-summary-meta {
    color: var(--text-muted) !important;
}

.appointment-create .employee-option-strip {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    justify-content: stretch;
    width: 100%;
}

    .appointment-create .employee-option-strip .employee-option-card {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding: 0.65rem 0.7rem;
        border-radius: 14px;
        gap: 0.55rem;
        min-height: 64px;
        text-align: center;
        width: 100%;
    }

    .appointment-create .employee-option-strip .employee-option-photo {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
    }

    .appointment-create .employee-option-strip .employee-option-name {
        font-size: 0.85rem;
        line-height: 1.25;
        text-align: center;
    }

.appointment-create .day-selector-strip {
    gap: 0.35rem !important;
}

@media (max-width: 767.98px) {
    .appointment-create .day-selector > button {
        display: none !important;
    }

    .appointment-create #daySelector.day-selector-strip {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        gap: 0.5rem !important;
        width: 100%;
        min-width: 0;
        overflow-x: auto;
        padding: 0.35rem 0.25rem 0.75rem;
        scroll-snap-type: x proximity;
        scroll-padding-inline: 0.25rem;
        scrollbar-width: thin;
        scrollbar-color: var(--brand-primary-color) transparent;
    }

    .appointment-create.booking-container #daySelector.day-selector-strip .day-btn {
        flex: 0 0 4.5rem;
        min-width: 4.5rem;
        min-height: 64px;
        scroll-snap-align: start;
    }
}

    .appointment-create .day-selector-strip .day-btn {
        min-width: 72px;
        padding: 0.42rem 0.5rem;
    }



    .appointment-create .times-container-compact .time-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.75rem;
    }

    .appointment-create .times-container-compact .time-slot {
        min-height: auto;
        padding: 0.75rem 0.9rem;
        font-size: 0.9rem;
        box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
    }

@media (hover: hover) and (pointer: fine) {
        .appointment-create .times-container-compact .time-slot:hover:not(.disabled) {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(var(--brand-primary-color-rgb), 0.18);
        }
}

        .appointment-create .times-container-compact .time-slot.selected {
            transform: scale(1.02);
            box-shadow: 0 12px 24px rgba(var(--brand-primary-color-rgb), 0.22);
        }

.appointment-create .service-selection-summary {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(var(--brand-primary-color-rgb), 0.12) !important;
    background: var(--brand-card-background-color);
    box-shadow: none;
    overflow: visible;
}

.appointment-create .service-selection-summary-head {
    display: grid;
    gap: 0.15rem;
    padding-bottom: 0.35rem;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(var(--brand-primary-color-rgb), 0.12);
}

.appointment-create .service-selection-summary-head > .service-selection-summary-title-row::before {
    content: none;
}

.appointment-create .service-selection-summary-title-row {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.appointment-create .service-selection-summary #selectedServicesTotals {
    white-space: nowrap;
    color: var(--text-secondary) !important;
}

.appointment-create .service-selection-list {
    display: block;
}

.appointment-create .service-selection-title {
    margin-bottom: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
}

    .appointment-create #selectedServicesSummary .service-selection-list li {
        list-style: none;
        padding: 0.65rem 0;
        border: 0;
        border-bottom: 1px solid rgba(var(--brand-primary-color-rgb), 0.12);
        background: transparent;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        box-shadow: none;
    }

        .appointment-create #selectedServicesSummary .service-selection-list li:last-child {
            border-bottom: 0;
        }

.appointment-create .service-selection-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: 0;
    flex-shrink: 0;
}

.appointment-create .service-selection-dots {
    flex: 1 1 1.5rem;
    min-width: 1rem;
    margin: 0.2rem 0.5rem 0;
    border-bottom: 1px dotted rgba(var(--brand-primary-color-rgb), 0.45);
}

.appointment-create .service-selection-actions {
    margin-top: 0;
    display: flex;
    justify-content: flex-start;
}

.appointment-create .service-selection-total {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.7rem 0 0.1rem;
    border-top: 1px solid rgba(var(--brand-primary-color-rgb), 0.2);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 700;
}

    .appointment-create .service-selection-total .service-selection-dots {
        margin-inline: 0.35rem;
    }

    .appointment-create .service-selection-total #modalPrice {
        color: var(--brand-card-price-text-color);
        white-space: nowrap;
    }

    .appointment-create .service-selection-actions .add-service-trigger {
        width: 100%;
        min-height: auto;
        padding: 0.65rem 0;
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        color: var(--primary);
        text-decoration: none;
    }

        .appointment-create .service-selection-actions .add-service-trigger:hover:not(:disabled) {
            color: var(--primary);
            background: transparent;
            transform: none;
            box-shadow: none;
        }

        .appointment-create .service-selection-actions .add-service-trigger:focus-visible {
            outline: 2px solid rgba(var(--brand-primary-color-rgb), 0.45);
            outline-offset: 2px;
        }

.appointment-create .service-summary-meta {
    color: var(--text-secondary) !important;
}

.appointment-create .service-summary-name {
    color: var(--text-primary);
    min-width: 0;
    overflow-wrap: anywhere;
}

.appointment-create .service-remove-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-secondary);
}

    .appointment-create .service-remove-trigger:hover {
        background: rgba(var(--brand-primary-color-rgb), 0.1);
        color: var(--brand-primary-dark);
    }

    .appointment-create .service-remove-trigger:focus-visible {
        outline: 2px solid rgba(var(--brand-primary-color-rgb), 0.45);
        outline-offset: 2px;
    }

.confirmation-item--services {
    align-items: flex-start;
}

.confirmation-services-list {
    display: grid;
    gap: 0.2rem;
    list-style: none;
}

.confirmation-item--total {
    margin-top: 0.35rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(var(--brand-primary-color-rgb), 0.26);
    border-radius: 10px;
    background: rgba(var(--brand-primary-color-rgb), 0.1);
}

    .confirmation-item--total .confirmation-label,
    .confirmation-item--total .confirmation-value {
        color: var(--brand-primary-dark);
        font-weight: 700;
    }

@media (max-width: 991.98px) {
    .appointment-create .service-selection-summary {
        padding: 0.85rem 0.9rem;
    }

    .appointment-create .service-selection-summary-title-row {
        align-items: flex-start;
    }

    .appointment-create #selectedServicesSummary li {
        padding: 0.55rem 0;
        flex-direction: row;
        align-items: center;
    }

        .appointment-create #selectedServicesSummary li .text-muted {
            white-space: nowrap;
            font-size: 0.82rem;
        }
}

.appointment-wizard-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 0.9rem;
    margin: 0 0 1.5rem;
    padding: 0.25rem 0.35rem 0.85rem;
    border-bottom: 1px solid rgba(var(--brand-primary-color-rgb), 0.16);
}

body:not(.has-sidebar) .appointment-create-page-shell .guest-back-navigation {
    display: none;
}

.appointment-wizard-back {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.4rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--brand-card-text-color);
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.appointment-wizard-back:hover {
    border-color: rgba(var(--brand-primary-color-rgb), 0.2);
    background: rgba(var(--brand-primary-color-rgb), 0.08);
    color: var(--brand-primary-color);
}

.appointment-wizard-back:active {
    background: rgba(var(--brand-primary-color-rgb), 0.14);
    transform: translateY(1px);
}

.appointment-wizard-back:disabled {
    color: var(--brand-card-meta-text-color);
    cursor: not-allowed;
    opacity: 0.65;
}

.appointment-wizard-back:focus-visible {
    outline: 2px solid var(--brand-primary-color);
    outline-offset: 2px;
}

.page-sticky-actions .appointment-wizard-back {
    min-height: 48px;
}

.appointment-wizard-back[hidden],
.page-sticky-actions__primary[hidden] {
    display: none !important;
}

.appointment-wizard-progress-copy {
    grid-column: 1;
    min-width: 0;
    width: 100%;
    text-align: left;
}

.appointment-wizard-step-label {
    margin: 0 0 0.4rem;
    color: var(--brand-card-text-color);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.4;
}

.appointment-wizard-progress {
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(var(--brand-primary-color-rgb), 0.14);
}

.appointment-wizard-progress > span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--primary-gradient);
    transition: width 200ms ease;
}

.appointment-wizard-panel[hidden] {
    display: none !important;
}

.appointment-create .time-day-empty-state.availability-empty {
    max-width: 42rem;
    margin: 0 auto;
    padding: 1.25rem;
    border-style: solid;
    color: var(--brand-card-text-color);
    background: var(--brand-card-background-color);
    font-weight: 400;
}

.appointment-create .availability-empty .availability-empty__title {
    margin: 0 0 .5rem;
    color: var(--brand-card-text-color);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.appointment-create .availability-empty p {
    margin: 0;
    color: var(--brand-card-meta-text-color);
    font-size: .9375rem;
    line-height: 1.5;
}

.appointment-create .availability-empty strong {
    color: var(--brand-card-text-color);
    font-weight: 600;
}

.appointment-create .availability-empty .availability-empty__guidance {
    margin-top: .5rem;
    font-size: .875rem;
}

.appointment-create .availability-empty .availability-empty__note {
    font-size: .8125rem;
}

.appointment-create .availability-empty__back {
    display: flex;
    width: fit-content;
    margin: .75rem auto 0;
    font-size: .875rem;
}

.appointment-create .waitlist-open-trigger .bi {
    flex-shrink: 0;
    font-size: 1.125rem;
}

body:has(.appointment-wizard-panel[data-wizard-panel="schedule"]:not([hidden]) #available-times[data-availability="empty"]) .appointment-booking-cta {
    display: none;
}

@media (max-width: 575.98px) {
    .appointment-create [data-wizard-panel="schedule"] .appointment-wizard-panel-heading {
        margin-bottom: .25rem;
    }

    body .appointment-create.booking-container #available-times .day-block,
    body .appointment-create.booking-container #available-times .time-shift-card {
        padding: .5rem 0;
    }

    .appointment-create .time-day-empty-state.availability-empty {
        padding: 1rem;
        text-align: center;
    }

    .appointment-create .availability-empty .waitlist-empty-action {
        max-width: none;
        text-align: left;
    }

    .appointment-create .availability-empty .waitlist-open-trigger {
        width: 100%;
    }
}

.appointment-wizard-panel-heading {
    margin-bottom: 1.25rem;
}

.appointment-create .booking-card .appointment-wizard-body {
    padding: clamp(1rem, 3vw, 2rem);
}

.appointment-create .service-selection-actions .add-service-trigger {
    width: auto;
    min-height: 44px;
    margin-top: 1rem;
    padding: 0.55rem 0.9rem !important;
    border: 1px solid currentColor;
    border-radius: 10px;
    color: var(--brand-card-text-color);
}

.appointment-create .service-selection-actions .add-service-trigger[hidden] {
    display: none;
}

.appointment-create .service-selection-actions .add-service-trigger:hover:not(:disabled),
.appointment-create .service-selection-actions .add-service-trigger:active:not(:disabled) {
    background: rgba(var(--brand-primary-color-rgb), 0.12);
    color: var(--brand-card-text-color);
}

.appointment-create .service-remove-trigger {
    min-width: 44px;
    min-height: 44px;
}

.appointment-create .service-remove-trigger:hover {
    color: var(--brand-card-text-color);
}

.appointment-create .service-selection-row-actions {
    flex-shrink: 0;
}

@media (max-width: 575.98px) {
    .appointment-create #selectedServicesSummary li {
        flex-wrap: wrap;
        gap: 0.35rem;
        padding-block: 0.9rem;
    }

    .appointment-create #selectedServicesSummary li .service-summary-name {
        flex-basis: 100%;
    }

    .appointment-create #selectedServicesSummary li .service-selection-dots {
        display: none;
    }

    .appointment-create .service-selection-row-actions {
        width: 100%;
        justify-content: space-between;
    }
}

.appointment-wizard-panel-heading h2 {
    margin: 0 0 0.35rem;
    color: var(--brand-card-text-color);
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 700;
    line-height: 1.3;
}

.appointment-create .appointment-wizard-panel {
    scroll-margin-top: 5rem;
}

.appointment-create :is(button, a, input, summary):focus-visible {
    outline: 3px solid var(--brand-primary-color);
    outline-offset: 3px;
}

.appointment-create .day-selector > button {
    min-width: 44px;
    min-height: 44px;
}

.appointment-create .day-selector > button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.appointment-create .time-slot.selected::before {
    content: '\2713';
    margin-inline-end: 0.35em;
}

.appointment-create.booking-container .time-slot.selected {
    color: var(--brand-card-text-color) !important;
    border: 2px solid var(--brand-primary-color);
}

.appointment-create .service-summary-name {
    overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: no-preference) {
    .appointment-wizard-panel:not([hidden]):not(.d-none) {
        animation: appointment-step-enter 180ms ease-out;
    }
}

@keyframes appointment-step-enter {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .appointment-create .time-slot {
        transition: none !important;
        transform: none !important;
    }
}

.appointment-wizard-panel-heading p {
    max-width: 52rem;
    margin: 0;
    color: var(--brand-card-meta-text-color);
    line-height: 1.55;
}

.booking-review__layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 1rem;
    color: var(--brand-card-text-color);
}

.booking-review__payment,
.booking-review__appointment,
.booking-review__client {
    min-width: 0;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(var(--brand-primary-color-rgb), 0.2);
    border-radius: 12px;
    background: var(--brand-card-background-color);
}

.booking-review__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    flex-wrap: wrap;
}

.booking-review__section-head h3 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-card-meta-text-color);
}

.booking-review__edit {
    padding: 0.5rem 0;
    min-height: 44px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--brand-card-text-color);
    text-decoration: underline;
    text-underline-offset: 0.25em;
    font: inherit;
    font-size: 0.875rem;
    cursor: pointer;
}

.booking-review__edit:hover {
    color: var(--brand-primary-color);
    text-decoration-thickness: 2px;
}

.booking-review__edit:active {
    opacity: 0.75;
}

.booking-review__edit:disabled {
    color: var(--brand-card-meta-text-color);
    text-decoration: none;
    cursor: not-allowed;
}

.booking-review__schedule {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    margin: 0.25rem 0 0.25rem;
}

.booking-review__schedule > div {
    min-width: 0;
}

.booking-review__date,
.booking-review__professional {
    grid-column: 1 / -1;
}

.booking-review__schedule dt {
    margin: 0 0 0.125rem;
    line-height: 1.4;
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--brand-card-meta-text-color);
}

.booking-review__schedule dd {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.booking-review__date dd,
.booking-review__schedule #modalStartTime {
    font-size: 1.125rem;
}

.booking-review__client {
    grid-column: 1 / -1;
}

.booking-review__client p {
    margin: 0.2rem 0;
    overflow-wrap: anywhere;
}

.booking-review__muted {
    font-size: 0.9rem;
    color: var(--brand-card-meta-text-color);
}

.booking-review__payment {
    margin-top: 0.75rem;
}

.booking-review__payment-note,
.booking-review__policy,
.booking-review__reward p {
    font-size: 0.875rem;
    color: var(--brand-card-meta-text-color);
    line-height: 1.6;
    margin: 0.75rem 0 0;
}

.booking-review__policy {
    grid-column: 1 / -1;
    margin: 0;
}

.booking-review__policy a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.booking-review__reward {
    border-top: 1px solid rgba(var(--brand-primary-color-rgb), 0.2);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.booking-review__reward strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.booking-review__reward .form-check {
    min-height: 44px;
}

@media (max-width: 767.98px) {
    .booking-review__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.75rem;
    }

}

.appointment-create .appointment-wizard-subheading {
    margin: 1rem 0 0.65rem;
    color: var(--brand-card-text-color);
    font-size: 0.98rem;
    font-weight: 650;
    line-height: 1.35;
}

.appointment-create .form-text {
    color: var(--brand-card-meta-text-color);
}

.appointment-create .form-text[hidden] {
    display: none !important;
}

.appointment-create :is(#inputNameFeedback, #inputPhoneFeedback, #inputBirthdayFeedback) {
    color: var(--danger-text);
}

.appointment-create :is(#inputNameFeedback, #inputPhoneFeedback, #inputBirthdayFeedback):not(.d-block) {
    display: none;
}

.appointment-create .employee-option-card:focus-visible,
.appointment-create .day-btn:focus-visible,
.appointment-create .time-slot:focus-visible {
    outline: 2px solid var(--brand-primary-color);
    outline-offset: 3px;
}

.appointment-wizard-step-error:not([hidden]) {
    margin-top: 1rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--danger-text);
    border-radius: 10px;
    color: var(--danger-text);
    font-size: 0.9rem;
}

.appointment-wizard-review-header {
    align-items: flex-start;
    gap: 0.5rem;
}

.appointment-wizard-review-heading {
    flex: 1;
    min-width: 0;
}

.appointment-wizard-review-header .appointment-wizard-step-label {
    margin-bottom: 0.35rem;
}

@media (max-width: 575.98px) {
    .appointment-wizard-header {
        gap: 0.35rem;
        margin-bottom: 0.85rem;
        padding: 0 0 0.8rem;
    }

    .appointment-wizard-progress-copy {
        justify-self: stretch;
        text-align: left;
    }

    .appointment-wizard-step-label {
        font-size: 0.8rem;
    }

    .appointment-wizard-review-header {
        flex-wrap: wrap;
    }

    .appointment-wizard-review-heading {
        flex-basis: calc(100% - 2.5rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .appointment-wizard-back,
    .appointment-wizard-progress > span {
        transition: none;
    }
}
