/* Mobile-First Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 450px;
    margin: 0 auto;
    padding: 20px 20px 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 20px;
    color: white;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Hero Slideshow */
.hero-slideshow {
    margin-bottom: 30px;
}

.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
}

.slide {
    display: none;
    animation: slideIn 0.8s ease-in-out;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
}

/* Special styling for size guide - don't crop the image */
.slide img.size-guide {
    object-fit: contain;
    background-color: white;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slideshow-dots {
    text-align: center;
    padding: 20px 0;
    position: absolute;
    bottom: 15px;
    width: 100%;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: white;
    transform: scale(1.2);
}

/* Featured Product Badge */
.choice-card.featured {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: scale(1.02);
}

.featured-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(240, 147, 251, 0.4);
}

.choice-card.featured:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: scale(1.04);
}

/* Form Container */
.form-container {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background: #e0e7ff;
    border-radius: 3px;
    margin-bottom: 25px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 3px;
    width: 14.3%; /* 1/7 steps */
    transition: width 0.3s ease;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.form-step.active {
    display: block;
}

.form-step h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Choice Grid (Step 1) */
.choice-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.choice-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.choice-card:hover,
.choice-card.selected {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.choice-emoji {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.choice-card h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.choice-card p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 8px;
}

.choice-card small {
    font-size: 0.8rem;
    font-weight: bold;
}

/* Input Groups */
.input-group {
    margin-bottom: 20px;
}

.input-group input[type="text"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

.input-group input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Suggestions */
.suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestion-tag {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-tag:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Materials Section */
.materials-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Size Section (for bracelets) */
.size-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.size-choice {
    position: relative;
}

.size-choice input[type="radio"] {
    display: none;
}

.size-card {
    display: block;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.size-card:hover,
.size-choice input[type="radio"]:checked + .size-card {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.size-card.featured {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.size-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.size-card p {
    font-size: 0.95rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.size-card small {
    font-size: 0.8rem;
    opacity: 0.9;
}

.material-choice {
    position: relative;
}

.material-choice input[type="radio"] {
    display: none;
}

.material-card {
    display: block;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.material-card:hover,
.material-choice input[type="radio"]:checked + .material-card {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.material-card.premium {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-color: #f093fb;
}

.surprise-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.surprise-btn:hover {
    transform: translateY(-2px);
}

/* Timeline Section */
.timeline-section {
    text-align: center;
}

.timeline-section input[type="date"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 15px;
}

.timeline-note {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 20px;
}

.rush-options {
    display: flex;
    gap: 10px;
}

.timeline-suggestion {
    flex: 1;
    padding: 12px 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.timeline-suggestion:hover {
    background: #667eea;
    color: white;
}

/* Upload Section */
.upload-section {
    text-align: center;
}

.file-input {
    display: none;
}

.upload-area {
    display: block;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 15px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.upload-area:hover {
    background: #f1f5f9;
    border-color: #667eea;
}

.upload-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.skip-btn {
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.skip-btn:hover {
    background: #4b5563;
}

/* Contact Section */
.contact-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-section input,
.contact-section textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}

.contact-section input:focus,
.contact-section textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Order Summary */
.order-summary {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.summary-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    font-weight: bold;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-bottom: 15px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.final-note {
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
}

/* Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin: 25px 0 0 0;
    gap: 15px;
}

.nav-btn {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.next-btn {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.nav-btn:hover {
    transform: translateY(-1px);
}

.prev-btn:hover {
    background: #f1f5f9;
}

.next-btn:hover {
    background: #5a67d8;
}

/* Responsive Design */
@media (min-width: 768px) {
    .container {
        max-width: 500px;
        padding: 40px 20px;
    }
    
    .form-container {
        padding: 35px;
    }
    
    .choice-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .rush-options {
        justify-content: center;
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* Larger slideshow on desktop */
    .slide img {
        height: 400px;
    }
    
    .slideshow-container {
        max-width: 450px;
    }
}
