:root {
    --bg-color: #05070a;
    --card-bg: #111827;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --accent-color: #8b5cf6;
    --accent-hover: #a78bfa;
    --border-color: #374151;
    --success-color: #10b981;
    --error-color: #ef4444;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
    background-image: 
        radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px),
        radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px),
        radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 40px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
}

.container {
    width: 100%;
    max-width: 1000px;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

header h1 {
    font-size: 2.5rem;
    background: linear-gradient(to right, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

header p {
    color: var(--text-secondary);
}

.wizard-step {
    display: none;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    animation: fadeIn 0.3s ease-in-out;
}

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

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

h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.card:hover {
    border-color: var(--accent-color);
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-1px);
}

.card.selected {
    border-color: var(--accent-color);
    background: rgba(139, 92, 246, 0.18);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.35) inset, 0 0 15px rgba(139, 92, 246, 0.25);
}

.card h3 {
    margin-bottom: 0.5rem;
}

.card .price {
    font-weight: bold;
    color: var(--accent-hover);
}
.card .price-from {
    font-weight: 700;
    color: var(--accent-hover);
    margin-bottom: 0.5rem;
}
.service-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}
.service-desc {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}
.features {
    margin-top: 0.75rem;
    color: var(--text-secondary);
    list-style: disc;
    padding-left: 1.25rem;
}
.features li {
    margin: 0.25rem 0;
}

.step-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

button {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-next, .btn-primary, .btn-confirm {
    background: var(--accent-color);
    color: white;
}

.btn-next:hover, .btn-primary:hover, .btn-confirm:hover {
    background: var(--accent-hover);
}

.btn-next:disabled {
    background: var(--border-color);
    cursor: not-allowed;
}

.btn-prev {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-prev:hover {
    background: rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

input, textarea, select {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    outline: none;
}

input:focus, textarea:focus {
    border-color: var(--accent-color);
}

.summary-box {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.success-message {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Progress bar */
.progress-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1.25rem 0 1.25rem 0;
}
.progress-step {
    position: relative;
    text-align: center;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.progress-step::before {
    content: attr(data-step);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: rgba(255,255,255,0.06);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.progress-step.active {
    color: var(--text-primary);
}
.progress-step.active::before {
    border-color: var(--accent-color);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.25), rgba(139, 92, 246, 0.15));
    color: var(--text-primary);
}
.progress-step.completed {
    color: var(--text-primary);
}
.progress-step.completed::before {
    border-color: var(--success-color);
    background: rgba(16, 185, 129, 0.18);
    color: var(--text-primary);
}
.step-title { font-weight: 700; }
.progress-step .step-title { display: none; }
.step-subtext { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.25rem; }
.progress-step.active .step-subtext { color: var(--text-primary); }

/* Step header row (title + restart) */
.step-header-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: stretch;
    gap: 1rem;
    margin-bottom: 1rem;
}
.header-cell {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.04);
}
.header-title h2 {
    margin: 0;
    border-bottom: none;
    padding-bottom: 0;
}
.btn-restart { align-self: center; }

/* Selected info (localized date/time) */
.selected-info {
    margin: 1rem 0;
    color: var(--text-secondary);
}

/* Date & Time layout */
.date-time-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}
.date-column, .time-column {
    display: flex;
    flex-direction: column;
}

/* Time slots grid and circles */
.time-column #time-slots.grid-list {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 0.75rem;
}
.time-column #time-slots .card.time-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    font-weight: 600;
}
.time-column #time-slots .card.time-circle:hover { transform: translateY(-1px); }
.time-column #time-slots .card.time-circle.selected { box-shadow: 0 0 20px rgba(139, 92, 246, 0.35); }
.time-select { display: none; }

/* Admin Styles */
.btn-admin-access {
    position: fixed;
    bottom: 20px;
    right: 20px;
    opacity: 0.3;
    background: var(--border-color);
}

.btn-admin-access:hover {
    opacity: 1;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
}

.close-modal {
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
}

.table-responsive {
    overflow-x: auto;
    margin-top: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.status-confirmed { background: var(--success-color); }
.status-cancelled { background: var(--error-color); }

@media (max-width: 600px) {
    .grid-list {
        grid-template-columns: 1fr;
    }
    .date-time-row {
        grid-template-columns: 1fr;
    }
    .time-select {
        display: block;
        width: 100%;
    }
    .time-column #time-slots.grid-list {
        display: none;
    }
    .progress-bar {
        margin: 0.5rem 0 0.75rem 0;
        gap: 0.25rem;
    }
    .progress-step {
        padding: 0.25rem 0;
    }
    .progress-step::before {
        width: 44px;
        height: 44px;
    }
    .card.selected .service-desc,
    .card.selected .features,
    .card.selected .option-desc {
        display: none;
    }
    #step-1 .step-header-row {
        grid-template-columns: 1fr;
    }
    #step-1 .header-action {
        margin-top: 0.5rem;
    }
    #step-1 .btn-restart {
        width: 100%;
        display: block;
    }
}
