:root {
    --primary: #121A22;
    --gold: #D97706;
    --bg: #FAFAFA;
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-muted: #6B7280;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
    border-radius: 50%;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: #0055A5;
    top: -200px;
    right: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: #D97706;
    bottom: -100px;
    left: -100px;
}

nav {
    padding: 2rem 10%;
    display: flex;
    justify-content: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo .gold {
    color: var(--gold);
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10% 5rem;
}

.hero {
    text-align: center;
    max-width: 800px;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 300;
}

.form-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 0.5rem;
    border-radius: 100px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    transition: transform 0.3s ease;
}

.form-card:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.input-group {
    display: flex;
    width: 100%;
}

input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1.5rem 2.5rem;
    font-size: 1rem;
    outline: none;
    font-family: 'Inter', sans-serif;
    color: var(--primary);
}

button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

button:hover {
    background: #1a2632;
}

button:disabled {
    background: #6B7280;
    cursor: not-allowed;
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

button.loading .btn-text {
    visibility: hidden;
}

button.loading .spinner {
    display: block;
    position: absolute;
}

.status-message {
    margin-top: 2rem;
    font-size: 0.9rem;
    height: 1.5rem;
}

.error {
    color: #dc2626;
}

.success {
    color: #059669;
}

footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.fade-in-delay {
    opacity: 0;
    animation: fadeIn 1s 0.3s forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s 0.6s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

/* Step Visibility */
.hidden {
    display: none !important;
}

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

.dashboard {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dash-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
}

.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.card h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.field {
    margin-bottom: 1.25rem;
}

.field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--primary);
}

.field input,
.field textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--gold);
    outline: none;
}

.specs-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}

.spec-cb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    background: #F9FAFB;
    border: 1px solid transparent;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.spec-cb:hover {
    background: #F3F4F6;
    border-color: #E5E7EB;
}

.spec-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.s-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.s-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
}

.spec-cb input {
    accent-color: var(--gold);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Image Grid Selection */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 5px;
}

.img-item {
    position: relative;
    aspect-ratio: 3/2;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
}

.img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-item.selected {
    border-color: var(--gold);
}

.img-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--gold);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    z-index: 10;
}

.badge {
    background: var(--gold);
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
}

.primary-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sec-btn {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    cursor: pointer;
}

.sec-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }
}

@media (max-width: 900px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2.5rem;
    }

    .form-card {
        flex-direction: column;
        border-radius: 20px;
        padding: 1rem;
    }

    .input-group button {
        padding: 1.25rem;
        border-radius: 12px;
        margin-top: 1rem;
    }

    input {
        padding: 1rem;
    }
}