html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
    background: linear-gradient(135deg, #ffffff 0%, #e0f7fa 100%);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

header {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.animate-pulse {
    animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.section {
    min-height: 100vh;
    padding: 50px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    transition: opacity 0.7s ease;
}

    .section.in-view {
        opacity: 1;
    }

.section-bg-quote {
    background: linear-gradient(135deg, #f2f6fc 0%, #dce9fa 100%);
}

.section-bg-box {
    background: linear-gradient(135deg, #dce9fa 0%, #e1fcf3 100%);
}

.section-bg-stainless {
    background: linear-gradient(135deg, #e1fcf3 0%, #f4dffa 100%);
}

.checkbox-group, .radio-group {
    transition: all 0.4s ease;
}

    .checkbox-group label, .radio-group label {
        transition: transform 0.4s ease, color 0.4s ease;
        display: block;
    }

        .checkbox-group label input[type="checkbox"]:checked + span,
        .radio-group label input[type="radio"]:checked + span {
            transform: scale(1.1);
            color: #2563eb;
        }

        .checkbox-group label input[type="checkbox"],
        .radio-group label input[type="radio"] {
            margin-right: 0.5rem;
            cursor: pointer;
        }

.color-swatch-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 0.25rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
    background-color: #f9fafb;
    overflow-y: auto;
    max-height: 12rem;
}

    .color-swatch-grid div {
        width: 1.5rem;
        height: 1.5rem;
        cursor: pointer;
        border-radius: 9999px;
        transition: transform 0.4s ease;
    }

        .color-swatch-grid div:hover {
            transform: scale(1.2);
            z-index: 10;
        }

.image-slider {
    border: 2px solid #e5e7eb;
    padding: 15px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 8px;
    overflow: visible;
    position: relative;
    z-index: 1;
}

    .image-slider img,
    .small-image-slider img {
        display: block;
        object-fit: contain;
        width: 100%;
        height: auto;
    }

    .image-slider button,
    .small-image-slider button {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(0, 0, 0, 0.5);
        color: white;
        border: none;
        padding: 0.5rem;
        cursor: pointer;
        transition: background-color 0.4s ease;
        z-index: 10;
    }

        .image-slider button:hover,
        .small-image-slider button:hover {
            background-color: rgba(0, 0, 0, 0.8);
        }

        .image-slider button:disabled,
        .small-image-slider button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .image-slider button.left {
            left: 10px;
        }

        .image-slider button.right {
            right: 10px;
        }

.small-image-slider {
    border: 1px solid #d1d5db;
    padding: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 6px;
    overflow: visible;
    position: relative;
    z-index: 1;
    margin-top: 48px;
}

.g-recaptcha {
    display: inline-block;
    min-height: 78px;
    margin: 1rem auto;
}

#viewBuildLink {
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

    #viewBuildLink:hover {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
    }

#submitCheckout {
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

    #submitCheckout:hover {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
    }

input[type="text"], input[type="email"], textarea {
    background-color: #ffffff; /* bg-white for Index.cshtml inputs */
}

.checkbox-group, .radio-group {
    background-color: #ffffff; /* bg-white for Index.cshtml Trailer Sections */
}

input[readonly] {
    background-color: #e5e7eb; /* bg-gray-100 for readonly */
}

#checkoutForm input[type="text"], #checkoutForm textarea, #checkoutForm .checkbox-group, #checkoutForm .radio-group {
    background-color: #e0f7fa; /* Light blue for editable fields */
}

    #checkoutForm .checkbox-group label:hover, #checkoutForm .radio-group label:hover {
        background-color: #bee3f8; /* Darker blue for hover */
    }

    #checkoutForm input[type="text"], #checkoutForm textarea, #checkoutForm .checkbox-group span, #checkoutForm .radio-group span {
        font-size: 1rem; /* text-base */
    }

@media (max-width: 640px) {
    .section {
        padding: 30px 10px;
    }

    .image-slider {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

        .image-slider img {
            max-height: 50vh;
        }

        .image-slider button {
            padding: 0.25rem;
            font-size: 0.75rem;
        }

            .image-slider button.left {
                left: 5px;
            }

            .image-slider button.right {
                right: 5px;
            }

    .small-image-slider {
        width: 100%;
        max-width: 300px;
        margin-top: 44px;
    }

    #viewBuildLink, #submitCheckout {
        font-size: 0.875rem;
        padding: 8px 12px;
    }
}

.loading-skeleton {
    min-height: 100vh;
    background: #f3f4f6;
    display: flex;
    justify-content: center;
    align-items: center;
}

textarea {
    resize: vertical;
    min-height: 100px;
}
