/* Main carousel container */


.uniquedcc-carousel-container-outermost {
    background: #003563;
}

.carousel-featured-title {
    color: white;
    text-align: center;
    padding-top: 10px;
    font-size: 5vw;
    font-family: 'Poppins', 'Roboto Condensed', Helvetica, Arial, sans-serif;
}
.uniquedcc-carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Main Navigation section */
.uniquedcc-carousel-wrapper {
    position: relative;
    margin-bottom: 30px;
    padding: 0 40px;
    border-radius: 10px;
    background: #f6fbff;
}

.uniquedcc-carousel-images {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.uniquedcc-carousel-images::-webkit-scrollbar {
    display: none;
}

/* Main Navigation arrows */
.uniquedcc-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 20px;
}

.uniquedcc-nav-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.uniquedcc-nav-arrow:disabled {
    background: rgba(0, 0, 0, 0.2);
    cursor: not-allowed;
}

.uniquedcc-nav-arrow.uniquedcc-prev {
    left: 0;
}

.uniquedcc-nav-arrow.uniquedcc-next {
    right: 0;
}

/* Individual carousel images */
.uniquedcc-carousel-img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    flex-shrink: 0;
    border: 2px solid transparent;
    border-radius: 4px;
}

.uniquedcc-carousel-img:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.uniquedcc-carousel-img.active {
    opacity: 1;
    border: 2px solid #007bff;
    transform: scale(1.05);
}

/* Content sections */
.uniquedcc-content-sections {
    margin-top: 30px;
    
}

.uniquedcc-content-section {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.uniquedcc-content-section.active {
    display: block;
    opacity: 1;
    animation: uniquedcc-fadeIn 0.3s ease;
}

/* 
*
* Gallery Carousel 
*
*
*/

.uniquedcc-gallery-carousel {
    position: relative;
    margin: 20px 0;
    padding: 0;
    max-width: 90%; /* Default desktop width */
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    overflow: hidden;
}

.uniquedcc-gallery-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.uniquedcc-gallery-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.3s ease-in-out;
}

.uniquedcc-gallery-item {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.uniquedcc-gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f5f5f5;
}

/* Gallery Navigation */
.uniquedcc-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 18px;
    margin: 0 10px;
}

.uniquedcc-gallery-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.uniquedcc-gallery-nav:disabled {
    background: rgba(0, 0, 0, 0.2);
    cursor: not-allowed;
}

.uniquedcc-gallery-nav.uniquedcc-gallery-prev {
    left: 0;
}

.uniquedcc-gallery-nav.uniquedcc-gallery-next {
    right: 0;
}

/* Animation keyframes */
@keyframes uniquedcc-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading State */
.uniquedcc-loading {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uniquedcc-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: uniquedcc-spin 1s linear infinite;
}

@keyframes uniquedcc-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}









/* CTA button styles */

.uniquedcc-cta-button {
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
    font-family: 'Poppins', 'Roboto Condensed', Helvetica, Arial, sans-serif;
}

/* Add focus styles for accessibility but remove outline */
.uniquedcc-cta-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25); /* Accessible focus indicator */
}

.uniquedcc-quote-btn {
    background-color: #28a745;
    color: white;
    border: none;
}

.uniquedcc-quote-btn:hover {
    background-color: #218838;
}

.uniquedcc-finance-btn {
    background-color: #dc3545;
    color: white;
    border: none;
}

.uniquedcc-finance-btn:hover {
    background-color: #c82333;
}

.uniquedcc-call-btn {
    background-color: #007bff;
    color: white;
    border: none;
}

.uniquedcc-call-btn:hover {
    background-color: #0056b3;
}




/* 
*
* Lightbox styles for when clicked to expand 
*
*
*/
.uniquedcc-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    cursor: pointer;
}

.uniquedcc-lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: uniquedcc-fadeIn 0.3s ease;
}

.uniquedcc-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: 20px;
    cursor: default;
}

.uniquedcc-lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.uniquedcc-lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 30px;
    height: 30px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    transition: all 0.3s ease;
}

.uniquedcc-lightbox-close:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}


/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .uniquedcc-lightbox-close {
        top: 10px;
        right: 10px;
    }
}




/* Responsive styles */
@media screen and (max-width: 768px) {
    .uniquedcc-carousel-container {
        padding: 10px;
    }

    .uniquedcc-carousel-wrapper {
        
    }

    .uniquedcc-carousel-img {
        width: 150px;
        height: 120px;
    }

    .uniquedcc-nav-arrow {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .uniquedcc-content-section {
        padding: 15px;
    }

    .uniquedcc-gallery-carousel {
        max-width: 100vw;
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
    }

    .uniquedcc-gallery-item img {
        object-fit: contain; /* Maintain aspect ratio while filling width */
        padding: 0;
    }
    
    .uniquedcc-gallery-nav {
        margin: 0 15px;
    }
   
}

@media screen and (max-width: 480px) {

    .uniquedcc-gallery-carousel {
        margin-left: -10px;
        margin-right: -10px;
    }

    .uniquedcc-carousel-wrapper {
        padding: 0 30px;
    }

    .uniquedcc-gallery-wrapper {
        padding-top: 75%; /* Maintain 4:3 aspect ratio */
    }

    .uniquedcc-carousel-img {
        width: 120px;
        height: 90px;
    }

    .uniquedcc-nav-arrow {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .uniquedcc-content-section {
        padding: 10px;
    }

    .uniquedcc-gallery-nav {
        width: 32px;
        height: 32px;
        margin: 0 10px;
        background: rgba(0, 0, 0, 0.6);
    }
}

/* Accessibility */
.uniquedcc-nav-arrow:focus,
.uniquedcc-gallery-nav:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.uniquedcc-carousel-img:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
    opacity: 0.9;
}

/* Print styles */
@media print {
    .uniquedcc-carousel-navigation,
    .uniquedcc-gallery-nav {
        display: none;
    }

    .uniquedcc-content-section {
        display: block !important;
        opacity: 1 !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .uniquedcc-gallery-track {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        transform: none !important;
    }

    .uniquedcc-gallery-item {
        opacity: 1 !important;
    }
}



/* 
*
*Inline Form Containers 
*
*/
.uniquedcc-inline-form {
    margin: 20px 0;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
    display: none;
}

.uniquedcc-inline-form h3 {
    text-align: center;
    font-size: 50px; /* Adjust the size as needed */
    font-weight: bold;
    color: #333; /* Adjust the color as needed */
    margin-bottom: 20px; /* Optional spacing */
}

/* Form Styles */
.uniquedcc-inline-form .wpcf7-form {
    max-width: 100%;
    margin: 0 auto;
}

.uniquedcc-inline-form .wpcf7-form input[type="text"],
.uniquedcc-inline-form .wpcf7-form input[type="email"],
.uniquedcc-inline-form .wpcf7-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.uniquedcc-inline-form .wpcf7-submit {
    background: #007bff;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.uniquedcc-inline-form .wpcf7-submit:hover {
    background: #0056b3;
}

/* Form Animation */
.uniquedcc-inline-form {
    transition: all 0.3s ease-in-out;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .uniquedcc-inline-form {
        padding: 15px;
    }

    .uniquedcc-inline-form h3 {
        font-size: 20px;
    }
}









/* lazy loading css */
.uniquedcc-gallery-item img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.uniquedcc-gallery-item img.lazy {
    opacity: 0;
}

.uniquedcc-gallery-item img.lazy.loaded {
    opacity: 1;
}

/* Loading placeholder */
.uniquedcc-gallery-item img.lazy:not(.loaded):not(.error) {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}