:root {
    --hub-primary: #6366f1;
    --hub-secondary: #a855f7;
    --hub-accent: #ec4899;
    --hub-bg: #f8fafc;
    --hub-glass: rgba(255, 255, 255, 0.95);
    --hub-glass-hover: rgba(255, 255, 255, 1);
    --hub-border: rgba(226, 232, 240, 0.8);
    --hub-text-main: #1e293b;
    --hub-text-muted: #64748b;
    --hub-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --hub-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body.pagina-programari {
    background-color: #f1f5f9;
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--hub-text-main);
    padding-bottom: 80px;
}

.wizard-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* --- Progress Steps --- */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 40px;
    padding: 0 20px;
}

.wizard-progress-bar {
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 4px;
    background: #e2e8f0;
    z-index: 0;
    border-radius: 4px;
}

.wizard-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress-width, 0%);
    background: linear-gradient(90deg, var(--hub-primary), var(--hub-secondary));
    border-radius: 4px;
    transition: width 0.4s ease;
}

.progress-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 80px;
    color: var(--hub-text-muted);
    transition: all 0.3s ease;
}

.progress-step i {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--hub-text-muted);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.progress-step.activ i {
    border-color: var(--hub-primary);
    color: var(--hub-primary);
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.progress-step.finalizat i {
    background: var(--hub-primary);
    border-color: var(--hub-primary);
    color: #fff;
}

.progress-step-label {
    font-size: 0.85rem;
    font-weight: 600;
}

.progress-step.activ .progress-step-label {
    color: var(--hub-primary);
}

/* --- Form Steps --- */
.wizard-step {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.wizard-step.activ {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

h2 {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--hub-primary), var(--hub-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--hub-text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Service Cards Grid --- */
.service-category-section {
    margin-bottom: 30px;
}

.service-category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--hub-text-muted);
    margin-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--hub-glass);
    border: 1px solid var(--hub-border);
    border-radius: 16px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hub-shadow-hover);
    border-color: rgba(99, 102, 241, 0.3);
}

.service-card.activ {
    background: linear-gradient(145deg, #fff, #f8fafc);
    border-color: var(--hub-primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.service-card i {
    font-size: 2rem;
    color: var(--hub-text-muted);
    transition: color 0.3s ease;
}

.service-card.activ i {
    color: var(--hub-primary);
}

.service-card span {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--hub-text-main);
}

.check-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: var(--hub-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card.activ .check-badge {
    opacity: 1;
    transform: scale(1);
}

/* --- Vehicle Grid --- */
.vehicle-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.vehicle-card {
    background: #fff;
    border: 1px solid var(--hub-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.vehicle-card:hover {
    border-color: var(--hub-primary);
    box-shadow: var(--hub-shadow);
}

.vehicle-card.activ {
    border-color: var(--hub-primary);
    background: linear-gradient(to right, rgba(99, 102, 241, 0.05), transparent);
}

.vehicle-card i.fa-car-side {
    font-size: 1.8rem;
    color: var(--hub-text-muted);
}

.vehicle-info {
    display: flex;
    flex-direction: column;
}

.vehicle-info strong {
    color: var(--hub-text-main);
    font-size: 1.05rem;
}

.vehicle-info small {
    color: var(--hub-text-muted);
    font-weight: 500;
}

.vehicle-card.activ .check-badge {
    opacity: 1;
    transform: scale(1);
}

/* --- Inputs & Forms --- */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
}

.grup-formular {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

label {
    font-weight: 600;
    color: var(--hub-text-main);
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid var(--hub-border);
    background: #fff;
    font-family: inherit;
    font-size: 1rem;
    color: var(--hub-text-main);
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--hub-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* --- Time Slots --- */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding: 5px;
}

.time-slot {
    background: #fff;
    border: 1px solid var(--hub-border);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--hub-text-main);
}

.time-slot:hover:not(.occupied) {
    border-color: var(--hub-primary);
    background: #f8fafc;
}

.time-slot.selected {
    background: var(--hub-primary);
    color: #fff;
    border-color: var(--hub-primary);
}

.time-slot.occupied {
    background: #e2e8f0; /* Gray background */
    color: #94a3b8;      /* Muted text */
    cursor: not-allowed;
    border-color: #cbd5e1;
    text-decoration: line-through; /* Strikethrough to indicate unavailability */
    opacity: 0.6;
}

/* --- Buttons --- */
.wizard-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--hub-border);
}

button {
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

#prev-btn {
    background: #fff;
    border: 1px solid var(--hub-border);
    color: var(--hub-text-muted);
}

#prev-btn:hover {
    background: #f8fafc;
    color: var(--hub-text-main);
}

#next-btn, #submit-btn {
    background: linear-gradient(135deg, var(--hub-primary), var(--hub-secondary));
    color: #fff;
    border: none;
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.2);
}

#next-btn:hover, #submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(99, 102, 241, 0.3);
}

/* --- Alerts & Summary --- */
.wizard-alert, .wizard-success {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-weight: 500;
    display: none;
}

.wizard-alert {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fee2e2;
}

.wizard-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #dcfce7;
}

#review-summary {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--hub-shadow);
}

#review-summary h4 {
    margin-top: 0;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--hub-text-main);
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e2e8f0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--hub-text-muted);
    font-weight: 500;
}

.summary-value {
    color: var(--hub-text-main);
    font-weight: 700;
    text-align: right;
}

/* --- Animations --- */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
    transform: scale(0);
    animation: ripple-effect 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-effect {
    to { transform: scale(4); opacity: 0; }
}

/* --- Service Search --- */
.service-search-container {
    position: relative;
    margin-bottom: 30px;
}

.service-search-input {
    width: 100%;
    padding: 15px 20px 15px 50px; /* Space for icon */
    border-radius: 16px;
    border: 1px solid var(--hub-border);
    background: #fff;
    font-size: 1.1rem;
    box-shadow: var(--hub-shadow);
    transition: all 0.3s ease;
}

.service-search-input:focus {
    border-color: var(--hub-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    outline: none;
}

.service-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hub-text-muted);
    font-size: 1.2rem;
}

/* --- Custom Calendar --- */
.custom-calendar-container {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--hub-shadow);
    border: 1px solid var(--hub-border);
    margin-bottom: 20px;
    user-select: none;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-month-year {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--hub-text-main);
}

.calendar-nav-btn {
    background: transparent;
    border: 1px solid var(--hub-border);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--hub-text-muted);
    transition: all 0.2s;
}

.calendar-nav-btn:hover {
    background: #f1f5f9;
    color: var(--hub-text-main);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
}

.calendar-day-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--hub-text-muted);
    margin-bottom: 10px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--hub-text-main);
    border: 1px solid transparent;
}

.calendar-day:hover:not(.disabled):not(.selected) {
    background: #f1f5f9;
    border-color: var(--hub-border);
}

.calendar-day.selected {
    background: var(--hub-primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

.calendar-day.today {
    border-color: var(--hub-primary);
    color: var(--hub-primary);
    box-shadow: inset 0 0 0 2px rgba(99, 102, 241, 0.15);
}

.calendar-day.disabled {
    color: #cbd5e1;
    cursor: not-allowed;
    background: #f8fafc;
}

/* --- Time Slot Groups --- */
.slot-group-title {
    grid-column: 1/-1;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--hub-text-muted);
    margin: 20px 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 2px solid #f1f5f9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.slot-group-title i {
    color: var(--hub-primary);
}

.summary-item.editable {
    cursor: pointer;
    transition: background 0.2s;
    padding: 10px;
    border-radius: 8px;
}

.summary-item.editable:hover {
    background: #f1f5f9;
}

.summary-item.editable::after {
    content: '\f303'; /* FontAwesome pen icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 10px;
    opacity: 0;
    transition: opacity 0.2s;
    color: var(--hub-primary);
}

.summary-item.editable:hover::after {
    opacity: 1;
}
