/* ==================== WIZARD REZERVĂRI - CSS ==================== */
/* Stil modern pentru wizard în 6 pași */

/* Progress Bar */
.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: var(--surface);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.wizard-step {
    display: flex;
    align-items: center;
    flex: 1;
}

.wizard-step:last-child {
    flex: 0;
}

.wizard-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--neutral-100);
    border: 2px solid var(--neutral-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--neutral-500);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.wizard-step.active .wizard-step-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
}

.wizard-step.completed .wizard-step-circle {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.wizard-step.completed .wizard-step-circle::after {
    content: '✓';
    font-size: 1.1rem;
}

.wizard-step.completed .wizard-step-circle span {
    display: none;
}

.wizard-step-label {
    display: none;
    margin-left: 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--neutral-500);
}

@media (min-width: 768px) {
    .wizard-step-label {
        display: block;
    }
}

.wizard-step.active .wizard-step-label {
    color: var(--primary);
    font-weight: 600;
}

.wizard-step.completed .wizard-step-label {
    color: var(--success);
}

.wizard-step-connector {
    flex: 1;
    height: 2px;
    background: var(--neutral-200);
    margin: 0 1rem;
    transition: background 0.3s ease;
}

.wizard-step.completed + .wizard-step-connector,
.wizard-step.completed .wizard-step-connector {
    background: var(--success);
}

/* Wizard Content Area */
.wizard-content {
    background: var(--surface);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    min-height: 400px;
}

.wizard-step-content {
    display: none;
    animation: fadeIn 0.3s ease;
    position: relative;
}

.wizard-step-content.active {
    display: block;
}

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

.wizard-step-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.wizard-step-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Form Groups */
.wizard-form-group {
    margin-bottom: 1.5rem;
}

.wizard-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.wizard-form-row.three-cols {
    grid-template-columns: repeat(3, 1fr);
}

.wizard-form-row.four-cols {
    grid-template-columns: repeat(4, 1fr);
}

/* Grid 4 coloane - model reservation-form.js */
.wizard-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    align-items: end;
}

.wizard-field {
    display: flex;
    flex-direction: column;
}

.wizard-field .wizard-label {
    margin-bottom: 0.35rem;
}

.wizard-field .wizard-input,
.wizard-field .wizard-select {
    width: 100%;
}

@media (max-width: 992px) {
    .wizard-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .wizard-form-row.three-cols,
    .wizard-form-row.four-cols {
        grid-template-columns: 1fr;
    }
    .wizard-grid-4 {
        grid-template-columns: 1fr;
    }
    .wizard-field[style*="grid-column: span"] {
        grid-column: span 1 !important;
    }
}

.wizard-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.wizard-label.required::after {
    content: '*';
    color: var(--danger);
    margin-left: 0.25rem;
}

.wizard-input,
.wizard-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
    font-size: 0.95rem;
    background: var(--surface);
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wizard-input:focus,
.wizard-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.wizard-input.error,
.wizard-select.error {
    border-color: var(--danger);
}

/* ==================== Select cu buton + pentru valori custom ==================== */
.wizard-select-with-add {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wizard-select-with-add .wizard-select {
    flex: 1;
}

.wizard-select-add-btn {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    background: none !important;
    background-image: none !important;
    color: var(--neutral-400, #9ca3af) !important;
    border: none !important;
    font-size: 18px !important;
    line-height: 1 !important;
    cursor: pointer;
    padding: 0 !important;
    flex-shrink: 0;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.wizard-select-add-btn:hover {
    color: var(--primary) !important;
    background: none !important;
}

/* Room Cards */
.wizard-room-card {
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

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

.wizard-room-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.wizard-room-badge {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
}

.wizard-room-config {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .wizard-room-config {
        grid-template-columns: 1fr;
    }
}

/* Tourist Cards */
.wizard-tourist-list {
    margin-top: 1rem;
}

.wizard-tourist-card {
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: start;
}

.wizard-tourist-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.wizard-tourist-actions {
    display: flex;
    gap: 0.5rem;
}

.wizard-tourist-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.wizard-tourist-badge.adult {
    background: var(--info-bg);
    color: var(--info);
}

.wizard-tourist-badge.copil {
    background: var(--warning-bg);
    color: var(--warning);
}

.wizard-tourist-badge.infant {
    background: var(--neutral-100);
    color: var(--neutral-600);
}

/* Service Cards */
.wizard-service-card {
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: center;
}

.wizard-service-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    font-weight: 500;
}

.wizard-service-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.wizard-service-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

/* Titular Card */
.wizard-titular-card {
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    border: 1px solid var(--primary-200);
    border-radius: 12px;
    padding: 1.5rem;
}

.wizard-titular-type-toggle {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.wizard-titular-type-btn {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--neutral-200);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.wizard-titular-type-btn:hover {
    border-color: var(--primary-300);
}

.wizard-titular-type-btn.active {
    border-color: var(--primary);
    background: var(--primary-50);
}

.wizard-titular-type-btn h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
}

.wizard-titular-type-btn p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Summary Section */
.wizard-summary {
    background: var(--neutral-50);
    border-radius: 12px;
    padding: 1.5rem;
}

.wizard-summary-section {
    margin-bottom: 1.5rem;
}

.wizard-summary-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--neutral-200);
}

.wizard-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.wizard-summary-row.total {
    font-size: 1.25rem;
    font-weight: 600;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid var(--neutral-300);
}

.wizard-summary-label {
    color: var(--text-secondary);
}

.wizard-summary-value {
    font-weight: 500;
    color: var(--text-primary);
}

.wizard-summary-value.highlight {
    color: var(--primary);
    font-weight: 600;
}

/* Navigation Buttons */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--neutral-200);
}

.wizard-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.wizard-btn-secondary {
    background: var(--neutral-100);
    border: 1px solid var(--neutral-300);
    color: var(--text-primary);
}

.wizard-btn-secondary:hover {
    background: var(--neutral-200);
}

.wizard-btn-primary {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: white;
}

.wizard-btn-primary:hover {
    background: var(--primary-600);
}

.wizard-btn-success {
    background: var(--success);
    border: 1px solid var(--success);
    color: white;
}

.wizard-btn-success:hover {
    background: var(--success-600);
}

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

/* Warnings & Errors */
.wizard-alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.wizard-alert-warning {
    background: var(--warning-bg);
    border: 1px solid var(--warning-200);
    color: var(--warning-700);
}

.wizard-alert-error {
    background: var(--danger-bg);
    border: 1px solid var(--danger-200);
    color: var(--danger-700);
}

.wizard-alert-success {
    background: var(--success-bg);
    border: 1px solid var(--success-200);
    color: var(--success-700);
}

.wizard-alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.wizard-alert-content {
    flex: 1;
}

.wizard-alert-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.wizard-alert-list {
    margin: 0.5rem 0 0 0;
    padding-left: 1.25rem;
}

.wizard-alert-list li {
    margin-bottom: 0.25rem;
}

/* Add Button */
.wizard-add-btn {
    width: 100%;
    padding: 1rem;
    border: 2px dashed var(--neutral-300);
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.wizard-add-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-50);
}

/* Remove Button */
.wizard-remove-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--danger-200);
    background: var(--danger-50);
    color: var(--danger);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.wizard-remove-btn:hover {
    background: var(--danger);
    color: white;
}

/* Checkbox styled */
.wizard-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wizard-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Loading State */
.wizard-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

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

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

/* Success State */
.wizard-success {
    text-align: center;
    padding: 3rem;
}

.wizard-success-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
}

.wizard-success h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.wizard-success p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.wizard-success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ==================== AUTOCOMPLETE COMPONENT ==================== */
.autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.autocomplete-input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 2.5rem;
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
    font-size: 0.95rem;
    background: var(--surface);
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.autocomplete-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.autocomplete-wrapper.loading .autocomplete-input {
    padding-right: 3rem;
}

.autocomplete-loading {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

.autocomplete-wrapper.loading .autocomplete-loading {
    display: block;
}

.autocomplete-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--neutral-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--surface);
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.autocomplete-dropdown.open {
    display: block;
}

.autocomplete-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid var(--neutral-100);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.highlighted {
    background: var(--primary-50);
}

.autocomplete-item.highlighted {
    background: var(--primary-100);
}

.autocomplete-item-main {
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.autocomplete-item-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.autocomplete-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
}

.autocomplete-badge.copil {
    background: var(--warning-bg);
    color: var(--warning);
}

.autocomplete-badge.infant {
    background: var(--neutral-100);
    color: var(--neutral-600);
}

.autocomplete-empty {
    padding: 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==================== SERVICE TYPE SELECTOR ==================== */
.wizard-service-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.wizard-service-type-card {
    padding: 1rem;
    border: 2px solid var(--neutral-200);
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    background: var(--surface);
}

.wizard-service-type-card:hover {
    border-color: var(--primary-300);
    transform: translateY(-2px);
}

.wizard-service-type-card.selected {
    border-color: var(--primary);
    background: var(--primary-50);
}

.wizard-service-type-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.wizard-service-type-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.wizard-service-type-sublabel {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* ==================== SERVICES LIST ==================== */
.wizard-services-list {
    margin-top: 1.5rem;
}

.wizard-service-item {
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wizard-service-item-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.wizard-service-item-info {
    flex: 1;
}

.wizard-service-item-title {
    font-weight: 600;
    color: var(--text-primary);
}

.wizard-service-item-details {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.wizard-service-item-price {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
}

.wizard-service-item-actions {
    display: flex;
    gap: 0.5rem;
}

.wizard-service-item-actions button {
    padding: 0.5rem;
    border: 1px solid var(--neutral-200);
    border-radius: 6px;
    background: var(--surface);
    cursor: pointer;
    transition: all 0.2s ease;
}

.wizard-service-item-actions button:hover {
    background: var(--neutral-100);
}

.wizard-service-item-actions button.delete:hover {
    background: var(--danger-50);
    border-color: var(--danger-200);
    color: var(--danger);
}

/* ==================== BILLING GROUPS ==================== */
.wizard-billing-groups {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wizard-billing-group-card {
    background: var(--surface);
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
}

.wizard-billing-group-card.highlighted {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.wizard-billing-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--neutral-200);
}

.wizard-billing-group-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.wizard-billing-group-tourists {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.wizard-billing-group-tourist-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background: var(--primary-50);
    border: 1px solid var(--primary-200);
    border-radius: 9999px;
    font-size: 0.85rem;
}

.wizard-billing-group-tourist-chip .remove {
    cursor: pointer;
    margin-left: 0.25rem;
    opacity: 0.6;
}

.wizard-billing-group-tourist-chip .remove:hover {
    opacity: 1;
}

.wizard-billing-group-amount {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--neutral-50);
    border-radius: 8px;
}

.wizard-billing-group-amount-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.wizard-billing-group-amount-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.wizard-billing-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* ==================== TOURIST SEARCH MODAL ==================== */
.wizard-tourist-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.wizard-tourist-search-modal.open {
    opacity: 1;
    visibility: visible;
}

.wizard-tourist-search-content {
    background: var(--surface);
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    min-height: 400px;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

/* When showing OCR result, expand modal */
.wizard-tourist-search-content:has(#ocr-result[style*="block"]) {
    min-height: 500px;
}

.wizard-tourist-search-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--neutral-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wizard-tourist-search-header h4 {
    margin: 0;
    font-size: 1.1rem;
}

.wizard-tourist-search-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.wizard-tourist-search-body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
    min-height: 200px;
}

.wizard-tourist-search-input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.wizard-tourist-search-input-group input {
    flex: 1;
}

.wizard-tourist-search-results {
    max-height: 300px;
    overflow-y: auto;
}

.wizard-tourist-search-result-item {
    padding: 1rem;
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wizard-tourist-search-result-item:hover {
    border-color: var(--primary);
    background: var(--primary-50);
}

/* ==================== OCR UPLOAD ==================== */
.wizard-ocr-upload {
    border: 2px dashed var(--neutral-300);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.wizard-ocr-upload:hover,
.wizard-ocr-upload.dragover {
    border-color: var(--primary);
    background: var(--primary-50);
}

.wizard-ocr-upload-icon {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.wizard-ocr-upload-text {
    color: var(--text-secondary);
}

.wizard-ocr-upload-text strong {
    color: var(--primary);
}

.wizard-ocr-processing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
}

.wizard-ocr-processing-text {
    font-weight: 500;
    color: var(--text-primary);
}

/* OCR Result Container */
#ocr-result {
    width: 100%;
    min-height: 100px;
    background: #fff;
    max-height: 70vh;
    overflow-y: auto;
    padding: 0.5rem;
}

/* OCR Preview */
.wizard-ocr-preview {
    padding: 1rem;
    width: 100%;
    background: #fff;
    border-radius: 8px;
}

.wizard-ocr-preview .wizard-field {
    margin-bottom: 0.5rem;
}

.wizard-ocr-preview .wizard-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    display: block;
    color: #555;
}

.wizard-ocr-preview .wizard-input {
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
}

.wizard-ocr-preview .wizard-input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.wizard-ocr-preview textarea.wizard-input {
    min-height: 60px;
}

/* CNP field highlight */
.wizard-ocr-preview #ocr-cnp {
    background: #fffde7;
    border-color: #ffc107;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* ==================== MODERN TOURIST ACTIONS PANEL ==================== */
.wizard-tourist-actions-panel {
    margin-top: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
    overflow: hidden;
}

.wizard-tourist-actions-header {
    padding: 0.5rem 1rem;
    background: var(--neutral-100);
    border-bottom: 1px solid var(--neutral-200);
}

.wizard-tourist-actions-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.wizard-tourist-actions-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--neutral-200);
}

.wizard-tourist-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wizard-tourist-action-btn:hover {
    background: var(--primary-50);
}

.wizard-tourist-action-btn.manual:hover {
    background: #f0fdf4;
}

.wizard-tourist-action-btn.search:hover {
    background: #eff6ff;
}

.wizard-tourist-action-btn.scan:hover {
    background: #fef3c7;
}

.wizard-tourist-action-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.wizard-tourist-action-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
}

@media (max-width: 480px) {
    .wizard-tourist-actions-buttons {
        grid-template-columns: 1fr;
    }
}

/* ==================== MODERN MODAL STYLES ==================== */
.wizard-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 1rem;
}

.wizard-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.wizard-modal-container {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.25s ease;
}

.wizard-modal-overlay.open .wizard-modal-container {
    transform: translateY(0) scale(1);
}

.wizard-modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--neutral-100);
    background: linear-gradient(to bottom, #fafafa, white);
}

.wizard-modal-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wizard-modal-header-icon.search {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.wizard-modal-header-icon.scan {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.wizard-modal-header-text {
    flex: 1;
}

.wizard-modal-header-text h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.wizard-modal-header-text p {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.wizard-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: var(--neutral-100);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.wizard-modal-close:hover {
    background: var(--neutral-200);
    color: var(--text-primary);
}

.wizard-modal-body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

/* ==================== SEARCH BOX STYLES ==================== */
.wizard-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--neutral-50);
    border: 2px solid var(--neutral-200);
    border-radius: 12px;
    padding: 0 1rem;
    transition: all 0.2s ease;
}

.wizard-search-box:focus-within {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.wizard-search-icon {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.wizard-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.875rem 0.75rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
}

.wizard-search-input::placeholder {
    color: var(--neutral-400);
}

.wizard-search-shortcut {
    flex-shrink: 0;
}

.wizard-search-shortcut kbd {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-family: inherit;
    background: var(--neutral-200);
    border-radius: 4px;
    color: var(--text-secondary);
}

/* ==================== SEARCH RESULTS STYLES ==================== */
.wizard-search-results-container {
    margin-top: 1rem;
    min-height: 200px;
}

.wizard-search-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
}

.wizard-search-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.wizard-search-empty-state p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.wizard-search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
}

.wizard-search-loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--neutral-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.wizard-search-loading span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.wizard-search-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    text-align: center;
}

.wizard-search-no-results-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.wizard-search-no-results p {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.wizard-search-no-results span {
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.wizard-search-results-header {
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--neutral-100);
}

.wizard-search-results-header span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.wizard-search-results-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 320px;
    overflow-y: auto;
}

.wizard-search-result-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wizard-search-result-card:hover {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
    transform: translateY(-1px);
}

.wizard-search-result-avatar {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-600));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.wizard-search-result-info {
    flex: 1;
    min-width: 0;
}

.wizard-search-result-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wizard-search-result-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.wizard-search-result-tag {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    font-size: 0.7rem;
    border-radius: 4px;
    font-weight: 500;
}

.wizard-search-result-tag.cnp {
    background: var(--primary-100);
    color: var(--primary-700);
}

.wizard-search-result-tag.phone {
    background: var(--success-100);
    color: var(--success-700);
}

.wizard-search-result-tag.city {
    background: var(--neutral-200);
    color: var(--neutral-600);
}

.wizard-search-result-tag.ci {
    background: #FEF3C7;
    color: #92400E;
}

.wizard-search-result-tag.email {
    background: #DBEAFE;
    color: #1E40AF;
}

.wizard-search-result-tag.missing {
    background: #FEE2E2;
    color: #DC2626;
    font-style: italic;
}

.wizard-search-result-action {
    flex-shrink: 0;
    color: var(--neutral-400);
    transition: all 0.2s ease;
}

.wizard-search-result-card:hover .wizard-search-result-action {
    color: var(--primary);
    transform: translateX(4px);
}

/* ==================== OCR DROPZONE STYLES ==================== */
.wizard-ocr-dropzone {
    border: 2px dashed var(--neutral-300);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

.wizard-ocr-dropzone:hover {
    border-color: var(--primary-300);
    background: linear-gradient(135deg, var(--primary-50) 0%, white 100%);
}

.wizard-ocr-dropzone.active {
    border-color: var(--primary);
    background: var(--primary-50);
    border-style: solid;
}

.wizard-ocr-dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.wizard-ocr-dropzone-icon {
    color: var(--neutral-400);
    transition: all 0.25s ease;
}

.wizard-ocr-dropzone:hover .wizard-ocr-dropzone-icon {
    color: var(--primary);
    transform: translateY(-4px);
}

.wizard-ocr-dropzone-text {
    text-align: center;
}

.wizard-ocr-dropzone-title {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.wizard-ocr-dropzone-subtitle {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.wizard-ocr-dropzone-formats {
    display: flex;
    gap: 0.5rem;
}

.wizard-ocr-format-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--neutral-200);
    color: var(--neutral-600);
    border-radius: 6px;
}

/* ==================== OCR PROCESSING STATE ==================== */
.wizard-ocr-processing-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 3rem 1.5rem;
}

.wizard-ocr-processing-animation {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wizard-ocr-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--primary-600), transparent);
    animation: scanLine 1.5s ease-in-out infinite;
}

@keyframes scanLine {
    0% {
        top: 0;
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        top: calc(100% - 3px);
        opacity: 1;
    }
}

.wizard-ocr-processing-info {
    text-align: center;
}

.wizard-ocr-processing-title {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.wizard-ocr-processing-subtitle {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ==================== INCOMPLETE DATA MODAL ==================== */
.wizard-incomplete-warning {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.wizard-incomplete-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.wizard-incomplete-warning p {
    margin: 0;
    font-size: 0.95rem;
    color: #92400e;
}

.wizard-incomplete-fields {
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.wizard-incomplete-fields h4 {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wizard-incomplete-fields ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wizard-incomplete-fields li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--neutral-100);
}

.wizard-incomplete-fields li:last-child {
    border-bottom: none;
}

.wizard-missing-field-icon {
    font-size: 0.9rem;
}

.wizard-incomplete-actions {
    text-align: center;
}

/* ==================== TITULAR SOURCE TOGGLE ==================== */
.wizard-titular-source-toggle {
    margin-bottom: 1.5rem;
}

.wizard-titular-source-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.wizard-titular-source-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border: 2px solid var(--neutral-200);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wizard-titular-source-btn:hover {
    border-color: var(--primary-300);
    background: var(--primary-50);
}

.wizard-titular-source-btn.active {
    border-color: var(--primary);
    background: var(--primary-50);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.wizard-titular-source-icon {
    font-size: 1.5rem;
}

.wizard-titular-source-btn span:last-child {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

@media (max-width: 640px) {
    .wizard-titular-source-buttons {
        grid-template-columns: 1fr;
    }
}

/* ==================== TITULAR TOURIST SELECTION GRID ==================== */
.wizard-titular-tourist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.wizard-titular-tourist-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: white;
    border: 2px solid var(--neutral-200);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.wizard-titular-tourist-card:hover {
    border-color: var(--primary-300);
    background: var(--primary-50);
}

.wizard-titular-tourist-card.selected {
    border-color: var(--primary);
    background: var(--primary-50);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.wizard-titular-tourist-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-600));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.wizard-titular-tourist-info {
    flex: 1;
    min-width: 0;
}

.wizard-titular-tourist-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wizard-titular-tourist-room {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.125rem;
}

.wizard-titular-tourist-check {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 20px;
    height: 20px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

/* ==================== SECTION TITLE ==================== */
.wizard-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--neutral-200);
}

/* ==================== ADDITIONAL SERVICE FORM ==================== */
.wizard-inherited-data-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
}

.wizard-inherited-data-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #166534;
    margin-bottom: 0.75rem;
}

.wizard-inherited-data-icon {
    font-size: 1.1rem;
}

.wizard-inherited-data-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wizard-inherited-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background: white;
    border: 1px solid #86efac;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #166534;
}

.wizard-additional-services-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.wizard-example-chip {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: var(--neutral-100);
    border: 1px solid var(--neutral-200);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.wizard-example-chip:hover {
    background: var(--primary-50);
    border-color: var(--primary-200);
    color: var(--primary-700);
}

/* ==================== SERVICE BADGES ==================== */
.wizard-service-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.wizard-service-badge.primary {
    background: var(--primary-100);
    color: var(--primary-700);
}

.wizard-service-badge.additional {
    background: #d1fae5;
    color: #065f46;
}

.wizard-service-item.additional {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.wizard-service-item-title {
    display: flex;
    align-items: center;
}

/* ==================== PRICE SUMMARY (Step 1) ==================== */
.wizard-price-summary {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border: 2px solid #fbbf24;
    border-radius: 12px;
}

.wizard-price-summary.hidden {
    display: none;
}

.wizard-price-summary-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #92400e;
    margin-bottom: 0.75rem;
}

.wizard-price-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.wizard-price-box {
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.wizard-price-box.cost {
    border-left: 3px solid #6b7280;
}

.wizard-price-box.sale {
    border-left: 3px solid #059669;
}

.wizard-price-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wizard-price-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
}

.wizard-price-value.green {
    color: #059669;
}

.wizard-price-secondary {
    font-size: 0.85rem;
    color: #9ca3af;
    font-weight: 400;
}

.wizard-price-summary-totals {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 2px dashed #fbbf24;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    text-align: center;
}

.wizard-price-total-item {
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
}

.wizard-price-total-label {
    font-size: 0.65rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.wizard-price-total-value {
    font-size: 0.95rem;
    font-weight: 600;
}

.wizard-price-total-value.blue {
    color: #3b82f6;
}

.wizard-price-total-value.orange {
    color: #f59e0b;
}

.wizard-price-total-value.green {
    color: #059669;
}

.wizard-fiscal-note {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #fefce8;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #92400e;
}

.wizard-fiscal-note.hidden {
    display: none;
}

@media (max-width: 640px) {
    .wizard-price-summary-grid {
        grid-template-columns: 1fr;
    }

    .wizard-price-summary-totals {
        grid-template-columns: 1fr;
    }
}

/* ==================== START FRESH BUTTON ==================== */
.btn-start-fresh {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent !important;
    border: 1px solid var(--neutral-300) !important;
    border-radius: 8px;
    color: var(--text-secondary) !important;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-start-fresh:hover {
    background: var(--neutral-100) !important;
    border-color: var(--neutral-400) !important;
    color: var(--text-primary) !important;
    box-shadow: none !important;
}

/* ==================== INPUT WITH ACTION BUTTON ==================== */
.wizard-input-with-action {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.wizard-input-with-action .wizard-input {
    flex: 1;
}

.wizard-action-btn {
    width: 38px;
    height: 38px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--neutral-100) !important;
    border: 1px solid var(--neutral-300) !important;
    border-radius: 8px;
    color: var(--text-secondary) !important;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.wizard-action-btn:hover {
    background: var(--primary-50) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    box-shadow: none !important;
}

.wizard-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==================== STEP 6 STYLES ==================== */
.wizard-step6-header {
    text-align: center;
    padding: 2rem 1rem;
}

.wizard-step6-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.wizard-step6-header h2 {
    margin: 0 0 0.5rem;
    color: var(--text-primary);
}

.wizard-step6-header p {
    margin: 0;
    color: var(--text-secondary);
}

.wizard-step6-summary {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--neutral-50);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.wizard-step6-stat {
    text-align: center;
}

.wizard-step6-stat .stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.wizard-step6-stat .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wizard-step6-documents {
    background: var(--surface);
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.wizard-step6-documents h3 {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.wizard-doc-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wizard-doc-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.wizard-doc-item.wizard-doc-ready {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.wizard-doc-item.wizard-doc-warning {
    background: #fef3c7;
    border-color: #fde68a;
}

.wizard-doc-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.wizard-doc-info {
    flex: 1;
}

.wizard-doc-info strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.wizard-doc-info small {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.wizard-doc-status {
    font-size: 1.1rem;
    color: #059669;
    font-weight: 600;
}

.wizard-doc-warning .wizard-doc-status {
    color: #d97706;
}

.wizard-doc-actions {
    display: flex;
    gap: 0.5rem;
}

.wizard-doc-btn {
    width: 36px;
    height: 36px;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white !important;
    border: 1px solid var(--neutral-300) !important;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wizard-doc-btn:hover {
    background: var(--neutral-100) !important;
    border-color: var(--neutral-400) !important;
    box-shadow: none !important;
}

.wizard-doc-btn.wizard-doc-btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

.wizard-doc-btn.wizard-doc-btn-primary:hover {
    background: var(--primary-600) !important;
}

.wizard-step6-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
}

.wizard-btn-large {
    padding: 1rem 2rem !important;
    font-size: 1.1rem !important;
}

.wizard-success-header {
    text-align: center;
    padding: 2rem 1rem;
}

.wizard-success-header .wizard-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #059669, #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.wizard-success-header h2 {
    margin: 0 0 0.5rem;
    color: #059669;
}

.wizard-success-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ==================== STEP 6 DOCUMENT VIEWER ==================== */
.wizard-docs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #86efac;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.wizard-docs-success {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wizard-docs-check {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #059669, #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.wizard-docs-success h2 {
    margin: 0;
    color: #166534;
    font-size: 1.25rem;
}

.wizard-docs-success p {
    margin: 0.25rem 0 0;
    color: #15803d;
    font-size: 0.9rem;
}

.wizard-docs-header-actions {
    display: flex;
    gap: 0.75rem;
}

.wizard-docs-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--neutral-100);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.wizard-docs-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent !important;
    border: none !important;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary) !important;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.wizard-docs-tab:hover {
    background: white !important;
    color: var(--text-primary) !important;
    box-shadow: none !important;
}

.wizard-docs-tab.active {
    background: white !important;
    color: var(--primary) !important;
    box-shadow: var(--shadow-sm) !important;
}

.wizard-docs-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.wizard-docs-preview {
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
    min-height: 600px;
    overflow: hidden;
    position: relative;
}

.wizard-docs-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--neutral-50);
    gap: 1rem;
}

.wizard-docs-loading p {
    margin: 0;
    color: var(--text-secondary);
}

.wizard-docs-frame {
    width: 100%;
    height: 600px;
    border: none;
}

.wizard-saving-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 100;
    border-radius: 12px;
}

.wizard-saving-overlay p {
    margin: 0;
    color: var(--text-secondary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .wizard-docs-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .wizard-docs-success {
        flex-direction: column;
    }

    .wizard-docs-tabs {
        flex-wrap: wrap;
    }

    .wizard-docs-tab {
        flex: 1 1 45%;
    }
}

/* ==================== STEP 6 DOCUMENT LIST ==================== */
.wizard-docs-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0;
}

.wizard-docs-section {
    background: var(--surface);
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
    padding: 1.25rem;
}

.wizard-docs-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--neutral-200);
}

.wizard-docs-section-title .icon {
    font-size: 1.1rem;
}

/* Document Cards */
.wizard-doc-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wizard-doc-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.wizard-doc-card:hover {
    background: white;
    border-color: var(--primary-300);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.08);
}

.wizard-doc-card-clickable {
    cursor: pointer;
}

.wizard-doc-card-clickable:hover {
    background: #f0f9ff;
    border-color: var(--primary-400);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.15);
}

.wizard-doc-card-clickable:active {
    transform: scale(0.99);
}

.wizard-doc-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    border-radius: 10px;
    background: white;
    border: 1px solid var(--neutral-200);
}

.wizard-doc-card-icon.invoice {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border-color: #93c5fd;
}

.wizard-doc-card-icon.bon {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #fbbf24;
}

.wizard-doc-card-icon.contract {
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
    border-color: #c084fc;
}

.wizard-doc-card-icon.voucher {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-color: #34d399;
}

.wizard-doc-card-info {
    flex: 1;
    min-width: 0;
}

.wizard-doc-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.wizard-doc-card-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wizard-doc-card-amount {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 0.25rem;
}

.wizard-doc-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Document Preview Modal */
.wizard-doc-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 1.5rem;
}

.wizard-doc-modal.open {
    display: flex;
}

.wizard-doc-modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.25s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.wizard-doc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--neutral-200);
    background: var(--neutral-50);
    border-radius: 16px 16px 0 0;
}

.wizard-doc-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wizard-doc-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: var(--neutral-200);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.wizard-doc-modal-close:hover {
    background: var(--neutral-300);
    color: var(--text-primary);
}

.wizard-doc-modal-body {
    flex: 1;
    overflow: hidden;
    background: var(--neutral-100);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.wizard-doc-modal-frame {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: none;
    background: white;
}

.wizard-doc-modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem;
}

.wizard-doc-modal-loading p {
    margin: 0;
    color: var(--text-secondary);
}

.wizard-doc-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--neutral-200);
    background: var(--neutral-50);
    border-radius: 0 0 16px 16px;
}

.wizard-doc-modal-footer-left {
    display: flex;
    gap: 0.75rem;
}

.wizard-doc-modal-footer-right {
    display: flex;
    gap: 0.75rem;
}

/* Action Button Styles for Modal */
.wizard-doc-modal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.wizard-doc-modal-btn.primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.wizard-doc-modal-btn.primary:hover {
    background: var(--primary-600);
    border-color: var(--primary-600);
}

.wizard-doc-modal-btn.secondary {
    background: white;
    color: var(--text-secondary);
    border-color: var(--neutral-300);
}

.wizard-doc-modal-btn.secondary:hover {
    background: var(--neutral-100);
    color: var(--text-primary);
}

.wizard-doc-modal-btn.success {
    background: #059669;
    color: white;
    border-color: #059669;
}

.wizard-doc-modal-btn.success:hover {
    background: #047857;
    border-color: #047857;
}

/* Section Icons Colors */
.wizard-docs-section.invoices .wizard-docs-section-title {
    color: #2563eb;
}

.wizard-docs-section.other-docs .wizard-docs-section-title {
    color: #7c3aed;
}

/* Responsive */
@media (max-width: 768px) {
    .wizard-doc-card {
        flex-wrap: wrap;
    }

    .wizard-doc-card-info {
        flex: 1 1 calc(100% - 64px);
    }

    .wizard-doc-card-actions {
        flex: 1 1 100%;
        justify-content: flex-end;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--neutral-200);
    }

    .wizard-doc-modal-content {
        max-height: 95vh;
        margin: 0.5rem;
    }

    .wizard-doc-modal-body {
        min-height: 400px;
    }

    .wizard-doc-modal-footer {
        flex-direction: column;
        gap: 0.75rem;
    }

    .wizard-doc-modal-footer-left,
    .wizard-doc-modal-footer-right {
        width: 100%;
        justify-content: center;
    }
}

/* ==================== SELECT WITH ADD BUTTON ==================== */
/* Container pentru select + butonul + */
.wizard-select-with-add {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.wizard-select-with-add .wizard-select {
    flex: 1;
    min-width: 0;
}

/* Butonul + pentru adăugare opțiuni personalizate */
.wizard-add-option-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    border: 2px dashed var(--neutral-300);
    background: var(--neutral-50);
    border-radius: 8px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--neutral-500);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wizard-add-option-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    transform: scale(1.05);
}

.wizard-add-option-btn:active {
    transform: scale(0.95);
}

/* Error shake animation for input */
.wizard-input.error {
    animation: shake 0.3s ease-in-out;
    border-color: var(--error) !important;
}

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

/* Custom option highlight in select */
.wizard-select option[data-custom="true"] {
    background: #fef3c7;
    font-weight: 500;
}
