/* Summary section styles */
.summary-section {
    margin: 20px 0 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.summary-section h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: var(--heading-font);
}

.summary-content {
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e0e0e0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    flex: 0 0 120px;
    font-weight: 600;
    color: var(--secondary-color);
}

.summary-value {
    flex: 1;
    color: #555;
}

/* Small button variant */
.btn-sm {
    padding: 8px 15px;
    font-size: 14px;
}

@media (max-width: 767px) {
    .summary-section {
        padding: 15px;
    }
    
    .summary-item {
        flex-direction: column;
    }
    
    .summary-label {
        flex: 0 0 auto;
        margin-bottom: 5px;
    }
}/* Base styles with mobile-first approach */
:root {
    --primary-color: #27ae60; /* Green from the GEO PLY logo */
    --secondary-color: #333;
    --background-color: #fff;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --text-color: #333;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
    --hover-shadow: none;
    --card-shadow: none;
    --hover-outline-color: #27ae60;
    --heading-font: 'Sansita', sans-serif;
    --body-font: 'Nunito Sans', sans-serif;
}

* {
    box-sizing: border-box;
    font-family: inherit;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

/* Summary section styles */
.summary-section {
    margin: 20px 0 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.summary-section h3 {
    margin-top: 0;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: var(--heading-font);
}

.summary-content {
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e0e0e0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    flex: 0 0 120px;
    font-weight: 600;
    color: var(--secondary-color);
}

.summary-value {
    flex: 1;
    color: #555;
}

/* Small button variant */
.btn-sm {
    padding: 8px 15px;
    font-size: 14px;
}

.form-container {
    max-width: 100%;
    padding: 20px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-family: var(--heading-font);
}

.form-subtitle {
    font-size: 18px;
    color: #666;
    font-family: var(--body-font);
    font-weight: 400;
}

/* Progress bar styles */
.progress-container {
    margin-bottom: 40px;
}

.progress-bar {
    height: 10px;
    background-color: #E6E6E6;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    width: 0%; /* Start at 0% width */
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.progress-step {
    font-size: 16px;
    color: #999;
}

.progress-step.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Update step content to match new page structure */
.progress-steps .progress-step:nth-child(1)::after {
    content: 'Project Type';
}

.progress-steps .progress-step:nth-child(2)::after {
    content: 'Build Details';
}

.progress-steps .progress-step:nth-child(3)::after {
    content: 'Contact';
}

/* Form pages */
.form-page {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    pointer-events: none;
}

.form-page.active {
    display: block !important;
    opacity: 1;
    visibility: visible;
    position: relative;
    pointer-events: auto;
    animation: formPageFadeIn 0.5s ease;
}

@keyframes formPageFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Page title styling */
.form-page h2 {
    font-family: var(--heading-font);
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Section headings */
.form-page h3 {
    font-family: var(--heading-font);
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Card selection styles */
.card-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

.card-option {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--background-color);
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
    overflow: visible;
    height: 100%;
    min-height: 200px; /* Ensure consistent minimum height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.card-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}

.card-option.selected {
    border-color: var(--primary-color);
    border-width: 2px;
    background-color: rgba(39, 174, 96, 0.05);
    box-shadow: 0px 5px 15px rgba(39, 174, 96, 0.2);
    /* Adjust padding to account for thicker border to prevent layout shift */
    padding: 29px;
}

.card-option.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.card-option.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f0f0f0;
    border-color: #ccc;
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.card-title {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 22px;
    font-family: var(--heading-font);
    width: 100%; /* Ensure title takes full width */
    text-align: center; /* Ensure centered text */
}

.card-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 0;
    line-height: 1.5;
    max-width: 100%; /* Allow description to use full width */
    width: 100%; /* Ensure description takes full width */
    text-align: center; /* Ensure centered text */
    font-family: var(--body-font);
}

.tooltip {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    cursor: help;
}

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: #ddd;
    color: #666;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
}

.tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
    pointer-events: none;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Form controls */
.form-group {
    margin-bottom: 20px;
}

/* Dimensions row for length, width, height */
.dimensions-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.dimensions-row .form-group {
    margin-bottom: 0;
}

/* Style for conditional fields */
.conditional-field {
    transition: all 0.3s ease;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-family: var(--body-font);
}

/* Dimension labels styling */
.dimensions-row label {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-family: var(--heading-font);
}

.required {
    color: var(--error-color);
    margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    font-family: var(--body-font);
}

/* Custom select styling */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%2327ae60' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 40px;
    cursor: pointer;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 3px 8px rgba(39, 174, 96, 0.15);
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
textarea:hover,
select:hover {
    border-color: #bdbdbd;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* Style for dimensions dropdowns */
.dimensions-row select {
    border-radius: 8px;
    font-weight: 500;
    padding: 14px;
    padding-right: 40px;
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    text-align-last: center;
    text-align: center;
    -webkit-text-align-last: center;
    -moz-text-align-last: center;
    color: var(--secondary-color);
    transition: all 0.25s ease;
    height: 52px;
    font-family: var(--body-font);
}

/* Style for selected option */
.dimensions-row select option {
    text-align: left;
    font-weight: normal;
}

/* Custom select arrow position adjustment */
.dimensions-row select {
    background-position: right 15px center;
}

.dimensions-row select:focus {
    transform: translateY(-2px);
    background-color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.2);
}

/* Animation for select dropdown */
@keyframes selectPulse {
    0% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(39, 174, 96, 0); }
    100% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
}

.dimensions-row select:active {
    animation: selectPulse 0.5s cubic-bezier(0.66, 0, 0.33, 1);
}

.error-message {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.error-message.visible {
    display: block;
}

/* Button styles */
.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.left-buttons {
    display: flex;
    gap: 15px;
}

.right-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.restart-button-container {
    margin-top: 20px;
    text-align: center;
}

.btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border-radius: 40px;
    font-family: var(--body-font);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #229954;
    transform: translateY(-2px);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: #f5f5f5;
    color: var(--secondary-color);
    border: none;
    border-radius: 40px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

.btn-bookmark {
    background: none;
    color: var(--primary-color);
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-bookmark:hover {
    color: #229954;
    transform: scale(1.1);
}

.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Carousel styles */
.carousel-container {
    margin: 20px 0;
    width: 100%;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.carousel-options {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
    padding: 20px 0;
    gap: 20px;
    width: 100%;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none; /* Hide scrollbar in IE and Edge */
    scrollbar-width: none; /* Hide scrollbar in Firefox */
    position: relative; /* Needed for mask effects */
    scroll-padding-left: 0; /* Add this to ensure proper scrolling on mobile */
}

.carousel-options::-webkit-scrollbar {
    display: none; /* Hide scrollbar in Chrome, Safari, and Opera */
}

.carousel-item {
    flex: 0 0 auto;
    width: calc(33.333% - 14px); /* Default for desktop - 3 items */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    scroll-snap-align: start; /* Changed from center to start for better preview effect */
    cursor: pointer;
    position: relative; /* Ensure position relative for absolute positioning of checkmark */
}

.carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.carousel-item-image {
    width: 100%;
    height: 120px;
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.carousel-item-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.placeholder-image {
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #999;
}

.carousel-item-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
    font-family: var(--heading-font);
}

.carousel-item-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    font-family: var(--body-font);
    white-space: pre-line; /* This will respect the \n line breaks */
    min-height: 42px; /* Add minimum height to accommodate two lines */
}

.carousel-item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 8px;
    font-family: var(--body-font);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.carousel-prev {
    left: 0px;
}

.carousel-next {
    right: 0px;
}

.carousel-nav:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Quantity controls */
.quantity-control {
    display: none;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.carousel-item-has-quantity .quantity-control {
    display: flex;
    border-radius: 4px;
    padding: 2px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--primary-color);
    background-color: rgba(39, 174, 96, 0.05);
    color: var(--primary-color);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.quantity-btn:first-child {
    border-radius: 8px 0 0 8px;
}

.quantity-btn:last-child {
    border-radius: 0 8px 8px 0;
}

.quantity-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Style for the remove (X) button */
.quantity-btn.quantity-remove {
    color: #e74c3c;
    font-weight: bold;
    font-size: 18px;
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.05);
}

.quantity-btn.quantity-remove:hover {
    background-color: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.quantity-input {
    width: 40px;
    height: 30px;
    text-align: center;
    border: 1px solid var(--primary-color);
    border-left: none;
    border-right: none;
    font-size: 14px;
    padding: 0;
    transition: all 0.3s ease;
    font-weight: bold;
    background-color: rgba(39, 174, 96, 0.05);
    color: var(--primary-color);
    /* Remove spinner arrows */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-has-value {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    background-color: rgba(39, 174, 96, 0.05) !important;
}

.carousel-item-has-quantity {
    position: relative !important;
    border-color: var(--primary-color) !important;
    border-width: 2px !important;
    background-color: rgba(39, 174, 96, 0.05) !important;
    box-shadow: 0px 5px 15px rgba(39, 174, 96, 0.2) !important;
    transform: translateY(-3px) !important;
}

.carousel-options .carousel-item.carousel-item-has-quantity::after {
    content: '✓' !important;
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 24px !important;
    height: 24px !important;
    background-color: var(--primary-color) !important;
    color: white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: bold !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    animation: checkmark-appear 0.3s ease !important;
    z-index: 999 !important; /* Higher z-index to ensure visibility */
    pointer-events: none !important; /* Prevents the checkmark from blocking clicks */
}

@keyframes checkmark-appear {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Styles for selected carousel items (cladding/roofing) */
.carousel-item-selected {
    position: relative !important;
    border-color: var(--primary-color) !important;
    border-width: 2px !important;
    background-color: rgba(39, 174, 96, 0.05) !important;
    box-shadow: 0px 5px 15px rgba(39, 174, 96, 0.2) !important;
    transform: translateY(-3px) !important;
}

.carousel-options .carousel-item.carousel-item-selected::after {
    content: '✓' !important;
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 24px !important;
    height: 24px !important;
    background-color: var(--primary-color) !important;
    color: white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: bold !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    animation: checkmark-appear 0.3s ease !important;
    z-index: 999 !important; /* Higher z-index to ensure visibility */
    pointer-events: none !important; /* Prevents the checkmark from blocking clicks */
}

/* Utility classes */
.mt-20 {
    margin-top: 20px;
}

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

.text-right {
    text-align: right;
}

/* Responsive styles */
@media (min-width: 768px) {
    .form-container {
        max-width: 700px;
        padding: 30px;
    }
    
    .card-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-option {
        min-height: 220px;
    }
    
    /* Ensure dimensions row stays as a grid on tablet and above */
    .dimensions-row {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Roof type label styles for skylights */
    .roof-type-label {
        position: absolute;
        top: 10px;
        right: 10px;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 600;
        color: white;
        z-index: 2;
    }
    
    .mono-pitch-label {
        background-color: var(--primary-color);
    }
    
    .double-pitch-label {
        background-color: var(--secondary-color);
    }
    
    /* Make sure carousel items have relative positioning for absolute positioning of labels */
    .carousel-item {
        position: relative;
    }
}

/* Hide carousel nav arrows on mobile and tablet */
@media (max-width: 991px) {
    .carousel-nav {
        display: none;
    }
    
    /* Show a semi-translucent preview of the next item */
    .carousel-options {
        padding-right: 80px; /* Add space to show the preview item */
        mask-image: linear-gradient(to right, rgba(0,0,0,1) 85%, rgba(0,0,0,0));
        -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 85%, rgba(0,0,0,0));
        /* Enhance touch scrolling */
        -webkit-overflow-scrolling: touch;
        cursor: grab;
    }
    
    /* Style for active scrolling */
    .carousel-options:active {
        cursor: grabbing;
    }
    
    /* Add a subtle indicator to the carousel wrapper to show it's scrollable */
    .carousel-wrapper::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='%2327ae60' viewBox='0 0 24 24'><path d='M10 17l5-5-5-5v10z'/></svg>");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 24px;
        opacity: 0.6;
        pointer-events: none;
        z-index: 10;
        animation: bounceRight 1.5s infinite ease-in-out;
    }
    
    /* Animation for the scroll indicator */
    @keyframes bounceRight {
        0%, 100% { transform: translateY(-50%) translateX(0); }
        50% { transform: translateY(-50%) translateX(5px); }
    }
    
    /* Hide the scroll indicator when at the end of the carousel */
    .carousel-wrapper.at-end::after {
        display: none;
    }
}

/* Mobile styles */
@media (max-width: 767px) {
    /* Show 1 full item on mobile with preview of next item */
    .carousel-item {
        width: calc(95% - 20px);
        scroll-snap-align: start;
    }
    
    /* Adjust the mask to show more of the preview item */
    .carousel-options {
        mask-image: linear-gradient(to right, rgba(0,0,0,1) 75%, rgba(0,0,0,0));
        -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 75%, rgba(0,0,0,0));
        padding-right: 60px; /* Less padding for mobile */
    }
    
    /* Make the scroll indicator more prominent on mobile */
    .carousel-wrapper::after {
        right: 5px;
        opacity: 0.7;
    }
    
    /* Adjust summary styles for mobile */
    .summary-section {
        padding: 15px;
    }
    
    .summary-item {
        flex-direction: column;
    }
    
    .summary-label {
        flex: 0 0 auto;
        margin-bottom: 5px;
    }
    
    /* On mobile, stack the dimensions in a single column */
    .dimensions-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Adjust dimensions dropdown styling on mobile */
    .dimensions-row select {
        max-width: 100%;
        padding: 12px;
        font-size: 16px;
        height: 48px;
    }
    
    .dimensions-row label {
        font-size: 16px;
        margin-bottom: 8px;
    }
}

@media (min-width: 992px) {
    .form-container {
        max-width: 900px;
    }
    
    .card-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .card-option {
        min-height: 240px;
    }
}

/* Standard Specifications Section Styles */
.standard-specs-section {
    margin-top: 3rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.standard-specs-section h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #333;
}

.standard-specs-section p {
    margin-bottom: 1.5rem;
    color: #666;
}

.standard-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.standard-spec-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.standard-spec-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.standard-spec-image {
    height: 180px;
    overflow: hidden;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
}

.standard-spec-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.standard-spec-card:hover .standard-spec-image img {
    transform: scale(1.05);
}

.standard-spec-content {
    padding: 1rem;
}

.standard-spec-content h4 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: #333;
}

.standard-spec-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Fix for the spec cards on mobile */
@media (max-width: 768px) {
    .standard-specs-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .standard-spec-image {
        height: 140px;
    }
    
    .standard-spec-content h4 {
        font-size: 1rem;
    }
}

/* Self Build Type popup styling */
#selfBuildTypeContainer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    padding: 30px;
    border: 2px solid #f1f1f1;
    animation: popupFadeIn 0.3s ease-in-out;
    z-index: 1100; /* Increased z-index to ensure it's above all other content */
    max-width: 600px;
    width: 90%;
}

#selfBuildTypeOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1090; /* Just below the popup but above everything else */
    display: none;
}

#selfBuildTypeContainer .section-title {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
    color: #333;
    font-size: 22px;
    font-family: var(--heading-font);
}

#selfBuildTypeContainer .card-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-direction: row;
}

@media (max-width: 767px) {
    #selfBuildTypeContainer .card-options {
        flex-direction: column;
    }
}

@keyframes popupFadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -55%);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Styles for the selected self build type badge */
.selected-type-badge {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    z-index: 10;
    animation: badgeAppear 0.3s forwards;
}

@keyframes badgeAppear {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Class to ensure popup containers stay on top */
.popup-container {
    z-index: 1100;
}

/* Make sure the card position is relative for badge positioning */
.card-option {
    position: relative;
}

/* Adjust the overlay z-index to be below the popup */
#selfBuildTypeOverlay {
    z-index: 999;
}
