/* REQUIREMENTS PAGE COMPONENTS */

/* Requirements hero section */
.requirements-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 5rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.requirements-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="req" x="0" y="0" width="30" height="30" patternUnits="userSpaceOnUse"><rect width="30" height="30" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/><circle cx="15" cy="15" r="6" fill="rgba(255,255,255,0.08)"/><path d="M10,15 L14,19 L20,11" stroke="rgba(255,255,255,0.1)" stroke-width="2" fill="none"/></pattern></defs><rect width="100%" height="100%" fill="url(%23req)"/></svg>');
}

.requirements-hero .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.requirements-hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-text strong {
    color: white;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.feature-text span {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

/* Progress indicator */
.progress-indicator {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

.progress-step.completed .step-number {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.progress-step.completed .step-number::before {
    content: '✓';
}

.step-label {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Requirements wizard */
.requirements-wizard {
    padding: 2rem 0 5rem;
    background: #f8fafc;
}

.wizard-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.wizard-step {
    display: none;
    min-height: 600px;
}

.wizard-step.active {
    display: block;
    animation: stepSlideIn 0.5s ease forwards;
}

@keyframes stepSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-header {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 3rem;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.step-header h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.step-header p {
    color: #64748b;
    font-size: 1.1rem;
}

.step-content {
    padding: 3rem;
}

/* Form sections */
.form-sections {
    display: grid;
    gap: 3rem;
}

.form-section {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem;
    border-left: 4px solid var(--accent-color);
}

.form-section h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Project type cards */
.project-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.project-type-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.project-type-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.project-type-card.selected {
    border-color: var(--accent-color);
    background: #f0f9ff;
    box-shadow: 0 8px 25px rgba(59,130,246,0.15);
}

.type-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.project-type-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.project-type-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.type-features {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-tag {
    background: #e2e8f0;
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-type-card.selected .feature-tag {
    background: var(--accent-color);
    color: white;
}

/* Building type options */
.building-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.building-type-option {
    position: relative;
}

.building-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.building-type-option label {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.building-type-option input[type="radio"]:checked + label {
    border-color: var(--accent-color);
    background: #f0f9ff;
}

.option-icon {
    font-size: 2rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.option-content strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.25rem;
}

.option-content span {
    color: #64748b;
    font-size: 0.9rem;
}

/* Scale selector */
.scale-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.scale-option {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.scale-option:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

.scale-option.selected {
    border-color: var(--accent-color);
    background: #f0f9ff;
    box-shadow: 0 8px 25px rgba(59,130,246,0.15);
}

.scale-option.featured {
    border-color: #10b981;
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.scale-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.scale-header h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.scale-price {
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
}

.scale-option.featured .scale-price {
    background: #10b981;
}

.scale-features ul {
    list-style: none;
    padding: 0;
}

.scale-features li {
    color: #374151;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
}

.scale-features li:before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
    margin-right: 0.75rem;
}

.scale-features li:last-child {
    border-bottom: none;
}

/* Timeline options */
.timeline-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

/* Technical sections */
.technical-sections {
    display: grid;
    gap: 3rem;
}

.tech-section {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem;
    border-left: 4px solid var(--accent-color);
}

.tech-section h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.3rem;
}

.tech-grid {
    display: grid;
    gap: 2rem;
}

.tech-feature {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tech-feature:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.feature-header {
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-header input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 0.25rem;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.feature-header label {
    flex: 1;
    cursor: pointer;
    margin: 0;
}

.feature-header strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-header span {
    color: #64748b;
    font-size: 0.9rem;
}

.feature-details {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
    display: none;
}

.tech-feature.expanded .feature-details {
    display: block;
    animation: expandDetails 0.3s ease;
}

@keyframes expandDetails {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 300px;
    }
}

.detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 1rem 0;
    gap: 1rem;
}

.detail-item label {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0;
    min-width: 150px;
}

.detail-item input,
.detail-item select {
    flex: 1;
    max-width: 200px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.75rem 0;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.checkbox-group label {
    cursor: pointer;
    color: #374151;
    font-size: 0.9rem;
    margin: 0;
}

/* Advanced sections */
.advanced-sections {
    display: grid;
    gap: 3rem;
}

.advanced-section {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem;
    border-left: 4px solid var(--accent-color);
}

.advanced-section h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.3rem;
}

/* Feature toggles */
.feature-toggles {
    display: grid;
    gap: 1.5rem;
}

.toggle-feature {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
}

.toggle-feature:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

.toggle-feature label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    cursor: pointer;
    margin: 0;
}

.toggle-content {
    flex: 1;
}

.toggle-content strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.toggle-content span {
    color: #64748b;
    font-size: 0.9rem;
}

.toggle-switch {
    width: 50px;
    height: 24px;
    background: #e5e7eb;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-feature input[type="checkbox"]:checked + label .toggle-switch {
    background: var(--accent-color);
}

.toggle-feature input[type="checkbox"]:checked + label .toggle-switch::after {
    transform: translateX(26px);
}

.feature-config {
    padding: 0 1.5rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
    display: none;
}

.toggle-feature input[type="checkbox"]:checked ~ .feature-config {
    display: block;
    animation: expandConfig 0.3s ease;
}

@keyframes expandConfig {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 100px;
    }
}

.feature-config input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-top: 1rem;
}

/* Special requirements */
.special-requirements {
    display: grid;
    gap: 2rem;
}

.requirement-group {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e5e7eb;
}

.requirement-group h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.checkbox-item label {
    cursor: pointer;
    color: #374151;
    font-size: 0.9rem;
    margin: 0;
}

/* Preferences */
.preferences-section {
    display: grid;
    gap: 2rem;
}

.preference-group {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e5e7eb;
}

.preference-group h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.priority-sliders {
    display: grid;
    gap: 1.5rem;
}

.slider-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slider-item label {
    min-width: 100px;
    color: var(--primary-color);
    font-weight: 500;
    margin: 0;
}

.slider-item input[type="range"] {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.slider-item input[type="range"]::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.slider-item input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.slider-value {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    color: var(--accent-color);
}

.brand-preferences select {
    width: 100%;
    min-height: 120px;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
}

.brand-preferences select:focus {
    border-color: var(--accent-color);
    outline: none;
}

.preference-group textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    resize: vertical;
    font-family: inherit;
}

.preference-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

/* Summary container */
.summary-container {
    display: grid;
    gap: 2rem;
}

.cost-estimation {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.cost-estimation h3 {
    color: white;
    margin-bottom: 2rem;
}

.cost-main {
    margin-bottom: 2rem;
}

.cost-total {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cost-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

.cost-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
}

.cost-range {
    opacity: 0.8;
    font-size: 1rem;
}

.cost-details {
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.project-summary,
.selected-features,
.recommendations {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e5e7eb;
}

.project-summary h3,
.selected-features h3,
.recommendations h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.summary-label {
    color: var(--primary-color);
    font-weight: 600;
}

.summary-value {
    color: #374151;
    font-weight: 500;
}

.features-list {
    display: grid;
    gap: 0.75rem;
}

.feature-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #f0fdf4;
    border-radius: 8px;
    border-left: 4px solid #10b981;
}

.feature-name {
    color: var(--primary-color);
    font-weight: 600;
}

.feature-cost {
    color: #10b981;
    font-weight: 600;
}

.recommendations-list {
    display: grid;
    gap: 1rem;
}

.recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #fef3c7;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
}

.recommendation-icon {
    font-size: 1.5rem;
    color: #f59e0b;
    flex-shrink: 0;
}

.recommendation-content {
    flex: 1;
}

.recommendation-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.recommendation-text {
    color: #92400e;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Step actions */
.step-actions {
    padding: 2rem 3rem;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.step-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-btn.primary {
    background: var(--accent-color);
    color: white;
}

.step-btn.primary:hover {
    background: #0369a1;
    transform: translateY(-2px);
}

.step-btn.secondary {
    background: #e5e7eb;
    color: var(--primary-color);
}

.step-btn.secondary:hover {
    background: #d1d5db;
}

.step-btn.outline {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.step-btn.outline:hover {
    background: var(--accent-color);
    color: white;
}

.step-btn:disabled {
    background: #f1f5f9;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.final-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsive design */
@media (max-width: 968px) {
    .hero-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .progress-indicator {
        gap: 1rem;
    }
    
    .project-types {
        grid-template-columns: 1fr;
    }
    
    .building-types {
        grid-template-columns: 1fr;
    }
    
    .scale-selector {
        grid-template-columns: 1fr;
    }
    
    .timeline-options {
        grid-template-columns: 1fr;
    }
    
    .step-actions {
        flex-direction: column;
    }
    
    .final-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .requirements-hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .step-header {
        padding: 2rem;
    }
    
    .step-header h2 {
        font-size: 1.5rem;
    }
    
    .step-content {
        padding: 2rem;
    }
    
    .wizard-container {
        margin: 0 1rem;
        border-radius: 12px;
    }
    
    .step-actions {
        padding: 1.5rem 2rem;
    }
    
    .cost-value {
        font-size: 2rem;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .requirements-hero {
        padding: 3rem 0 2rem;
    }
    
    .requirements-hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .progress-indicator {
        flex-direction: column;
        gap: 1rem;
    }
    
    .progress-step {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
    
    .form-section,
    .tech-section,
    .advanced-section {
        padding: 1.5rem;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .detail-item label {
        min-width: auto;
    }
    
    .detail-item input,
    .detail-item select {
        max-width: none;
    }
    
    .slider-item {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .slider-item label {
        min-width: auto;
    }
    
    .step-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Print styles */
@media print {
    .requirements-hero,
    .hero-actions,
    .progress-indicator,
    .step-actions {
        display: none;
    }
    
    .wizard-step {
        display: block !important;
        page-break-before: always;
    }
    
    .wizard-step:first-child {
        page-break-before: avoid;
    }
    
    .step-header {
        background: none;
        border-bottom: 2px solid #000;
    }
    
    .form-section,
    .tech-section,
    .advanced-section {
        break-inside: avoid;
        margin-bottom: 2rem;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .project-type-card,
    .building-type-option label,
    .scale-option,
    .tech-feature,
    .toggle-feature {
        border-width: 3px;
    }
    
    .feature-item {
        border: 2px solid rgba(255,255,255,0.8);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .requirements-wizard {
        background: #1e293b;
    }
    
    .wizard-container {
        background: #334155;
    }
    
    .step-header {
        background: linear-gradient(135deg, #475569, #64748b);
    }
    
    .form-section,
    .tech-section,
    .advanced-section {
        background: #475569;
    }
    
    .project-type-card,
    .building-type-option label,
    .scale-option,
    .tech-feature,
    .toggle-feature,
    .requirement-group,
    .preference-group {
        background: #475569;
        border-color: #64748b;
        color: #e2e8f0;
    }
    
    .step-actions {
        background: #475569;
        border-color: #64748b;
    }
}

/* Animation classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

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

.bounce-in {
    animation: bounceIn 0.8s ease forwards;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.slide-in-right {
    animation: slideInRight 0.5s ease forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading states */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success states */
.success-checkmark {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #10b981;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    animation: successPop 0.6s ease forwards;
    margin: 0 auto 1rem;
}

@keyframes successPop {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
