@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Cormorant Garamond", serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

/* Banner Styles */
.banner {
    background-color: #57803a;
    color: #fff;
    text-align: center;
    padding: 12px 20px;
    position: relative;
    font-size: 14px;
    font-weight: 500;
}

.close-banner {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #57803a;
}

/* Navigation Styles */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #57803a;
}

/* Quiz Container */
.quiz-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    /* padding: 3rem 2rem 120px; */
    min-height: calc(100vh - 100px);
}

.quiz-content {
    display: flex;
    gap: 6rem;
    align-items: center;
    height: calc(100vh - 200px);
}

/* Special handling for Step 3 to allow scrolling */
#step3 .quiz-content {
    align-items: center;
    height: calc(100vh - 200px);
}

.quiz-text {
    flex: 1;
    max-width: 450px;
    position: sticky;
    top: 3rem;
    padding-right: 2rem;
}

.quiz-text h1 {
    font-size: clamp(36px, 6.6vw, 64px);
    font-weight: 300;
    line-height: 1.08;
    margin-bottom: 1.5rem;
    color: #2c2c2c;
    font-family: "Cormorant Garamond", serif;
}

.quiz-text p {
    font-size: 16px;
    color: #666;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* Scrollable Image Container */
.image-scroll-container {
    flex: 2;
    height: 100%;
    overflow-y: auto;
    padding-right: 1rem;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f9f9f9;
}

.image-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.image-scroll-container::-webkit-scrollbar-track {
    background: #f9f9f9;
    border-radius: 3px;
}

.image-scroll-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.image-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    padding-bottom: 2rem;
    max-width: 800px;
}

.image-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    background-color: #f5f5f5;
}

.image-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.image-item.selected {
    border-color: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.image-item:hover img {
    transform: scale(1.02);
}

/* Selection Overlay */
.selection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.image-item.selected .selection-overlay {
    opacity: 1;
}

.checkmark {
    background-color: white;
    color: #333;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

/* Fixed Footer */
.quiz-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 -1px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
}

/* Step 1 Footer */
.step1-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Step 2 Footer */
.step2-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-rooms-info {
    font-size: 0.9rem;
    color: #000;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skip-btn {
    background-color: transparent;
    color: #000;
    border: 1px solid #000;
    padding: 0.7rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.skip-btn:hover {
    border-color: #999;
    color: #333;
}

.selection-info {
    font-size: 0.95rem;
    color: #000;
    font-weight: 600;
}

.next-btn {
    background-color: #333;
    color: white;
    border: none;
    padding: 0.7rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 400;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
    font-family: inherit;
}

.next-btn:hover:not(:disabled) {
    background-color: #222;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.next-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Step 2 specific next button styling */
#nextBtn2 {
    background-color: #57803a;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 0.8rem 2.5rem;
}

#nextBtn2:hover:not(:disabled) {
    background-color: #75975d;;
}

#nextBtn2:disabled {
    background-color: #e8e8e8;
    color: #999;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .quiz-content {
        flex-direction: column;
        gap: 2rem;
        height: auto;
    }
    
    .quiz-text {
        max-width: none;
        text-align: center;
        position: static;
    }
    
    .image-scroll-container {
        height: 60vh;
        max-height: 500px;
    }
    
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .quiz-container {
        /* padding: 2rem 1rem 120px; */
    }
    
    .quiz-text h1 {
        font-size: 2rem;
    }
    
    .image-scroll-container {
        height: 50vh;
        max-height: 400px;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .skip-btn,
    .next-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .banner {
        font-size: 12px;
        padding: 10px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .quiz-text h1 {
        font-size: 1.8rem;
    }
    
    .quiz-text p {
        font-size: 1rem;
    }
    
    .image-scroll-container {
        height: 45vh;
        max-height: 350px;
    }
    
    .quiz-container {
        /* padding: 1rem 0.5rem 140px; */
    }
    
    .footer-content {
        padding: 0.8rem;
    }
}

/* Quiz Steps */
.quiz-step {
    width: 100%;
}

/* Room Selection Styles */
.room-selection-container {
    flex: 2;
    height: 100%;
    overflow-y: auto;
    padding-right: 1rem;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f9f9f9;
}

.room-selection-container::-webkit-scrollbar {
    width: 6px;
}

.room-selection-container::-webkit-scrollbar-track {
    background: #f9f9f9;
    border-radius: 3px;
}

.room-selection-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.room-selection-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding-bottom: 2rem;
    max-width: 800px;
}

.room-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    background-color: #f5f5f5;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
}

.room-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #ccc;
}

.room-item.selected {
    border-color: #57803a;
    background-color: #75975d;;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.room-item.selected .room-label {
    color: #fff;
}

.room-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.room-label {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

/* Room Counter Styles */
.room-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.room-item.selected .room-counter {
    opacity: 1;
}

.counter-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #57803a;
    background-color: white;
    color: #57803a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.counter-btn:hover {
    background-color: #57803a;
    color: white;
    transform: scale(1.1);
}

.counter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.counter-btn:disabled:hover {
    background-color: white;
    color: #57803a;
}

.room-count {
    font-size: 0.9rem;
    font-weight: bold;
    color: white;
    min-width: 20px;
    text-align: center;
}

/* Remove old overlay styles */
.room-overlay {
    display: none;
}

/* Footer Updates for Step 2 */
.quiz-footer .total-rooms {
    position: absolute;
    right: 120px;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Responsive Design for Room Grid */
@media (max-width: 1024px) {
    .room-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .room-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .room-icon {
        font-size: 2rem;
    }
    
    .room-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .room-grid {
        grid-template-columns: 1fr;
    }
    
    .room-item {
        padding: 0.8rem;
    }
}
/* Step 3 Styles */
.priority-room-container {
    flex: 2;
    height: 100%;
    overflow-y: auto;
    padding-right: 1rem;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f9f9f9;
}

.priority-room-container::-webkit-scrollbar {
    width: 6px;
}

.priority-room-container::-webkit-scrollbar-track {
    background: #f9f9f9;
    border-radius: 3px;
}

.priority-room-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.priority-room-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.priority-room-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding-bottom: 2rem;
    max-width: 800px;
}

.priority-room-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    background-color: #f5f5f5;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
}

.priority-room-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #ccc;
}

.priority-room-item.selected {
    border-color: #57803a;
    background-color: #75975d;;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.priority-room-item .room-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.priority-room-item .room-label {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
    line-height: 1.2;
}

/* View All Toggle */
.view-all-toggle {
    text-align: center;
    margin: 2rem 0;
}

.view-all-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.view-all-btn:hover {
    background-color: #f5f5f5;
    color: #333;
}

.toggle-arrow {
    transition: transform 0.2s ease;
}

.view-all-btn.expanded .toggle-arrow {
    transform: rotate(180deg);
}

.all-rooms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding-top: 1rem;
    max-width: 800px;
    border-top: 1px solid #e0e0e0;
    margin-top: 1rem;
}

/* Step 3 Footer */
.step3-footer {
    display: flex;
    justify-content: center;
    align-items: center;
}

#nextBtn3 {
    background-color: #57803a;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 0.8rem 2.5rem;
}

#nextBtn3:hover:not(:disabled) {
    background-color: #75975d;;
}

#nextBtn3:disabled {
    background-color: #e8e8e8;
    color: #999;
}

/* Responsive Design for Step 3 */
@media (max-width: 1024px) {
    .main-rooms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .all-rooms-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .main-rooms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .all-rooms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .focus-room-item {
        width: 90px;
        height: 90px;
    }
    
    .focus-room-item .room-icon {
        font-size: 2rem;
    }
    
    .focus-room-item .room-label {
        font-size: 0.8rem;
    }
    
    .room-focus-container {
        padding: 1rem 0.5rem;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .main-rooms-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .all-rooms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .focus-room-item {
        width: 80px;
        height: 80px;
    }
    
    .focus-room-item .room-icon {
        font-size: 1.8rem;
    }
    
    .focus-room-item .room-label {
        font-size: 0.7rem;
    }
}
/* Step 3: Room Focus Selection Styles */
.room-focus-container {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem 1rem;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f9f9f9;
    max-height: calc(100vh - 200px); /* Ensure it doesn't exceed viewport */
}

.room-focus-container::-webkit-scrollbar {
    width: 6px;
}

.room-focus-container::-webkit-scrollbar-track {
    background: #f9f9f9;
    border-radius: 3px;
}

.room-focus-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.room-focus-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.main-rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.focus-room-item {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.focus-room-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #57803a;
}

.focus-room-item.selected {
    border-color: #57803a;
    background-color: #75975d;;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(212, 184, 150, 0.3);
}

.focus-room-item.selected .room-label {
   color:#fff
}

.focus-room-item .room-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.focus-room-item .room-label {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
    line-height: 1.2;
}

.focus-room-item .room-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background-color: #57803a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.focus-room-item.selected .room-overlay {
    opacity: 1;
}

.focus-room-item .room-overlay .checkmark {
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
}

/* View All Toggle */
.view-all-toggle {
    margin: 1rem 0;
}

.toggle-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.toggle-btn:hover {
    background-color: #f5f5f5;
    color: #333;
}

.toggle-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.toggle-btn.expanded .toggle-arrow {
    transform: rotate(180deg);
}

/* Expandable Rooms */
.expandable-rooms {
    width: 100%;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}

.expandable-rooms.expanded {
    max-height: none; /* Allow unlimited height */
    opacity: 1;
    overflow: visible; /* Allow content to be visible */
}

.all-rooms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 1rem 0;
    justify-items: center;
    min-height: fit-content;
}

/* Step 4: Form Styles */
.form-container {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.name-form {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.form-group {
    margin-bottom: 2rem;
}

.name-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
    color: #333;
    font-family: inherit;
    transition: all 0.3s ease;
}

.name-input:focus {
    outline: none;
    border-color: #57803a;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(212, 184, 150, 0.1);
}

.name-input::placeholder {
    color: #999;
    font-style: italic;
}

.submit-btn {
    background-color: #57803a;
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    font-family: inherit;
}

.submit-btn:hover:not(:disabled) {
    background-color: #75975d;;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 184, 150, 0.3);
}

.submit-btn:disabled {
    background-color: #e8e8e8;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-option {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #666;
}

.login-link {
    color: #57803a;
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.5rem;
}

.login-link:hover {
    text-decoration: underline;
}

/* Footer visibility is managed by JavaScript */

/* Responsive Design for New Steps */
@media (max-width: 768px) {
    .main-rooms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .all-rooms-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .focus-room-item {
        width: 100px;
        height: 100px;
    }
    
    .focus-room-item .room-icon {
        font-size: 2rem;
    }
    
    .focus-room-item .room-label {
        font-size: 0.8rem;
    }
    
    .name-input {
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
    }
    
    .submit-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .main-rooms-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .all-rooms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .focus-room-item {
        width: 90px;
        height: 90px;
    }
    
    .focus-room-item .room-icon {
        font-size: 1.8rem;
    }
}
/* Step 1.5: Style Selection Styles — Nivanza Visual Quiz */
.style-selection-container {
    flex: 2;
    height: 100%;
    overflow-y: auto;
    padding-right: 1rem;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f9f9f9;
}

.style-selection-container::-webkit-scrollbar { width: 6px; }
.style-selection-container::-webkit-scrollbar-track { background: #f9f9f9; border-radius: 3px; }
.style-selection-container::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
.style-selection-container::-webkit-scrollbar-thumb:hover { background: #999; }

.style-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 2rem;
    max-width: 820px;
}

/* Card wrapper */
.style-card {
    position: relative;
    background-color: #fafafa;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #ebebeb;
    padding: 1.6rem 1.6rem 1.2rem;
}

.style-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.09);
    border-color: #d4b896;
}

.style-card.selected {
    border-color: #57803a;
    background-color: #f4f8f1;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(87,128,58,0.12);
}

/* Header text inside card */
.style-header {
    margin-bottom: 1rem;
}

.style-header h3 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 400;
    color: #2c2c2c;
    margin-bottom: 0.3rem;
    font-family: "Cormorant Garamond", serif;
}

.style-card.selected .style-header h3 { color: #2c2c2c; }

.style-header p {
    font-size: 16px;
    color: #777;
    line-height: 1.6;
    margin: 0;
}

/* 4-image grid */
.style-image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.9rem;
}

.style-img-item {
    aspect-ratio: 1;
    overflow: hidden;
}

.style-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.style-card:hover .style-img-item img {
    transform: scale(1.04);
}

/* Tags row */
.style-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.style-tags span {
    font-size: 0.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    background-color: #f0f0f0;
    color: #555;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: background 0.2s;
}

.style-card.selected .style-tags span {
    background-color: #ddefd4;
    color: #3a6020;
}

/* Checkmark overlay */
.style-overlay {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    background-color: #57803a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 2px 8px rgba(87,128,58,0.3);
}

.style-card.selected .style-overlay { opacity: 1; }

.style-overlay .checkmark {
    color: white;
    font-size: 13px;
    font-weight: bold;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
}

/* Step 1.5 Footer */
.step1_5-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
    .style-image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .style-header h3 { font-size: clamp(28px, 6vw, 36px); }
}

@media (max-width: 480px) {
    .style-cards { gap: 1.4rem; }
    .style-card { padding: 1.2rem 1rem 1rem; }
    .style-header h3 { font-size: clamp(24px, 7vw, 32px); }
    .style-image-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
}
/* Step 5: Email Form Styles (inherits from Step 4) */
.email-form {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.email-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
    color: #333;
    font-family: inherit;
    transition: all 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: #57803a;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(212, 184, 150, 0.1);
}

.email-input::placeholder {
    color: #999;
    font-style: italic;
}

/* Hide footer for step 5 */
.quiz-step#step5 ~ .quiz-footer {
    display: none;
}

/* Step 6: Home Type Selection Styles */
.home-type-container {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.home-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 600px;
    width: 100%;
}

.home-type-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 150px;
}

.home-type-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #57803a;
}

.home-type-item.selected {
    border-color: #57803a;
    background-color: #75975d;;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(212, 184, 150, 0.3);
}
.home-type-item.selected .home-label {
    color:#fff
}

.home-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.home-label {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
    line-height: 1.2;
}

.home-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background-color: #57803a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.home-type-item.selected .home-overlay {
    opacity: 1;
}

.home-overlay .checkmark {
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
}

/* Hide footer for step 6 */
.quiz-step#step6 ~ .quiz-footer {
    display: none;
}

/* Step 7: Rent or Own Selection Styles */
.ownership-container {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.ownership-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 500px;
    width: 100%;
}

.ownership-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 180px;
}

.ownership-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #57803a;
}

.ownership-item.selected {
    border-color: #57803a;
    background-color: #75975d;;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(212, 184, 150, 0.3);
}

.ownership-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}
.ownership-item.selected .ownership-label {
    color: #fff;
}

.ownership-label {
    font-size: 1.2rem;
    color: #333;
    font-weight: 500;
    line-height: 1.2;
}

.ownership-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 28px;
    height: 28px;
    background-color: #57803a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ownership-item.selected .ownership-overlay {
    opacity: 1;
}

.ownership-overlay .checkmark {
    color: white;
    font-size: 14px;
    font-weight: bold;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
}

/* Hide footer for step 7 */
.quiz-step#step7 ~ .quiz-footer {
    display: none;
}

/* Step 8: Space State Selection Styles */
.space-state-container {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.space-state-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 700px;
    width: 100%;
}

.space-state-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 160px;
}

.space-state-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #57803a;
}

.space-state-item.selected {
    border-color: #57803a;
    background-color: #75975d;;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(212, 184, 150, 0.3);
}
.space-state-item.selected .space-label{
    color:#fff
}

.space-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.space-label {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
}

.space-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background-color: #57803a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.space-state-item.selected .space-overlay {
    opacity: 1;
}

.space-overlay .checkmark {
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
}

/* Hide footer for step 8 */
.quiz-step#step8 ~ .quiz-footer {
    display: none;
}

/* Step 9: Timeline Selection Styles */
.timeline-container {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 700px;
    width: 100%;
}

.timeline-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 160px;
}

.timeline-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #57803a;
}

.timeline-item.selected {
    border-color: #57803a;
    background-color: #75975d;;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(212, 184, 150, 0.3);
}
.timeline-item.selected .timeline-label {
    color: #fff;
}

.timeline-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.timeline-label {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background-color: #57803a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.timeline-item.selected .timeline-overlay {
    opacity: 1;
}

.timeline-overlay .checkmark {
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
}

/* Hide footer for step 9 */
.quiz-step#step9 ~ .quiz-footer {
    display: none;
}

/* Step 10: Budget Selection Styles */
.budget-container {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.budget-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    width: 100%;
}

.budget-item {
    position: relative;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    background-color: #f5f5f5;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60px;
}

.budget-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-color: #57803a;
}

.budget-item.selected {
    border-color: #57803a;
    background-color: #75975d;;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 184, 150, 0.2);

}
.budget-item.selected .budget-label {
    color: #fff;
}
.budget-label {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
}

.budget-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background-color: #57803a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.budget-item.selected .budget-overlay {
    opacity: 1;
}

.budget-overlay .checkmark {
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
}

/* Hide footer for step 10 */
.quiz-step#step10 ~ .quiz-footer {
    display: none;
}

/* Step 11: Zip Code Collection Styles */
.zipcode-container {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.zipcode-form {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.zipcode-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
    color: #333;
    font-family: inherit;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 0.1em;
}

.zipcode-input:focus {
    outline: none;
    border-color: #57803a;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(212, 184, 150, 0.1);
}

.zipcode-input::placeholder {
    color: #999;
    font-style: italic;
    letter-spacing: normal;
}

/* Hide footer for step 11 */
.quiz-step#step11 ~ .quiz-footer {
    display: none;
}

/* Responsive Design for Step 11 */
@media (max-width: 768px) {
    .zipcode-input {
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
    }
    
    .submit-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

/* Responsive Design for Step 10 */
@media (max-width: 768px) {
    .budget-grid {
        max-width: 350px;
        gap: 0.8rem;
    }
    
    .budget-item {
        padding: 1.2rem 1.5rem;
        min-height: 50px;
    }
    
    .budget-label {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .budget-grid {
        max-width: 300px;
        gap: 0.6rem;
    }
    
    .budget-item {
        padding: 1rem 1.2rem;
        min-height: 45px;
    }
    
    .budget-label {
        font-size: 0.9rem;
    }
}

/* Responsive Design for Step 9 */
@media (max-width: 768px) {
    .timeline-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 500px;
    }
    
    .timeline-item {
        min-height: 140px;
    }
    
    .timeline-icon {
        font-size: 2.5rem;
    }
    
    .timeline-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .timeline-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 300px;
    }
    
    .timeline-item {
        min-height: 120px;
    }
    
    .timeline-icon {
        font-size: 2rem;
    }
}

/* Responsive Design for Step 8 */
@media (max-width: 768px) {
    .space-state-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 500px;
    }
    
    .space-state-item {
        min-height: 140px;
    }
    
    .space-icon {
        font-size: 2.5rem;
    }
    
    .space-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .space-state-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 300px;
    }
    
    .space-state-item {
        min-height: 120px;
    }
    
    .space-icon {
        font-size: 2rem;
    }
}

/* Responsive Design for Step 7 */
@media (max-width: 768px) {
    .ownership-grid {
        gap: 2rem;
        max-width: 400px;
    }
    
    .ownership-item {
        min-height: 150px;
    }
    
    .ownership-icon {
        font-size: 3rem;
    }
    
    .ownership-label {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .ownership-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 250px;
    }
    
    .ownership-item {
        min-height: 120px;
    }
    
    .ownership-icon {
        font-size: 2.5rem;
    }
}

/* Responsive Design for Step 6 */
@media (max-width: 768px) {
    .home-type-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .home-type-item {
        min-height: 120px;
    }
    
    .home-icon {
        font-size: 2.5rem;
    }
    
    .home-label {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .home-type-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .home-type-item {
        min-height: 100px;
    }
    
    .home-icon {
        font-size: 2rem;
    }
}

/* ── Result Screen ── */
.result-screen {
    width: 100%;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem 5rem;
    background: #faf9f7;
}

.result-inner {
    max-width: 560px;
    width: 100%;
    text-align: center;
}

.result-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #57803a;
    border: 1px solid #57803a;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.result-name {
    font-family: 'Georgia', serif;
    font-size: 2.6rem;
    font-weight: 400;
    color: #2c2c2c;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.result-name span {
    color: #57803a;
    font-style: italic;
}

.result-desc {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.result-img-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.result-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-recommendation {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 1.4rem 1.8rem;
    margin-bottom: 2rem;
    text-align: left;
}

.rec-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #57803a;
    margin-bottom: 0.5rem;
}

.rec-text {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

.result-cta {
    display: inline-block;
    background-color: #57803a;
    color: white;
    text-decoration: none;
    padding: 1rem 2.8rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.result-cta:hover {
    background-color: #3f6029;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(87,128,58,0.25);
}

.result-sub {
    font-size: 0.82rem;
    color: #999;
    margin: 0;
}

@media (max-width: 480px) {
    .result-name { font-size: 2rem; }
    .result-recommendation { padding: 1rem 1.2rem; }
}
