/* checklist.css */
.checklist-section {
    min-height: calc(100vh - 80px); /* Subtract header */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 6rem;
}

.wizard-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    padding: 3rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.wizard-header {
    text-align: center;
    margin-bottom: 2rem;
}

.wizard-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.wizard-header p {
    color: #a0aab2;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Progress bar */
.progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 1.5rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary); /* from global styles, fallback below */
    background: linear-gradient(90deg, #0f52ba, #00d1b2);
    width: 0%;
    transition: width 0.4s ease;
}

/* Steps */
.wizard-body {
    position: relative;
    min-height: 400px;
}

.step-pane {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

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

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

.step-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 3rem 0;
}

.icon-large ion-icon {
    font-size: 5rem;
    color: #00d1b2;
    margin-bottom: 1rem;
}

.step-pane h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.subtitle {
    color: #a0aab2;
    margin-bottom: 1.5rem;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.option-card {
    cursor: pointer;
    display: block;
}

.option-card input[type="radio"] {
    display: none;
}

.card-content {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.card-content ion-icon {
    font-size: 2.5rem;
    color: #a0aab2;
    transition: color 0.3s ease;
}

.option-card:hover .card-content {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.option-card input[type="radio"]:checked + .card-content {
    background: rgba(0, 209, 178, 0.1);
    border-color: #00d1b2;
    box-shadow: 0 0 15px rgba(0, 209, 178, 0.2);
}

.option-card input[type="radio"]:checked + .card-content ion-icon {
    color: #00d1b2;
}

/* Checkboxes list */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkbox-card {
    cursor: pointer;
    display: block;
}

.checkbox-card input[type="checkbox"] {
    display: none;
}

.check-content {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.check-content strong {
    color: #fff;
    font-size: 1.1rem;
}

.check-content span {
    color: #a0aab2;
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.checkbox-card:hover .check-content {
    background: rgba(255, 255, 255, 0.08);
}

.checkbox-card input[type="checkbox"]:checked + .check-content {
    background: rgba(15, 82, 186, 0.1);
    border-color: #0f52ba;
}

/* User Actions */
.wizard-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.wizard-actions .btn-back {
    margin-right: auto;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.mt-4 { margin-top: 1.5rem; }
.text-center { text-align: center; }

/* Loader */
.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top-color: #00d1b2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 2rem;
}

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

/* Results Area */
.results-header {
    text-align: center;
    margin-bottom: 2rem;
}

.success-icon {
    font-size: 4rem;
    color: #00d1b2;
    margin-bottom: 1rem;
}

.checklist-container {
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

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

.checklist-group h4 {
    color: #00d1b2;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #0f52ba;
}

.checklist-item ion-icon {
    font-size: 1.5rem;
    color: #0f52ba;
    margin-right: 1rem;
    margin-top: 0.1rem;
}

.checklist-text strong {
    display: block;
    color: #fff;
    margin-bottom: 0.2rem;
}

.checklist-text span {
    color: #a0aab2;
    font-size: 0.9rem;
    display: block;
    line-height: 1.4;
}

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

@media (max-width: 768px) {
    .wizard-container {
        padding: 2rem 1.5rem;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }
    .options-grid {
        grid-template-columns: 1fr;
    }
}
