/* ===================================
   Wizard / Onboarding Styles
   =================================== */

/* Wizard Container */
.wizard-container {
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    gap: 0.5rem;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #d1d5db;
    transition: all 0.3s ease;
}

.step-dot.active {
    width: 32px;
    border-radius: 6px;
    background-color: #e64c25;
    box-shadow: 0 2px 8px rgba(230, 76, 37, 0.3);
}

.step-dot.completed {
    background-color: #e64c25;
}

/* Program Cards */
.program-card {
    position: relative;
    padding: 2rem;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e64c25, #ff6b45, #e64c25);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.program-card:hover {
    border-color: #e64c25;
    box-shadow: 0 10px 30px rgba(230, 76, 37, 0.2);
    transform: translateY(-4px);
}

.program-card:hover::before {
    transform: scaleX(1);
}

.program-card.selected {
    border-color: #e64c25;
    background: linear-gradient(135deg, #fff5f2 0%, #ffffff 100%);
    box-shadow: 0 10px 30px rgba(230, 76, 37, 0.25);
}

.program-card.selected::before {
    transform: scaleX(1);
}

.program-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #fff5f2, #ffe8e0);
    color: #e64c25;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.program-card:hover .program-card-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #e64c25, #ff6b45);
    color: white;
}

.program-card.selected .program-card-icon {
    background: linear-gradient(135deg, #e64c25, #ff6b45);
    color: white;
    transform: scale(1.1);
}

.program-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
    text-align: center;
}

.program-card-desc {
    color: #6b7280;
    font-size: 0.875rem;
    text-align: center;
}

.program-card-check {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: white;
}

.program-card.selected .program-card-check {
    background: #e64c25;
    border-color: #e64c25;
    transform: scale(1.1);
}

.program-card-check i {
    color: white;
    font-size: 0.875rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.program-card.selected .program-card-check i {
    opacity: 1;
}

/* Child Entry */
.child-entry {
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    background: white;
    position: relative;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.child-entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.child-number {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #111827;
}

.child-number-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e64c25, #ff6b45);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
}

.remove-child-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #ef4444;
    background: white;
    color: #ef4444;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-child-btn:hover {
    background: #ef4444;
    color: white;
}

.add-child-btn {
    width: 100%;
    padding: 1rem;
    border: 2px dashed #d1d5db;
    border-radius: 1rem;
    background: white;
    color: #6b7280;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-child-btn:hover {
    border-color: #e64c25;
    color: #e64c25;
    background: #fff5f2;
}

.add-child-btn i {
    font-size: 1.25rem;
}

/* Wizard Navigation */
.wizard-nav {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.wizard-btn {
    flex: 1;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
}

.wizard-btn-back {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.wizard-btn-back:hover {
    background: #e5e7eb;
    transform: translateX(-4px);
}

.wizard-btn-next {
    background: linear-gradient(135deg, #e64c25, #ff6b45);
    color: white;
    box-shadow: 0 4px 12px rgba(230, 76, 37, 0.3);
}

.wizard-btn-next:hover {
    box-shadow: 0 6px 20px rgba(230, 76, 37, 0.4);
    transform: translateY(-2px);
}

.wizard-btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Wizard Steps */
.wizard-step {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

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

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

/* Grid Layout for Program Cards */
.program-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .program-card {
        padding: 1.5rem;
    }
    
    .program-card-icon {
        width: 56px;
        height: 56px;
        font-size: 1.75rem;
    }
    
    .program-card-title {
        font-size: 1.25rem;
    }
    
    .child-entry {
        padding: 1rem;
    }
    
    .wizard-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Success Animation */
@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.success-animation {
    animation: successPulse 0.5s ease-out;
}

/* Hidden State */
.hidden {
    display: none !important;
}

/* Date Input Styling */
.child-dob-input {
    font-size: 1rem;
    color: #111827;
    cursor: pointer;
}

.child-dob-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    filter: brightness(0) saturate(100%) invert(30%) sepia(82%) saturate(2289%) hue-rotate(351deg) brightness(95%) contrast(90%);
}

.child-dob-input:focus {
    outline: none;
    border-color: #e64c25 !important;
    ring: 2px solid rgba(230, 76, 37, 0.2);
}

/* Date Input Label */
.child-entry label {
    font-size: 0.95rem;
    letter-spacing: 0.025em;
}