Files
WebWizard/public/css/wizard.css
igor 991ff9de00 implemented step 09 by Gemini
- added 3. step of wizard with smart questions
2026-06-14 07:41:52 +02:00

336 lines
5.5 KiB
CSS

:root {
--primary-color: #2563eb;
--primary-hover: #1d4ed8;
--bg-color: #f8fafc;
--card-bg: #ffffff;
--text-main: #1e293b;
--text-muted: #64748b;
--border-color: #e2e8f0;
--success-color: #22c55e;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
background-color: var(--bg-color);
color: var(--text-main);
line-height: 1.5;
display: flex;
flex-direction: column;
min-height: 100vh;
}
header {
background-color: var(--card-bg);
border-bottom: 1px solid var(--border-color);
padding: 1rem 2rem;
text-align: center;
}
main {
flex: 1;
display: flex;
justify-content: center;
align-items: flex-start;
padding: 2rem;
}
.wizard-container {
background-color: var(--card-bg);
width: 100%;
max-width: 800px;
border-radius: 0.75rem;
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
overflow: hidden;
}
.progress-bar {
height: 0.5rem;
background-color: var(--border-color);
width: 100%;
}
.progress-fill {
height: 100%;
background-color: var(--primary-color);
width: 0%;
transition: width 0.3s ease;
}
.wizard-content {
padding: 2.5rem;
}
.step {
display: none;
}
.step.active {
display: block;
animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
h2 {
margin-bottom: 1rem;
font-size: 1.5rem;
}
p.step-description {
color: var(--text-muted);
margin-bottom: 2rem;
}
.wizard-footer {
padding: 1.5rem 2.5rem;
background-color: #f1f5f9;
display: flex;
justify-content: space-between;
border-top: 1px solid var(--border-color);
}
button {
padding: 0.625rem 1.25rem;
border-radius: 0.375rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
font-size: 0.875rem;
}
.btn-secondary {
background-color: transparent;
border: 1px solid var(--border-color);
color: var(--text-main);
}
.btn-secondary:hover {
background-color: #e2e8f0;
}
.btn-primary {
background-color: var(--primary-color);
border: 1px solid var(--primary-color);
color: white;
}
.btn-primary:hover {
background-color: var(--primary-hover);
}
/* Category Cards */
.category-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 1rem;
margin-bottom: 2rem;
}
.category-card {
border: 2px solid var(--border-color);
border-radius: 0.5rem;
padding: 1.5rem 1rem;
text-align: center;
cursor: pointer;
transition: all 0.2s;
display: flex;
flex-direction: column;
align-items: center;
gap: 0.5rem;
}
.category-card:hover {
border-color: var(--primary-color);
background-color: #eff6ff;
}
.category-card.selected {
border-color: var(--primary-color);
background-color: #eff6ff;
box-shadow: 0 0 0 1px var(--primary-color);
}
.category-icon {
font-size: 2rem;
margin-bottom: 0.5rem;
}
.category-name {
font-weight: 600;
font-size: 0.9375rem;
}
/* Subcategories */
.subcategory-section {
margin-top: 2rem;
padding-top: 2rem;
border-top: 1px dashed var(--border-color);
}
.subcategory-chips {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
margin-top: 1rem;
}
.chip {
padding: 0.5rem 1rem;
border: 1px solid var(--border-color);
border-radius: 2rem;
font-size: 0.875rem;
cursor: pointer;
transition: all 0.2s;
background-color: white;
}
.chip:hover {
border-color: var(--primary-color);
color: var(--primary-color);
}
.chip.selected {
background-color: var(--primary-color);
border-color: var(--primary-color);
color: white;
}
/* Form controls */
.form-group {
margin-top: 1.5rem;
}
label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
font-size: 0.875rem;
}
textarea, input[type="text"], input[type="email"] {
width: 100%;
padding: 0.75rem;
border: 1px solid var(--border-color);
border-radius: 0.375rem;
font-family: inherit;
font-size: 0.875rem;
}
textarea:focus, input[type="text"]:focus, input[type="email"]:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-section {
margin-bottom: 2.5rem;
}
.form-section h3 {
font-size: 1.125rem;
margin-bottom: 1.25rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid var(--border-color);
}
.form-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
}
.form-hint {
font-size: 0.75rem;
color: var(--text-muted);
margin-top: 0.5rem;
}
.checkbox-group {
display: flex;
align-items: flex-start;
gap: 0.75rem;
padding: 1rem;
background-color: #f8fafc;
border-radius: 0.375rem;
border: 1px solid var(--border-color);
}
.checkbox-group input[type="checkbox"] {
margin-top: 0.25rem;
width: 1rem;
height: 1rem;
cursor: pointer;
}
.checkbox-group label {
margin-bottom: 0;
cursor: pointer;
font-weight: 400;
}
/* Service Items */
.service-item {
background-color: #f8fafc;
border: 1px solid var(--border-color);
border-radius: 0.5rem;
padding: 1.25rem;
margin-bottom: 1rem;
position: relative;
}
.service-item-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
}
.btn-remove-service {
background: none;
border: none;
color: #ef4444;
cursor: pointer;
padding: 0.25rem;
font-size: 1.25rem;
line-height: 1;
}
.btn-remove-service:hover {
color: #dc2626;
}
/* Smart Questions */
.smart-question-item {
margin-bottom: 1.5rem;
}
button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.hidden {
display: none;
}
@media (max-width: 640px) {
main {
padding: 1rem;
}
.wizard-content {
padding: 1.5rem;
}
.wizard-footer {
padding: 1rem 1.5rem;
}
}