/**
 * wizard.css - HealthInsuranceWizard Styles
 * Minimalist, premium, mobile-first design with micro-animations.
 */

/* Main Container Setup */
.wizard-wrapper {
    max-width: 800px;
    margin: 0rem auto;
    padding: 0 0px;
    width: 100%;
}

.wizard-card {
    background-color: var(--card-bg, #ffffff);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color, #e0e0e0);
    padding: 2.5rem;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .wizard-card {
        padding: 1.25rem 1rem;
        border-radius: 10px;
    }
    .wizard-step-title {
        font-size: 1.125rem;
        margin-bottom: 1rem;
        line-height: 1.35;
    }
    .wizard-progress-container {
        margin-bottom: 1.25rem;
    }
    .wizard-indicators {
        margin-bottom: 0.75rem;
    }
    .wizard-indicators::before {
        top: 13px;
        left: 30px;
        right: 30px;
    }
    .wizard-indicator-step {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }
    .wizard-grid {
        gap: 0.75rem;
        margin: 1rem 0;
    }
    .wizard-grid-2col {
        margin: 1rem auto;
        gap: 0.75rem;
    }
    .wizard-kachel {
        padding: 1rem 0.75rem;
        border-radius: 8px;
    }
    .wizard-kachel-icon {
        font-size: 1.6rem;
        margin-bottom: 0.35rem;
    }
    .wizard-kachel-text {
        font-size: 0.95rem;
    }
    .wizard-kachel-desc {
        font-size: 0.8rem;
        margin-top: 0.2rem;
    }
    .wizard-result-text {
        font-size: 1rem;
        line-height: 1.45;
    }
    .wizard-result-badge {
        font-size: 0.75rem;
    }
    .wizard-result-header {
        padding: 0.5rem 0 0.5rem 0.75rem;
    }
    .wizard-guide-hint {
        font-size: 0.85rem;
        margin-top: 0.6rem;
        gap: 6px;
    }
    .wizard-guide-hint .material-symbols-outlined {
        font-size: 1rem;
    }
}

/* Header & Intro */
.wizard-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.wizard-main-title {
    font-size: 1.8rem;
    color: var(--primary-color, #1f4e79);
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
}

.wizard-intro-text {
    font-size: 1.05rem;
    color: #555555;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Steps and Transitions */
.wizard-step {
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
    opacity: 0;
}

.wizard-step.active {
    opacity: 1;
    transform: translateY(0);
}

.wizard-step-title {
    font-size: 1.35rem;
    color: var(--primary-color, #1f4e79);
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}

/* Progress Tracking */
.wizard-progress-container {
    margin-bottom: 2rem;
}

.wizard-indicators {
    display: flex;
    justify-content: space-between;
    max-width: 450px;
    margin: 0 auto 1.25rem auto;
    position: relative;
    padding: 0 10px;
}

.wizard-indicators::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 40px;
    right: 40px;
    height: 2px;
    background-color: var(--border-color, #e0e0e0);
    z-index: 1;
}

.wizard-indicator-step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--card-bg, #ffffff);
    border: 2px solid var(--border-color, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #777777;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.wizard-indicator-step.active {
    border-color: var(--secondary-color, #3a7ca5);
    background-color: var(--secondary-color, #3a7ca5);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(58, 124, 165, 0.15);
}

.wizard-indicator-step.completed {
    border-color: var(--primary-color, #1f4e79);
    background-color: var(--primary-color, #1f4e79);
    color: #ffffff;
}

.wizard-progress-bar {
    width: 100%;
    height: 6px;
    background-color: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.wizard-progress-fill {
    width: 33%;
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color, #3a7ca5), var(--primary-color, #1f4e79));
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Kachel Grid */
.wizard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.wizard-grid-2col {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    max-width: 600px;
    margin: 1.5rem auto;
}

/* Selection Card (Kachel) styling */
.wizard-kachel {
    background-color: var(--card-bg, #ffffff);
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 10px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    outline: none;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.wizard-kachel:hover, .wizard-kachel:focus-visible {
    border-color: var(--secondary-color, #3a7ca5);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(58, 124, 165, 0.08);
}

.wizard-kachel:active {
    transform: translateY(-1px);
}

.wizard-kachel.selected {
    border-color: var(--primary-color, #1f4e79);
    background-color: rgba(31, 78, 121, 0.03);
    box-shadow: 0 4px 12px rgba(31, 78, 121, 0.06);
}

.wizard-kachel-icon {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    display: block;
    line-height: 1;
}

.wizard-kachel-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color, #333333);
    line-height: 1.4;
}

.wizard-kachel-desc {
    font-size: 0.85rem;
    color: #666666;
    margin-top: 0.35rem;
}

/* Controls & Header Actions */
.wizard-controls {
    display: flex;
    justify-content: flex-start;
    margin-top: 1.5rem;
    min-height: 36px;
}

.wizard-reset-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #777777;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 6px 12px;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
}

.wizard-reset-btn:hover {
    color: var(--primary-color, #1f4e79);
    background-color: rgba(0, 0, 0, 0.04);
}

.wizard-reset-btn .material-symbols-outlined {
    font-size: 18px;
}

/* Result Section styling */
.wizard-result-box {
    margin-bottom: 2rem;
}

.wizard-result-header {
    border-left: 4px solid var(--primary-color, #1f4e79);
    padding: 0.5rem 0 0.5rem 1rem;
    background-color: rgba(31, 78, 121, 0.02);
    border-radius: 0 8px 8px 0;
}

.wizard-result-badge {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--secondary-color, #3a7ca5);
    margin-bottom: 0.25rem;
    display: block;
}

.wizard-result-text {
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 500;
    color: var(--text-color, #333333);
}

/* Responsive Widget Container */
.widget-outer-container {
    width: 100%;
    overflow-x: hidden;
    position: relative;
    min-height: 250px;
    border-radius: 8px;
    border: 1px solid var(--border-color, #e0e0e0);
    background-color: #fdfdfd;
}

/* Skeleton Loading Animation */
.wizard-skeleton {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    box-sizing: border-box;
}

.skeleton-item {
    background: linear-gradient(90deg, #f0f0f0 25%, #f7f7f7 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
}

.skeleton-title {
    width: 40%;
    height: 24px;
}

.skeleton-paragraph {
    width: 100%;
    height: 80px;
}

.skeleton-field {
    width: 85%;
    height: 44px;
    margin: 0.5rem 0;
}

.skeleton-button {
    width: 130px;
    height: 40px;
    align-self: flex-end;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Guide Hint styling */
.wizard-guide-hint {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #666666;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.wizard-guide-hint .material-symbols-outlined {
    font-size: 1.1rem;
    color: var(--primary-color, #1f4e79);
    flex-shrink: 0;
}

.wizard-guide-hint a {
    color: var(--primary-color, #1f4e79);
    text-decoration: underline;
    font-weight: 600;
}

.wizard-guide-hint a:hover {
    color: var(--secondary-color, #3a7ca5);
}

/* Widget Disclaimer */
.wizard-widget-disclaimer {
    margin-top: 1.25rem;
    font-size: 0.8rem;
    color: #666666;
    line-height: 1.5;
    padding: 0.65rem 0.85rem;
    background-color: rgba(0, 0, 0, 0.015);
    border-left: 3px solid var(--border-color, #e0e0e0);
    border-radius: 0 6px 6px 0;
}

.wizard-widget-disclaimer a {
    color: var(--primary-color, #1f4e79);
    text-decoration: underline;
    font-weight: 600;
}

.wizard-widget-disclaimer a:hover {
    color: var(--secondary-color, #3a7ca5);
}

/* Wizard CTA Container & Modular Cards */
.wizard-cta-container {
    width: 100%;
    margin-top: 0.5rem;
}

#wizard-cta-heading h4 {
    font-size: 1rem;
}

.wizard-option-card {
    border: 1px solid var(--secondary-color, #3a7ca5);
    border-radius: 8px;
    padding: 1.25rem;
    background-color: var(--card-bg, #ffffff);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.2s ease;
    text-align: left;
}

.wizard-option-card:hover {
    border-color: var(--primary-color, #1f4e79);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.wizard-direct-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-color, #1f4e79);
    text-decoration: underline;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.wizard-direct-link-btn:hover {
    color: var(--secondary-color, #3a7ca5);
    text-decoration: underline;
}

.wizard-direct-link-btn .material-symbols-outlined {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.wizard-direct-link-btn:hover .material-symbols-outlined {
    transform: translateX(2px);
}

@media (max-width: 768px) {
    .wizard-option-card {
        padding: 1rem;
    }
}

/* Summary Card for pre-selected wizard state */
.wizard-summary-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(31, 78, 121, 0.02);
    border: 1px dashed var(--secondary-color, #3a7ca5);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.wizard-summary-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wizard-summary-content .material-symbols-outlined {
    color: var(--primary-color, #1f4e79);
    font-size: 1.4rem;
}

.wizard-summary-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wizard-summary-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #666666;
    letter-spacing: 0.03em;
}

.wizard-summary-text {
    font-size: 0.9rem;
    color: var(--text-color, #333333);
    font-weight: 500;
}

.wizard-summary-change-btn {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color, #1f4e79);
    background: none;
    border: none;
    text-decoration: underline;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    transition: color 0.2s;
}

.wizard-summary-change-btn:hover {
    color: var(--secondary-color, #3a7ca5);
}

@media (max-width: 576px) {
    .wizard-summary-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .wizard-summary-change-btn {
        padding: 0;
        align-self: flex-end;
    }
}



