body {
    font-family: 'Inter', sans-serif;
    background: url('AI generator survey background.png') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
    color: #222;
    min-height: 100vh;
}

.survey-wrapper {
    max-width: 960px;
    margin: auto;
    padding: 5px 20px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 30px;
    text-align: center;
}

.progress-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,194,110,.6),
                0 0 30px rgba(0,194,110,.4),
                0 0 45px rgba(0,194,110,.2);
    border: 1px solid rgba(0, 194, 110, 0.3);
    animation: glowPulse 3s ease-in-out infinite;
    transition: all 0.3s ease;
    cursor: pointer;
}

.progress-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(0,194,110,.8),
                0 0 50px rgba(0,194,110,.6),
                0 0 75px rgba(0,194,110,.4);
}


@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 8px rgba(0,194,110,.4),
                    0 0 16px rgba(0,194,110,.2),
                    0 0 24px rgba(0,194,110,.1);
    }
    50% {
        box-shadow: 0 0 12px rgba(0,194,110,.5),
                    0 0 24px rgba(0,194,110,.3),
                    0 0 36px rgba(0,194,110,.2);
    }
}

.step-text {
    font-size: 1rem;
    font-weight: 500;
    color: #333333;
}

.progress-percentage {
    font-size: 0.9rem;
    color: #666666;
}

.progress-bar {
    flex: 1;
    height: 10px;
    background: #eee;
    margin: 0 12px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    position: relative;
    transition: width 0.4s ease;
}

.progress-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.2), transparent);
    animation: shine 2s infinite linear;
}

@keyframes shine {
    0% { left: -30%; }
    100% { left: 100%; }
}

.step-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 0 8px rgba(0,194,110,.4),
                0 0 16px rgba(0,194,110,.2),
                0 0 24px rgba(0,194,110,.1);
    border: 1px solid rgba(0, 194, 110, 0.3);
    backdrop-filter: blur(10px);
    animation: glowPulse 3s ease-in-out infinite;
}

.step-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #023b07;
    margin-bottom: 12px;
    text-align: center;
}

.step-description {
    font-size: 1rem;
    color: #666666;
    text-align: center;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Textarea Styles */
textarea {
    width: 100%;
    height: 120px;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;
    margin-top: 12px;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease;
}

textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

textarea::placeholder {
    color: #aaa;
    font-style: italic;
}

/* Upload Box Styles */
.upload-box {
    border: 2px dashed #ccc;
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    margin: 30px 0;
    cursor: pointer;
    background: #fafafa;
    transition: border 0.2s ease, background 0.2s ease;
}

.upload-box:hover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.upload-box.drag-over {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.upload-icon {
    margin-bottom: 16px;
}

.upload-text {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 16px;
    font-weight: 500;
}

.upload-btn {
    margin-top: 12px;
    padding: 10px 20px;
    background: #eee;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    transition: background 0.2s ease;
}

.upload-btn:hover {
    background: #ddd;
}

.upload-info {
    font-size: 0.9rem;
    color: #666;
    margin-top: 12px;
}

/* Button Styles */
.button-row {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.button-row .btn-ghost {
    order: 1;
}

.button-row .btn-secondary {
    order: 2;
    margin: 0 auto;
}

.button-row .btn-primary {
    order: 3;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-ghost {
    background: none;
    border: none;
    color: #10b981;
    font-size: 16px;
    cursor: pointer;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-ghost:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.btn-secondary {
    background: #f0f0f0;
    color: #666;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s ease;
    font-size: 1rem;
}

.btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

/* Upload Success/Fallback Styles */
.upload-success {
    background: white;
    color: #000;
    padding: 6px 12px;
    display: inline-block;
    font-size: 14px;
    border-radius: 20px;
    margin-bottom: 10px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
}

.upload-fallback {
    background: #ccc;
    color: black;
    padding: 6px 12px;
    display: inline-block;
    font-size: 14px;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Uploaded Image Preview Styles */
.uploaded-image-preview {
    width: 100%;
    max-width: 400px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin: 16px auto;
    border: 2px solid #e0e0e0;
    display: block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.remove-image-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-top: 12px;
    transition: background 0.2s ease;
}

.remove-image-btn:hover {
    background: #c82333;
}

/* Image Preview Styles */
.upload-box img {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin: 16px 0 12px 0;
    border: 2px solid #e0e0e0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.upload-box p {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
    word-break: break-all;
    text-align: center;
}

.upload-box button {
    margin: 12px auto 0 auto;
    display: block;
    font-size: 14px;
}

/* Step 1 Styles (for compatibility) */
.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.option-card {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.2s ease;
    background: #fff;
    text-align: center;
    position: relative;
}

.option-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.option-card span {
    display: block;
    padding: 12px;
    font-weight: 500;
    color: #1a1a1a;
}

.option-card input[type="radio"] {
    display: none;
}

.option-card:hover {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.option-card.selected {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Option card selection state */
.option-card input[type="radio"]:checked + img + span,
.option-card input[type="radio"]:checked ~ span {
    color: #10b981;
}

.option-card input[type="radio"]:checked {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Card option selection state */
.card-option input[type="radio"]:checked {
    border-color: #10b981;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.card-option input[type="radio"]:checked ~ span {
    color: white;
    font-weight: 600;
}

.card-option input[type="radio"]:checked ~ .swatch {
    border-color: rgba(255, 255, 255, 0.3);
}

/* Fix for selected card option styling */
.card-option.selected {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-weight: 500;
    border-color: #10b981;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.card-option.selected span {
    color: white !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.card-option.selected .swatch {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

/* Budget button selection state */
.budget-btn input[type="radio"]:checked {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.budget-btn input[type="radio"]:checked ~ .budget-title {
    color: #10b981;
}

/* Button disabled state */
.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-disabled:hover {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    transform: none !important;
}

/* Color Scheme Styles */
.color-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.color-btn {
    padding: 14px 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
    background: #fafafa;
    font-weight: 500;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-btn:hover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.color-btn input[type="radio"] {
    display: none;
}

.color-btn.selected {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.swatch {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #ccc;
    flex-shrink: 0;
}

/* Grid Layout for Color Options */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 30px 0;
}

.card-option {
    border: 2px solid #e0e0e0;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    min-height: 120px;
}

.card-option:hover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.card-option.selected {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-weight: 500;
    border-color: #10b981;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.card-option input[type="radio"] {
    display: none;
}

.card-option .swatch {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid #ddd;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.card-option.selected .swatch {
    border-color: rgba(255, 255, 255, 0.3);
}

.card-option span {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    text-align: center;
    line-height: 1.2;
}

.card-option.selected span {
    color: white;
    font-weight: 600;
}

.card-option:hover span {
    color: #10b981;
}

.card-option.selected:hover span {
    color: white;
}

/* Responsive adjustments for color scheme grid */
@media (max-width: 768px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .card-option {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Budget Options Styles */
.budget-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 30px 0;
}

.budget-btn {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: 0.2s ease;
    background: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.budget-btn:hover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.budget-btn input[type="radio"] {
    display: none;
}

.budget-btn.selected {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.budget-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.budget-range {
    font-size: 0.9rem;
    color: #666666;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 16px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .upload-box {
        padding: 30px 16px;
    }
    
    .budget-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .budget-btn {
        padding: 16px;
    }
    
    .button-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-ghost, .btn-primary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .step-card h2 {
        font-size: 1.3rem;
    }
    
    .upload-text {
        font-size: 1rem;
    }
    
    .upload-box img {
        max-width: 250px;
        height: 150px;
    }
}

/* Design Selection Page Styles */
.designs-container {
    margin-top: 30px;
}

.designs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.design-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.design-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.design-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.design-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.design-card:hover .design-image img {
    transform: scale(1.05);
}

.design-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 185, 129, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.design-card:hover .design-overlay {
    opacity: 1;
}

.view-details-btn {
    background: white;
    color: #10b981;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-details-btn:hover {
    background: #f8fff8;
    transform: translateY(-2px);
}

.design-info {
    padding: 24px;
}

.design-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.design-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.design-features {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.feature-tag {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.designs-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.designs-note {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Loading and Error States */
.loading-container {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-container {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

/* Design Details Page Styles */
.design-details-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.back-btn {
    font-size: 1rem;
    padding: 8px 16px;
}

.design-details-header h1 {
    margin: 0;
    font-size: 2rem;
}

.design-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.design-hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.design-hero-info h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.design-philosophy {
    color: #666;
    line-height: 1.6;
    font-style: italic;
}

.design-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.design-section {
    margin-bottom: 30px;
}

.design-section:last-child {
    margin-bottom: 0;
}

.design-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.design-section p {
    color: #666;
    line-height: 1.6;
}

.features-list {
    display: grid;
    gap: 8px;
}

.feature-item {
    color: #666;
    line-height: 1.5;
}

.materials-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.material-tag {
    background: white;
    color: #000;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
}

.implementation-notes {
    display: grid;
    gap: 12px;
}

.note-item {
    padding: 12px 16px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 8px;
    border-left: 4px solid #10b981;
}

.design-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

/* Responsive adjustments for design pages */
@media (max-width: 768px) {
    .designs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .design-hero {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 20px;
    }
    
    .design-hero-image img {
        height: 250px;
    }
    
    .design-details-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .design-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .design-actions .btn-primary,
    .design-actions .btn-ghost {
        width: 100%;
    }
}

/* CTA Section Styles */
.cta-section {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 12px;
    padding: 40px;
    margin-top: 40px;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: white !important;
    color: #10b981 !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    padding: 16px 32px !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.cta-button:hover {
    background: #f8fff8 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Contact Form Styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

/* Responsive adjustments for CTA and contact form */
@media (max-width: 768px) {
    .cta-section {
        padding: 30px 20px;
        margin-top: 30px;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-button {
        width: 100%;
        padding: 14px 24px !important;
    }
    
    .contact-form {
        padding: 0 10px;
    }
}
