:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #ec4899;
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --card-bg: rgba(255, 255, 255, 0.9);
    --header-bg: rgba(255, 255, 255, 0.8);
    --footer-bg: #1e293b;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius: 1rem;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* Header Styles */
header {
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
}

.hero-section {
    text-align: center;
    max-width: 800px;
    margin-bottom: 4rem;
}

.hero-section h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

h1 {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--primary-color), #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

p.subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress Bar - Perfect Horizontal Alignment */
.progress-container {
    max-width: 600px;
    margin: 0 auto 4rem;
    padding: 0 20px;
}

.progress-bar {
    position: relative;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.progress-step {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    background: white;
    border: 3px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #94a3b8;
    position: relative;
    cursor: default;
}

.progress-step::after {
    content: attr(data-label);
    position: absolute;
    top: 50px;
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    transition: all 0.3s;
}

.progress-step.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.2);
}

.progress-step.active::after {
    color: var(--primary-color);
}

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

.progress-step.completed::after {
    color: var(--primary-color);
}

.form-step {
    display: none;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(15px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


.upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius);
    padding: 3rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.upload-area i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.preview-container {
    margin: 1.5rem auto 2.5rem;
    display: none;
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

.live-preview-box {
    position: relative;
    display: inline-block;
    padding: 30px;
    /* Passpartu / Matting */
    background: #fff;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.live-preview-box:hover {
    transform: translateY(-8px) rotate(0.5deg);
}

#photoPreview {
    max-width: 100%;
    max-height: 350px;
    display: block;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.frame-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
    transition: all 0.3s ease;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
}

/* Dynamic Frame Classes (can be expanded) */
.frame-style-wood {
    border: 20px solid #8B4513;
    border-image: url('assets/images/wood-texture.jpg') 30 stretch;
}

.frame-style-gold {
    border: 20px solid #D4AF37;
}

.frame-style-black {
    border: 20px solid #000;
}

.frame-style-white {
    border: 20px solid #fff;
    box-shadow: 0 0 0 1px #e2e8f0;
}

.frames-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.frame-card {
    border: 2px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.frame-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

.frame-card.selected {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.03);
}

.frame-card.selected::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.frame-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.frame-card .price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
}

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

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: calc(var(--radius) / 2);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

input:focus,
textarea:focus {
    border-color: var(--primary-color);
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: calc(var(--radius) / 2);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--text-main);
    margin-top: 0.5rem;
}

.btn-secondary:hover {
    background: #e2e8f0;
    box-shadow: none;
}

.summary {
    background: #f8fafc;
    border-radius: calc(var(--radius) / 2);
    padding: 1rem;
    margin-top: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.summary-row.total {
    border-top: 1px solid #e2e8f0;
    padding-top: 0.5rem;
    font-weight: 800;
    font-size: 1.1rem;
}

#total-price {
    color: var(--primary-color);
}

/* Info Sections */
.info-sections {
    width: 100%;
    max-width: 1200px;
    margin: 6rem auto 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 2rem;
}

.info-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.info-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.info-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Footer Styles */
footer {
    background: var(--footer-bg);
    color: var(--text-light);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding: 0 2rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    position: relative;
    color: white;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 4rem auto 0;
    padding: 2rem 2rem 0;
    border-top: 1px solid #334155;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    main {
        padding: 1.5rem 0.5rem;
    }

    .container {
        padding: 0;
    }

    .card {
        padding: 1.25rem 1rem;
        border-radius: 0.75rem;
    }

    .info-sections {
        grid-template-columns: 1fr;
    }

    .hero-section h2 {
        font-size: 1.8rem;
    }

    .nav-links {
        display: none;
    }

    /* Progress Bar Mobile Optimization */
    .progress-container {
        margin-bottom: 3.5rem;
        padding: 0 10px;
    }

    .progress-step {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .progress-step::after {
        font-size: 0.6rem;
        top: 35px;
    }

    .live-preview-box {
        padding: 10px;
    }

    #photoPreview {
        max-height: 220px;
    }

    .frames-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}
