/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Container Styles */
.specials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px;
}

/* Carousel Styles */
.specials-carousel {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    background-color: #fff;
    padding: 20px 0;
}

.specials-carousel-container {
    display: flex;
    transition: transform 0.3s ease-in-out;
}

a {
	text-decoration: none !important;
}

.specials-carousel-item {
    flex: 0 0 calc(100% / 6);
    padding: 10px;
    text-align: center;
    color: #333;
}

.specials-carousel-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.specials-carousel-item p {
    font-size: 14px;
    font-weight: bold;
}

.specials-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    z-index: 1;
}

.specials-carousel-arrow.prev {
    left: 10px;
}

.specials-carousel-arrow.next {
    right: 10px;
}

/* Offer Styles */
.specials-offer {
    border: 1px solid #ddd;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-size: cover;
    background-position: center;
}

.specials-offer-header {
    position: relative;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    padding: 0;
}

.specials-offer-header .specials-logo {
    max-width: 200px;
    margin-right: 15px;
}

.specials-offer-header .specials-header-text {
    flex-grow: 1;
    padding-top: 0;
}

.specials-offer-header h2 {
    font-size: 24px;
    color: #333;
    margin: 0 0 5px 0;
}

.specials-vehicle-specs {
    font-size: 18px;
    color: #666;
    font-weight: 600;
    margin: 0;
}

.specials-price-container {
    text-align: right;
}

.specials-msrp, .specials-selling-price {
    font-size: 18px;
    font-weight: bold;
    color: #666;
    margin: 0;
}

.specials-selling-price {
    color: #28a745;
}

.specials-offer-subheader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 15px;
}

.specials-callout {
    font-size: 18px;
    font-weight: bold;
    color: #28a745;
    margin: 0;
}

.specials-selling-price-mobile {
    display: none;
}

.specials-offer-main-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.specials-offer-image-section {
    flex: 0 0 45%;
    text-align: center;
}

.specials-offer-image-section img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.specials-offer-image-section .specials-view-vehicle {
    display: inline-block;
    padding: 10px 20px;
    background-color: #949599;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.specials-offer-image-section .specials-view-vehicle:hover {
    background-color: #004e9a;
}

.specials-offer-details {
    flex: 0 0 50%;
}

.specials-payment-section {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.specials-payment-label {
    background-color: #fff;
    color: #0d2c6c;
    font-size: 12px;
    font-weight: bold;
    padding: 3px 8px;
    border: 1px solid #0d2c6c;
    display: inline-block;
    margin-right: 15px;
}

.specials-payment-amount {
    font-size: 36px;
    font-weight: bold;
    color: #0d2c6c;
    margin-right: 5px;
}

.specials-payment-period {
    font-size: 14px;
    color: #666;
    align-self: flex-end;
    margin-bottom: 5px;
}

.specials-payment-details {
    flex-basis: 100%;
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}

.specials-payment-details p {
    margin: 0;
    line-height: 1.4;
}

.specials-offer-actions {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.specials-button {
    display: inline-block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    flex: 1 0 calc(33.33% - 10px);
    max-width: calc(33.33% - 10px);
    transition: background-color 0.3s ease;
}

.specials-button:hover {
    color: white;
}

.specials-button.specials-claim-special,
#specials-leadForm button[type="submit"] {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0d2c6c;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.specials-button.specials-claim-special:hover,
#specials-leadForm button[type="submit"]:hover {
    background-color: #004e9a;
}

.specials-button.specials-view-inventory,
.specials-button.specials-value-trade {
    background-color: #949599;
}

.specials-button.specials-view-inventory:hover,
.specials-button.specials-value-trade:hover {
    background-color: #004e9a;
}

.specials-offer-disclaimer {
    font-size: 12px;
    color: #666;
    margin-top: 15px;
}

/* Modal Styles */
#specials-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.specials-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

#specials-closeModal {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #0d2c6c;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#specials-closeModal:hover {
    background-color: #004e9a;
}

.specials-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.specials-close:hover,
.specials-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.specials-thank-you-message {
    padding-top: 40px;
}

/* Form Styles */
.specials-form-group {
    margin-bottom: 15px;
}

.specials-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.specials-form-group input,
.specials-form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.specials-form-group textarea {
    height: 100px;
}

.specials-form-group input.specials-error,
.specials-form-group textarea.specials-error {
    border-color: #0d2c6c;
}

.specials-error-message {
    color: #0d2c6c;
    font-size: 12px;
    margin-top: 5px;
}

.specials-form-message {
    padding: 10px;
    margin-top: 15px;
    border-radius: 4px;
    display: none;
}

.specials-form-message.specials-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.specials-form-message.specials-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Lazy loading styles */
.specials-lazy-image {
    opacity: 0;
    transition: opacity 0.3s;
}

.specials-lazy-loaded {
    opacity: 1;
}

/* Loading message styles */
#specials-loadingMessage {
    text-align: center;
    padding: 20px;
    font-size: 18px;
    color: #666;
}

/* Offers container */
.specials-offers-container {
    padding: 10px;
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .specials-carousel-item {
        flex: 0 0 calc(100% / 3);
    }

    .specials-modal-content {
        width: 70%;
    }
}

@media screen and (max-width: 768px) {
    .specials-container {
        padding: 5px;
    }

    .specials-carousel {
        padding: 0;
        margin-bottom: 15px;
    }

    .specials-carousel-item {
        padding: 5px;
    }

    .specials-carousel-arrow {
        padding: 5px 10px;
    }

    .specials-carousel-arrow.prev {
        left: 5px;
    }

    .specials-carousel-arrow.next {
        right: 5px;
    }

    .specials-offer {
        width: calc(100% - 10px);
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 15px;
        padding: 10px;
    }

    .specials-offer-header {
        flex-wrap: wrap;
    }

    .specials-offer-header .specials-logo {
        order: 1;
        margin-bottom: 10px;
    }

    .specials-offer-header .specials-header-text {
        order: 2;
        width: calc(100% - 120px);
    }

    .specials-price-container {
        order: 3;
        width: 100%;
        text-align: right;
        margin-top: 40px;
    }

    .specials-msrp, .specials-selling-price {
        display: inline-block;
        margin-left: 10px;
    }

    .specials-offer-main-content {
        flex-direction: column;
    }

    .specials-offer-image-section, .specials-offer-details {
        flex: 0 0 100%;
    }

    .specials-offer-details {
        margin-top: 20px;
    }

    .specials-button {
        flex: 1 0 100%;
        max-width: 100%;
    }

    .specials-modal-content {
        width: 90%;
        margin: 10% auto;
    }

    .specials-offer-subheader {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        margin-top: 5px;
    }

    .specials-callout {
        margin-bottom: 10px;
    }

    .specials-selling-price-mobile {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .specials-container {
        padding: 5px;
    }

    .specials-carousel {
        padding: 0;
        margin-bottom: 10px;
    }

    .specials-carousel-item {
        padding: 2px;
    }

    .specials-carousel-arrow {
        padding: 3px 8px;
        font-size: 16px;
    }

    .specials-carousel-arrow.prev {
        left: 2px;
    }

    .specials-carousel-arrow.next {
        right: 2px;
    }

    .specials-offer {
        width: calc(100% - 5px);
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 10px;
        padding: 2px;
    }

    .specials-offer-header h2 {
        font-size: 20px;
    }

    .specials-offer-header .specials-header-text {
        width: 100%;
    }

    .specials-price-container {
        position: absolute;
        top: 0;
        right: 0;
        width: auto;
    }

    .specials-msrp, .specials-selling-price {
        font-size: 14px;
        display: block;
        margin-left: 0;
    }

    .specials-callout {
        font-size: 16px;
    }

    .specials-vehicle-specs {
        font-size: 16px;
    }

    .specials-button {
        font-size: 14px;
        padding: 8px 15px;
    }

    .specials-payment-amount {
        font-size: 28px;
    }

    .specials-payment-period {
        font-size: 12px;
    }

    .specials-payment-details {
        font-size: 12px;
    }
}

@media screen and (max-height: 600px) {
    .specials-modal-content {
        margin: 2% auto;
        max-height: 96vh;
    }
}

/* Loading Message Override */
#specials-loadingMessage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}