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

html {
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #fafafa;
    min-height: 100vh;
    padding: 10px;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    width: 100%;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 3px;
    background: #f0f0f0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.progress-fill {
    height: 100%;
    background: #666;
    transition: width 0.3s ease;
}

/* Logo */
.logo-container {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 10px;
}

.logo {
    height: 40px;
    opacity: 0.8;
}

/* Container */
.container {
    max-width: 700px;
    width: 100%;
    margin: 20px auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    margin-top: 25px;
}

.step-indicator {
    background: #f5f5f5;
    color: #777;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 20px;
}

h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 400;
}

h2 {
    color: #444;
    margin-bottom: 20px;
    margin-top: 40px;
    font-size: 20px;
    font-weight: 400;
    transition: border-color 0.3s ease;
}

h3 {
    color: #555;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 400;
}

.subtitle {
    color: #777;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Error Messages */
.error-message {
    background: #ffeaea;
    color: #d63384;
    border: 1px solid #f5c2c7;
    padding: 14px 18px;
    border-radius: 6px;
    margin-bottom: 25px;
    display: none;
    font-size: 14px;
}

/* Status Box */
.status-box {
    background: #f8f9fa;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 35px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 15px;
}

.status-item:last-child {
    margin-bottom: 0;
}

.status-item span:last-child {
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.oils-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.product-card {
    border: 2px solid #f0f0f0;
    padding: 30px 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    background: white;
    min-height: 250px;
}

.product-card:hover {
    border-color: #ccc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.product-card.selected {
    border-color: #666;
    background: #fafafa;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Radio cards (devices) - single selection */
.radio-card.selected::before {
    content: "✓";
    position: absolute;
    top: -8px;
    right: -8px;
    background: #666;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    border: 3px solid white;
}

/* Checkbox cards (oils) - multiple selection */
.checkbox-card.selected::before {
    content: "✓";
    position: absolute;
    top: -8px;
    right: -8px;
    background: #888;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.product-image {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin: 0 auto 15px auto;
    display: block;
    opacity: 0.9;
}

.product-card h4 {
    margin-bottom: 8px;
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.product-card p {
    color: #777;
    font-size: 14px;
    margin-bottom: 15px;
}

.price {
    font-weight: 600;
    color: #555;
    font-size: 18px;
}


/* Form Sections */
.form-section {
    margin: 35px 0;
    padding: 25px 0;
    border-top: 1px solid #f0f0f0;
}

.form-section:first-child {
    border-top: none;
    padding-top: 0;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    color: #555;
    font-size: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: white;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #888;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

/* Range Slider */
.form-group input[type="range"] {
    width: 100%;
    height: 4px;
    background: #eee;
    outline: none;
    border-radius: 2px;
    -webkit-appearance: none;
    margin: 15px 0;
    border: none;
    padding: 0;
}

.form-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #666;
    border-radius: 50%;
    cursor: pointer;
}

.form-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #666;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #777;
    margin-top: 8px;
}

/* Checkbox and Radio Groups */
.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.checkbox-item:hover,
.radio-item:hover {
    background: #f8f9fa;
}

.checkbox-item input,
.radio-item input {
    width: auto;
    margin-right: 12px;
    transform: scale(1.1);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: inherit;
}

.btn-primary {
    background: #333;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #555;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: #777;
    color: white;
}

.btn-secondary:hover {
    background: #555;
}

.navigation-buttons {
    display: flex;
    gap: 15px;
    margin-top: 35px;
}

.navigation-buttons .btn-primary,
.navigation-buttons .btn-secondary {
    flex: 1;
    width: auto;
}

/* Required Badge */
.required {
    background: #d63384;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 10px;
}

/* Utility Classes */
.hidden {
    display: none;
}

.privacy-notice {
    background: #f8f9fa;
    padding: 18px;
    border-radius: 6px;
    margin: 25px 0;
    border-left: 3px solid #ddd;
}

.privacy-notice small {
    color: #777;
    line-height: 1.5;
}

/* Success Page Styles */
.success-page {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 60px;
    margin-bottom: 25px;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

.success-content {
    text-align: center;
}

.contact-info {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    color: #333;
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        padding: 10px;
        width: 100%;
        max-width: 100%;
        font-size: 16px;
    }
    
    .container {
        padding: 20px;
        margin: 0 auto;
        margin-top: 10px;
        border-radius: 8px;
        width: calc(100% - 20px);
        max-width: calc(100% - 20px);
    }
    
    h1 {
        font-size: 26px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 18px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .oils-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        padding: 12px;
        display: flex;
        align-items: center;
        text-align: left;
        gap: 10px;
        position: relative;
        overflow: hidden;
        width: 100%;
    }
    
    .product-card.selected::before {
        top: 8px;
        right: 8px;
    }
    
    .radio-card.selected::before {
        top: 8px;
        right: 8px;
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
    
    .checkbox-card.selected::before {
        top: 8px;
        right: 8px;
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    
    .product-image {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
        margin: 0;
    }
    
    .product-card > div {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    .product-card h4 {
        text-align: left;
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 4px;
    }
    
    .product-card p {
        text-align: left;
        font-size: 14px;
        color: #666;
        margin-bottom: 4px;
    }
    
    .price {
        text-align: left;
        font-size: 17px;
        font-weight: 600;
    }
    
    .navigation-buttons {
        flex-direction: column;
    }
    
    .checkbox-group,
    .radio-group {
        gap: 10px;
    }
    
    /* Fix for iOS dropdown positioning - use native styling */
    .form-group select {
        font-size: 16px;
        padding: 14px 16px;
        width: 100%;
        max-width: 100%;
        /* Use native dropdown on mobile for better UX */
        -webkit-appearance: menulist;
        appearance: menulist;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px;
        padding: 14px 16px;
        width: 100%;
        max-width: 100%;
    }
    
    .form-group label {
        font-size: 16px;
        font-weight: 500;
        margin-bottom: 8px;
    }
    
    .form-group {
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .checkbox-item,
    .radio-item {
        font-size: 16px;
    }
    
    .step-indicator {
        font-size: 14px;
    }
    
    .error-message {
        font-size: 15px;
    }
    
    .logo {
        height: 35px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 8px;
        font-size: 16px;
    }
    
    .container {
        padding: 15px;
        margin: 0 auto;
        margin-top: 8px;
        width: calc(100% - 16px);
        max-width: calc(100% - 16px);
    }
    
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 19px;
    }
    
    .subtitle {
        font-size: 15px;
    }
    
    .product-card {
        padding: 10px;
    }
    
    .product-image {
        width: 65px;
        height: 65px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 16px 24px;
        font-size: 17px;
        font-weight: 600;
    }
    
    .success-icon {
        font-size: 50px;
    }
    
    .logo {
        height: 30px;
    }
    
    .form-section {
        padding: 20px 0;
        margin: 25px 0;
    }
}