* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --space-black: #050810;
    --deep-blue: #0d1220;
    --accent-gold: #c9a962;
    --accent-blue: #4a7fff;
    --text-light: #e8ecf4;
    --text-muted: #7a8599;
    --white: #ffffff;
    --border-subtle: rgba(201, 169, 98, 0.15);
}
body {
    font-family: 'Source Sans 3', sans-serif;
    background: var(--space-black);
    color: var(--text-light);
    min-height: 100vh;
}
.ambient-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    background: radial-gradient(ellipse 120% 80% at 20% 20%, rgba(74, 127, 255, 0.03) 0%, transparent 50%),
                radial-gradient(ellipse 100% 100% at 80% 80%, rgba(201, 169, 98, 0.02) 0%, transparent 50%);
    z-index: -1;
}
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(5, 8, 16, 0.95) 0%, transparent 100%);
}
.logo {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.4rem;
    letter-spacing: 0.15em;
    color: var(--accent-gold);
}
.progress-bar {
    position: fixed;
    top: 5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    z-index: 999;
}
.progress-dot {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: all 0.4s ease;
}
.progress-dot.active { border-color: var(--accent-gold); color: var(--accent-gold); }
.progress-dot.completed { background: var(--accent-gold); border-color: var(--accent-gold); color: var(--space-black); }
.progress-line { width: 60px; height: 1px; background: var(--border-subtle); }
.progress-line.completed { background: var(--accent-gold); }
.step {
    display: none;
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
}
.step.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.step-content { max-width: 540px; width: 100%; }
.step-header { text-align: center; margin-bottom: 3rem; }
.step-number {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
}
h1, h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1.15;
    margin-bottom: 1rem;
}
h1 { font-size: clamp(2.5rem, 7vw, 4rem); }
h2 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 400; }
.subtitle { font-size: 1rem; color: var(--text-muted); font-weight: 300; line-height: 1.6; }
.form-group { margin-bottom: 1.75rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}
input[type="text"], input[type="date"], input[type="time"], input[type="number"], textarea, select {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(13, 18, 32, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--white);
    font-size: 1rem;
    font-family: 'Source Sans 3', sans-serif;
    transition: all 0.3s ease;
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(13, 18, 32, 0.8);
}
input::placeholder { color: var(--text-muted); opacity: 0.6; }
.location-wrapper { position: relative; }
.location-results {
    position: absolute;
    top: 100%; left: 0; right: 0;
    max-height: 280px;
    overflow-y: auto;
    background: rgba(13, 18, 32, 0.98);
    border: 1px solid var(--border-subtle);
    border-top: none;
    border-radius: 0 0 6px 6px;
    display: none;
    z-index: 100;
}
.location-results.visible { display: block; }
.location-result {
    padding: 1rem 1.25rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.location-result:hover { background: rgba(201, 169, 98, 0.08); }
.location-result-name { color: var(--white); font-weight: 500; margin-bottom: 0.2rem; }
.location-result-details { font-size: 0.8rem; color: var(--text-muted); }
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0; }
.theme-card {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}
.theme-card:hover { transform: translateY(-3px); border-color: rgba(201, 169, 98, 0.3); }
.theme-card.selected { border-color: var(--accent-gold); }
.theme-card.selected::after {
    content: '\2713';
    position: absolute;
    top: 8px; right: 8px;
    width: 20px; height: 20px;
    background: var(--accent-gold);
    color: var(--space-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}
.theme-preview {
    aspect-ratio: 3/4;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
}
.theme-name {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.theme-midnight { background: radial-gradient(ellipse at 30% 30%, #0f1829 0%, #050810 100%); }
.theme-celestial { background: radial-gradient(ellipse at 40% 30%, #1a1040 0%, #080510 100%); }
.theme-cosmos { background: radial-gradient(ellipse at 50% 40%, #1a2040 0%, #050815 100%); }
.theme-sepia { background: radial-gradient(ellipse at 30% 30%, #1f1812 0%, #0a0805 100%); }
.theme-navy { background: radial-gradient(ellipse at 40% 40%, #0a1525 0%, #020508 100%); }
.theme-minimal { background: radial-gradient(ellipse at 50% 50%, #0c1018 0%, #000000 100%); }
.options-section { margin: 2rem 0; }
.options-title { font-size: 0.7rem; letter-spacing: 0.15em; color: var(--text-muted); margin-bottom: 1rem; text-transform: uppercase; }
.option-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.option-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.6rem 1rem;
    background: rgba(13, 18, 32, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    transition: all 0.2s;
}
.option-checkbox:hover { border-color: rgba(201, 169, 98, 0.3); }
.option-checkbox.checked { border-color: var(--accent-gold); background: rgba(201, 169, 98, 0.08); }
.option-checkbox input { display: none; }
.option-checkbox .checkmark {
    width: 16px; height: 16px;
    border: 1px solid var(--text-muted);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.option-checkbox.checked .checkmark { background: var(--accent-gold); border-color: var(--accent-gold); }
.option-checkbox.checked .checkmark::after { content: '\2713'; color: var(--space-black); font-size: 0.6rem; }
.option-checkbox span:last-child { font-size: 0.85rem; color: var(--text-light); }
.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Source Sans 3', sans-serif;
}
.btn-primary { background: var(--accent-gold); color: var(--space-black); }
.btn-primary:hover { background: #d9b972; transform: translateY(-2px); }
.btn-secondary { background: transparent; border: 1px solid var(--border-subtle); color: var(--text-light); }
.btn-secondary:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.btn-group { display: flex; gap: 1rem; margin-top: 2.5rem; justify-content: center; }
.preview-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    max-width: 1100px;
    width: 100%;
    align-items: start;
}
.poster-frame {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.poster-wrapper { background: white; padding: 3px; }
#posterCanvas { width: 100%; height: auto; display: block; }
.preview-sidebar { position: sticky; top: 8rem; }
.sidebar-section {
    background: rgba(13, 18, 32, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.sidebar-title { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; margin-bottom: 1rem; }
.download-options { display: flex; flex-direction: column; gap: 0.75rem; }
.download-btn { width: 100%; padding: 1rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: rgba(74, 127, 255, 0.1);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--accent-blue);
}
.loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5, 8, 16, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 2000;
}
.loading-overlay.visible { display: flex; }
.loading-spinner {
    width: 48px; height: 48px;
    border: 2px solid var(--border-subtle);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.loading-text { margin-top: 1.5rem; color: var(--text-muted); font-size: 0.9rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.footer { text-align: center; padding: 3rem; color: var(--text-muted); font-size: 0.8rem; }
@media (max-width: 900px) {
    .preview-layout { grid-template-columns: 1fr; }
    .preview-sidebar { position: static; }
    .theme-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .btn-group { flex-direction: column; }
    .btn { width: 100%; }
}
