/* Base Styles */
:root {
    --funk-yellow: #fce38b;
    --funk-pink: #ffb8bc;
    --funk-blue: #99d2ed;
    --funk-green: #bddaa0;
    --background-color: #fce38b;
    --text-color: #333333;
    --white: #FFFFFF;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* Header Styles */
h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-color);
}

h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Section Styles */
.section {
    background: #fce38b;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--funk-blue);
    color: var(--white);
}

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

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    margin: 20px 0;
    overflow: hidden;
}

.progress {
    width: 0;
    height: 100%;
    background-color: var(--funk-blue);
    transition: width 0.3s ease;
}

/* Results Section */
.style-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.style-result {
    position: relative;
    margin-bottom: 30px;
}

.style-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Creates a square aspect ratio */
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.style-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.style-result h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.style-details {
    margin-top: 20px;
}

.style-details h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.style-details ul {
    list-style-type: none;
    margin-bottom: 15px;
}

.style-details li {
    margin-bottom: 5px;
    padding-left: 20px;
    position: relative;
}

.style-details li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--funk-blue);
}

/* Primary Result Highlight */
.style-result.primary {
    border: 3px solid var(--funk-blue);
}

/* Landing Section */
#landing-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('../images/rooms/modern/modern-livingroom-1.png');
    background-size: cover;
    background-position: center;
    padding: 40px;
    text-align: center;
}

#landing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

#landing-section h1,
#landing-section .btn {
    position: relative;
    z-index: 2;
    color: var(--white);
}

#landing-section h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--white);
    line-height: 1.2;
}

/* Powered By Styles */
.powered-by {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #333;
    opacity: 0.8;
}

.powered-by img {
    width: 40px; /* Fixed width for all logos */
    height: auto;
    object-fit: contain;
}

/* Specific positioning for each section if needed */
#landing-section .powered-by {
    z-index: 3;
    color: white;
}

#quiz-section .powered-by {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

#results-section .powered-by {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

/* Quiz section powered by styles */
#quiz-section {
    position: relative;
    padding-bottom: 60px;
}

#quiz-section .powered-by img {
    width: 40px;
    height: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .section {
        padding: 20px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .style-results {
        grid-template-columns: 1fr;
    }
}

/* Add all the new CSS styles for the enhanced results page */
.shopping-recommendations,
.style-elements,
.color-palette {
    /* ... styles as provided above ... */
}

/* Style Results Enhanced Features */
.style-elements {
    margin-top: 20px;
    padding: 15px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.style-elements h4,
.color-palette h4,
.shopping-recommendations h4 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.style-elements ul {
    list-style: none;
    padding: 0;
}

.style-elements li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.style-elements li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--funk-blue);
}

.color-palette {
    margin-top: 20px;
}

.color-swatches {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-swatch {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 5px;
    box-shadow: var(--shadow);
}

.color-code {
    font-size: 10px;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 4px;
    border-radius: 3px;
}

.shopping-recommendations {
    margin-top: 20px;
    padding: 15px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.retailer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.uk-retailers,
.us-retailers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.retailer-link {
    display: inline-block;
    padding: 8px 15px;
    background: var(--funk-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: transform 0.2s ease;
}

.retailer-link:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .retailer-links {
        grid-template-columns: 1fr;
    }
}

/* ... rest of the CSS styles ... */

.browse-more-btn {
    background-color: #99d2ed;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
    transition: opacity 0.3s ease;
}

.browse-more-btn:hover {
    opacity: 0.9;
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.gallery-item {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Creates a square aspect ratio */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: #f5f5f5;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.back-btn {
    background-color: #99d2ed;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 20px 0;
}

.back-btn:hover {
    opacity: 0.9;
}

/* Update quiz result image styles */
.style-image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 15px;
    background-color: #f5f5f5;
}