:root {
    --primary-font: 'Outfit', sans-serif;
    --secondary-font: 'Inter', sans-serif;
    --bg-color: #f7f4ee;
    --text-main: #1a1a1a;
    --text-muted: #666;
    --accent-green: #2d5a27;
    --card-radius: 16px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.terrace-configurator-container {
    font-family: var(--secondary-font);
    background-color: var(--bg-color);
    color: var(--text-main);
    padding: 60px 20px;
    min-height: 100vh;
}

.config-header-main {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.config-header-main .subtitle {
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.config-header-main h1 {
    font-family: var(--primary-font);
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 20px;
    line-height: 1.1;
}

.config-header-main h1 i.accent {
    font-style: italic;
    color: var(--accent-green);
    font-weight: 300;
}

.config-header-main .description {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
}

.step-title-section {
    text-align: center;
    margin-bottom: 40px;
}

.step-title-section h2 {
    font-family: var(--primary-font);
    font-size: 32px;
    margin-bottom: 10px;
}

.step-title-section p {
    color: var(--text-muted);
    font-size: 16px;
}

.style-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 1500px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .style-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .style-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .style-grid {
        grid-template-columns: 1fr;
    }
}

.style-card {
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
    aspect-ratio: 2 / 1.5;
    cursor: pointer;
    background: #fff;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.style-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.style-card .card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.style-card:hover .card-bg {
    transform: scale(1.05);
}

.style-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.8) 100%);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    z-index: 2;
}



.style-card h3 {
    margin: 0;
    font-family: var(--primary-font);
    font-size: 20px;
    font-weight: 600;
}

.style-card p {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
}

.style-card .link {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.style-card:hover .link {
    gap: 12px;
}

/* Step 2 Styles */
.step-navigation {
    margin-bottom: 30px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.back-btn {
    background: none;
    border: none;
    font-family: var(--secondary-font);
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
}

.back-btn:hover {
    color: var(--text-main);
    transform: translateX(-5px);
}

.style-details-hero {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto 30px;
    align-items: flex-start;
    position: relative;
}

.style-details-left {
    flex: 1;
}

.style-details-right {
    flex: 1;
    position: sticky;
    top: 100px;
}

.video-player-box {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 14;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.style-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder-container {
    background: #fff;
    border-radius: 12px;
    aspect-ratio: 16 / 14;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #ccc;
    text-align: center;
}

.video-placeholder-container .icon-placeholder {
    width: 200px;
    height: 160px;
    margin-bottom: 20px;
    opacity: 0.2;
}

.video-placeholder-container span {
    font-size: 42px;
    font-weight: 500;
    color: #bbb;
    font-family: var(--secondary-font);
}

.style-header-view {
    text-align: left;
    margin-bottom: 40px;
}

.style-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 82px;
    font-weight: 400;
    margin: 0;
    color: #1a1a1a;
    line-height: 0.9;
}

.style-slogan {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    line-height: 1;
    font-size: 28px;
    color: #888;
    margin-top: 10px;
    margin-bottom: 30px;
}

.style-info-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 25px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.scroll-hint {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 25px 5px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    user-select: none;
    z-index: 1000;
    pointer-events: none;
}

.scroll-text {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    font-family: var(--secondary-font);
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow svg {
    width: 100%;
    height: 100%;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: translateY(8px);
        opacity: 1;
    }
}

.info-section h4 {
    font-size: 11px;
    font-weight: 700;
    color: #4db38a;
    margin: 0 0 10px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-section p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    color: #444;
}

.info-divider {
    height: 1px;
    background: #f5f5f5;
    width: 100%;
}

.style-elements-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.style-elements-list li {
    font-size: 15px;
    position: relative;
    padding-left: 18px;
    color: #444;
}

.style-elements-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #333;
    font-size: 18px;
    line-height: 1;
    top: -1px;
}

.maintenance-banner {
    text-align: left;
    border-top: 1px solid #eee;
    padding: 20px 0;
    margin: 50px auto 30px;
    max-width: 1400px;
    color: #888;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.maintenance-banner p {
    margin: 0;
}

.materials-section {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.decor-line {
    width: 3px;
    height: 18px;
    background: #4db38a;
    border-radius: 2px;
}

.section-title-wrapper h3 {
    font-size: 12px;
    font-weight: 700;
    color: #666;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0;
}

.material-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.material-card {
    position: relative;
    height: 420px;
    background: #111;
    border-radius: 10px;
}

.material-card.recommended {
    border: 2px solid #4db38a;
    box-shadow: 0 10px 40px rgba(77, 179, 138, 0.2);
    animation: recommendedGlow 3s ease-in-out infinite;
}

@keyframes recommendedGlow {

    0%,
    100% {
        box-shadow: 0 10px 40px rgba(77, 179, 138, 0.2);
    }

    50% {
        box-shadow: 0 10px 60px rgba(77, 179, 138, 0.4);
    }
}

.recommended-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #4db38a 0%, #2d5a27 100%);
    color: #fff;
    padding: 6px 14px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.material-card:hover {
    transform: translateY(-8px);
    transition: all .3s ease-in-out;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
}

.material-img-wrapper {
    border-radius: 10px;
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.main-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.p1-inset-box {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 140px;
    height: 140px;
    background: #d9d9d9;
    border-radius: 8px;
    overflow: hidden;
    z-index: 5;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.p1-inset-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.material-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.95) 100%);
}

.material-info {
    padding: 30px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    color: #fff;
}

.material-info .brand {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #ccc;
    display: block;
    margin-bottom: 6px;
}

.material-info h4 {
    font-family: var(--primary-font);
    font-size: 27px;
    margin: 0 0 4px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.material-info .subtitle {
    font-size: 12px;
    color: #ccc;
    margin-bottom: 20px;
    min-height: auto;
    line-height: 1.3;
    font-weight: 300;
}

.card-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin-bottom: 5px;
    width: 100%;
}

.material-info .price-row {
    padding-top: 0;
    display: flex;
    flex-direction: column;
}

.material-info .price {
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -0.2px;
}

.material-info .view-file {
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    font-weight: 300;
    opacity: 0.8;
    transition: opacity 0.3s;
    margin-top: 5px;
}

.material-info .view-file:hover {
    opacity: 1;
}

@media (max-width: 1024px) {
    .style-details-hero {
        flex-direction: column;
        margin-bottom: 60px;
    }

    .style-details-right {
        position: static;
        width: 100%;
    }

    .style-title {
        font-size: 64px;
    }

    .material-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .style-title {
        font-size: 56px;
    }

    .material-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Modal Styles */
.product-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: flex-end;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.product-modal.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    background: #fff;
    height: 100%;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-modal.active .modal-container {
    transform: translateX(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: #fff;
    transform: rotate(90deg);
}

.product-hero {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 40px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent);
}

.hero-title {
    position: relative;
    z-index: 2;
    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    font-size: 64px;
    margin: 0;
    font-weight: 300;
}

.product-spec-content {
    padding: 5px 40px 20px;
}

.product-full-desc {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
}

.product-quote-box {
    background: #f0faf5;
    border-left: 4px solid #4db38a;
    padding: 25px;
    margin-bottom: 40px;
    border-radius: 0 12px 12px 0;
}

.product-quote-box p {
    font-style: italic;
    font-size: 16px;
    line-height: 1.6;
    color: #2d5a27;
    margin: 0;
}

.product-intro {
    margin-bottom: 40px;
}

.specs-main-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.specs-secondary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 0;
    padding-bottom: 10px;
}

.spec-col label,
.spec-item-box label,
.special-pieces-section label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-list li {
    font-size: 15px;
    color: #333;
    margin-bottom: 6px;
    font-weight: 500;
}

.spec-list.check-list li {
    position: relative;
    padding-left: 20px;
}

.spec-list.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4db38a;
    font-weight: bold;
}

.tag-cloud,
.use-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item,
.use-tag {
    background: #f0faf5;
    color: #4db38a;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(77, 179, 138, 0.15);
    transition: var(--transition);
}

.tag-item:hover,
.use-tag:hover {
    background: #4db38a;
    color: #fff;
}

.spec-value {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    display: block;
}

.special-pieces-section {
    padding-top: 0px;
    border-top: none;
}

.pieces-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.piece-tag {
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    color: #444;
    transition: var(--transition);
}

.piece-tag:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
    background: #f0faf5;
}

@media (max-width: 768px) {
    .modal-container {
        max-width: 100%;
    }

    .hero-title {
        font-size: 48px;
    }

    .specs-main-grid,
    .specs-secondary-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Combinations Section */
.combinations-section {
    max-width: 1400px;
    margin: 80px auto 40px;
}

.combinations-header {
    margin-bottom: 30px;
}

.combinations-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 400;
    margin: 0 0 5px;
    color: #1a1a1a;
}

.combinations-header p {
    font-size: 16px;
    color: #888;
    margin: 0;
}

.combinations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.combination-card {
    background: #e1ddd5;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1.2 / 1;
    position: relative;
    transition: var(--transition);
    border: 2px solid transparent;
}

.combination-card:nth-child(2) {
    border-color: #1a1a1a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.combination-img-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.combination-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.combination-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 16px;
    z-index: 0;
}

.combination-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #1a9e75;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 10;
    white-space: nowrap;
}

/* Multi-thumbnail for combinations */
.combo-multi-thumb {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 140px;
    z-index: 10;
    pointer-events: none;
    border-radius: 0 0 0 10px;
    overflow: hidden;
    box-shadow: -5px 5px 25px rgba(0, 0, 0, 0.1);
}

.combo-thumb-item {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.combo-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Diagonal split for 2 images */
.combo-thumb-item:nth-child(1) {
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    z-index: 2;
}

.combo-thumb-item:nth-child(2) {
    clip-path: polygon(0 0, 0 100%, 100% 100%);
    z-index: 1;
}

/* If there is only one image, don't clip */
.combo-thumb-item:only-child {
    clip-path: none;
}

/* Adjust if more than 2, but we usually expect 2 */
.combo-thumb-item:nth-child(n+3) {
    display: none;
}

/* Hide badge if thumb exists to avoid overlap */
.combo-multi-thumb+.combination-badge {
    display: none;
}

.combination-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 1;
}

.combination-info {
    padding: 25px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    color: #fff;
}

.combination-info .label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #ccc;
    display: block;
    margin-bottom: 6px;
}

.combination-info h4 {
    font-family: var(--primary-font);
    font-size: 28px;
    margin: 0 0 10px;
    font-weight: 400;
    line-height: 1;
}

.combination-info .products-list {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.combination-info .product-item {
    font-size: 13px;
    color: #bbb;
    display: flex;
    align-items: center;
    gap: 8px;
}

.combination-info .product-item::before {
    content: "+";
    color: #4db38a;
    font-weight: bold;
}

@media (max-width: 1024px) {
    .combinations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .combinations-header h3 {
        font-size: 32px;
    }
}


/* =============================================
   Final Step / Quote Request
   ============================================= */
.final-step-view {
    padding: 0;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.final-step-header {
    padding: 40px 40px 30px;
    border-bottom: 1px solid #f0f0f0;
}

.final-step-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #4db38a;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.final-step-header h2 {
    font-family: var(--primary-font);
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a1a1a;
    line-height: 1.2;
}

.final-step-header p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* Selection Box */
.final-selection-box {
    margin: 0;
    padding: 24px 40px;
    background: #f8f8f6;
    border-bottom: 1px solid #eee;
}

.final-selection-title {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.final-selection-cards {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.final-sel-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 10px 16px 10px 10px;
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.final-sel-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.final-sel-thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    background-color: #e0e0e0;
}

.final-sel-thumb--empty {
    background-color: #ddd;
    background-image: none;
}

.final-sel-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.final-sel-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #aaa;
    text-transform: uppercase;
}

.final-sel-value {
    font-size: 14px;
    font-weight: 600;
    color: #1a9e75;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

/* Form */
.whatsapp-form {
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 520px) {
    .form-row-2col {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.form-group input {
    padding: 13px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--secondary-font);
    color: #1a1a1a;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder {
    color: #bbb;
}

.form-group input:focus {
    outline: none;
    border-color: #4db38a;
    box-shadow: 0 0 0 3px rgba(77, 179, 138, 0.12);
}

/* WhatsApp CTA */
.btn-send-whatsapp {
    background: #25d366;
    color: #fff;
    border: none;
    padding: 17px 24px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    letter-spacing: 0.3px;
}

.btn-send-whatsapp:hover {
    background: #1dbb58;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.25);
}

/* Back link */
.final-step-back {
    padding: 0 40px 30px;
    text-align: center;
}

.btn-back-to-spec {
    background: none;
    border: none;
    color: #aaa;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    padding: 8px;
    font-family: var(--secondary-font);
}

.btn-back-to-spec:hover {
    color: #555;
}

/* Checkbox Options */
.checkbox-options-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.checkbox-option-card {
    display: flex;
    align-items: center;
    background: #f8f8f6;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px 20px;
    gap: 20px;
    transition: all 0.2s ease;
}

.checkbox-option-card:hover {
    border-color: #4db38a;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.option-images {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.option-images img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.option-info {
    flex: 1;
}

.option-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1a1a1a;
}

.option-info p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.option-info .note {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

.option-checkbox {
    flex-shrink: 0;
}

/* Custom Checkbox Style */
.option-checkbox input[type="checkbox"] {
    display: none;
}

.option-checkbox label {
    display: block;
    width: 28px;
    height: 28px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    background: #fff;
}

.option-checkbox input[type="checkbox"]:checked + label {
    background: #25d366;
    border-color: #25d366;
}

.option-checkbox input[type="checkbox"]:checked + label::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    font-size: 18px;
}

.simulacion-nota {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 25px;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .checkbox-option-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .option-checkbox {
        align-self: flex-end;
    }
}

@media (max-width: 600px) {

    .final-step-header,
    .whatsapp-form,
    .final-step-back {
        padding-left: 24px;
        padding-right: 24px;
    }

    .final-selection-box {
        padding: 20px 24px;
    }

    .final-sel-card {
        min-width: unset;
        flex: 1;
    }
}


/* Modal footer for product spec (SOLICITAR PRESUPUESTO button) */
.modal-footer-actions {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    text-align: center;
}

.terrace-configurator-container .btn-request-quote {
    background: #1a1a1a !important;
    color: #fff !important;
    border: none !important;
    padding: 18px 40px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    width: 100% !important;
    display: block !important;
}

.terrace-configurator-container .btn-request-quote:hover {
    background: #4db38a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 20px rgba(77, 179, 138, 0.2) !important;
}