/* ========================================
   WIZARD LAYOUT CSS
   Shared styles for step progress, page header,
   navbar, footer, notifications, and animations
   used across all wizard pages.
   ======================================== */

/* Step Progress Bar */
.step-progress {
    background: var(--gradient-hero);
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    margin-top: 0;
    padding-top: calc(1rem + 10px);
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.step-progress .container {
    width: 100%;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    width: 100%;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 7%;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.8);
    color: var(--color-text-body);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
    transition: all 0.3s ease;
}

.step.completed .step-circle {
    background: var(--color-secondary);
    color: var(--color-main-light);
}

.step.active .step-circle {
    background: var(--color-secondary);
    color: var(--color-main-light);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.3);
    animation: pulse 2s infinite;
}

.step span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.step.completed span,
.step.active span {
    color: var(--color-secondary);
    font-weight: 600;
}

/* Main Content Area */
.main-content {
    padding: var(--space-lg) 0;
    background: var(--color-bg-surface);
    min-height: calc(100vh - 200px);
    transition: filter 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
}

.main-content.blurred {
    filter: blur(5px);
    pointer-events: none;
}

/* Quote / proposal page: stronger contrast between content and background */
.main-content--quote-page {
    background: #e5e7eb;
}

/* Page Header */
.page-header {
    margin-bottom: var(--space-xl);
    animation: slideInLeft 0.8s ease-out;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-xl);
}

.header-content {
    flex: 1;
}

.header-content h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    text-align: left;
    line-height: 1.1;
}

.header-content p {
    font-size: 0.9rem;
    color: var(--color-text-body);
    margin-bottom: 0;
    text-align: left;
    font-weight: 500;
}

/* Return Home Button */
.btn-return-home {
    background: var(--gradient-main);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    box-shadow: var(--shadow-purple-sm);
}

.btn-return-home:hover {
    background: var(--gradient-main-hover);
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-purple-md);
    color: white !important;
}

.btn-return-home:active {
    transform: translateY(0) scale(0.98);
}

/* Enhanced Footer */
.enhanced-footer {
    background: var(--gradient-hero);
    border-top: none;
    padding: var(--space-2xl) 0 var(--space-md);
    margin-top: var(--space-2xl);
    color: white;
}

.footer-trust-section {
    padding-bottom: var(--space-xl);
    margin-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-certifications {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin: 0 auto;
}

.footer-trust-section .cert-badge {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-trust-section .cert-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.footer-trust-section .cert-text {
    display: flex;
    flex-direction: column;
}

.footer-trust-section .cert-text strong {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
}

.footer-trust-section .cert-text span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-logo img {
    height: 32px;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: flex;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

.security-indicators {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.security-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
}

.security-item i {
    color: var(--color-secondary);
    font-size: 1rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

/* Blur Overlay */
.blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.blur-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 0.95rem;
    min-width: 300px;
    max-width: 450px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateX(500px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    background: var(--gradient-main);
    color: white;
}

.notification.error {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
}

.notification.warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
}

.notification.info {
    background: var(--gradient-main);
    color: white;
}

.notification-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.notification-message {
    opacity: 0.9;
    font-size: 0.9rem;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background 0.2s ease;
    opacity: 0.8;
}

.notification-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

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

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }
}

/* Responsive Design for Wizard Layout */
@media (max-width: 768px) {
    .step-progress {
        margin-top: 0;
        min-height: 10px;
    }

    .progress-steps {
        flex-wrap: nowrap;
        gap: 0;
        overflow: hidden;
    }

    .progress-steps::before {
        top: 11px;
    }

    .step {
        flex: 1;
        min-width: 0;
    }

    .step-circle {
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
        margin-bottom: 0;
    }

    .step span {
        display: none;
    }

    .main-content {
        padding: var(--space-md) 0;
    }

    .page-header {
        margin-bottom: var(--space-lg);
    }

    .header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-lg);
    }

    .header-content h1 {
        font-size: 2rem;
        text-align: center;
    }

    .header-content p {
        text-align: center;
    }

    .header-content {
        text-align: center;
        width: 100%;
    }

    .btn-return-home {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }
}
