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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
}

a {
    text-decoration: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px;
}

/* Offer Styles */
.offer {
    background-color: rgba(0, 9, 91, 0.9); /* Semi-transparent background */
    color: white;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(5px); /* Add a blur effect to the background */
}

.offer-content {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

.offer-image-section {
    flex: 0 0 40%;
    display: flex;
    align-items: flex-start;
}

.offer-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-image img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border: 2px solid #FFFFFF;  /* Added white border */
}

.offer-details-wrapper {
    flex: 0 0 55%;
    display: flex;
    flex-direction: column;
}

.offer-header-section {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 10px;
}

.offer-logo {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.offer-logo img {
    max-height: 150px;
    width: auto;
}

.offer-header {
    flex-grow: 1;
    min-width: 0; /* Allows text to wrap properly */
}

.offer-header h2 {
    font-size: 32px !important;
    margin-bottom: 10px;
    word-wrap: break-word;
    font-family: "Luckiest Guy", serif;
    font-weight: 400;
    font-style: normal;
    text-shadow: 1px 1px 2px red, 0 0 1em blue, 0 0 0.2em blue;
}

.price-info {
    display: flex;
    flex-direction: column;  /* Changed to column layout */
    align-items: center;     /* Center items horizontally */
    margin-bottom: 15px;
    font-size: 45px;
    
}

.msrp {
    color: #FFFFFF;
    text-align: center;
    text-shadow: 1px 1px 2px red, 0 0 1em blue, 0 0 0.2em blue;
    font-family: "Luckiest Guy", serif;
    font-weight: 400;
    font-style: normal;
    
}

.msrp-value {
    text-decoration: line-through;
    Text-decoration-color: #FF0000;
    Text-decoration-thickness: 2px;
    Font-weight: 400;
}

.sale-price {
    color: #FF0000;        
    font-size: 60px;       
    text-align: center;
    text-shadow: 1px 1px 2px red, 0 0 1em white, 0 0 0.2em white;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: black;
    font-family: "Luckiest Guy", serif;
    font-weight: 400;
    font-style: normal;
}

.offer-details {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-grow: 1;
}

.lease-option {
    font-size: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 0 10px;

}

.finance-option {
    font-size: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 0 10px;
}

.cash-option {
    font-size: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 0 10px;

}

/* Separator styles */
.separator {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 40px;
}

.separator::before,
.separator::after {
    content: '';
    width: 2px;
    height: calc(50% - 20px);
    background-color: white;
    position: absolute;
    Border: 1px solid black;
}

.separator::before {
    top: 0;
}

.separator::after {
    bottom: 0;
}

.separator-circle {
    width: 40px;
    height: 40px;
    background-color: black;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    X
}

.separator-text {
    color: white;
    font-weight: bold;
    font-size: 18px;
    font-family: "Luckiest Guy", serif;
    font-weight: 400;
    font-style: normal;
}

.offer-details h3 {
    font-size: 24px;
    margin-bottom: 2px;
    text-shadow: 1px 1px 2px red, 0 0 1em blue, 0 0 0.2em blue;
    font-family: "Luckiest Guy", serif;
    font-weight: 400;
    font-style: normal;
}

.offer-details .price {
    font-size: 45px;
    font-weight: bold;
    margin-bottom: 2px;
    text-shadow: 1px 1px 2px red, 0 0 1em blue, 0 0 0.2em blue;
    font-family: "Luckiest Guy", serif;
    font-weight: 400;
    font-style: normal;
}

.offer-details .terms {
    margin-bottom: 2px;
    text-shadow: 1px 1px 2px red, 0 0 1em blue, 0 0 0.2em blue;
    font-family: "Luckiest Guy", serif;
    font-weight: 400;
    font-style: normal;
}

.offer-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.button, 
#leadForm button[type="submit"] {
    display: inline-block;
    padding: 10px 20px;
    background-color: white;
    color: red;
    text-decoration: none;
    font-weight: 800;
    Font-size: 24px;
    transition: background-color 0.3s ease;
    text-align: center;
    border: 2px solid black;
    cursor: pointer;
    width: auto;
}

.button:hover,
.button:active,
#leadForm button[type="submit"]:hover,
#leadForm button[type="submit"]:active {
    background-color: #9c9c9c;
    Color: white;
}

/* Style for disabled state */
#leadForm button[type="submit"]:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.offer-disclaimer-wrapper {
    width: 100%;
    margin-top: 20px;
}

.offer-disclaimer {
    font-size: 12px;
    color: white;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 5px;
}

.toggle-disclaimer {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: white;
    cursor: pointer;
    text-decoration: underline;
}

/* Modal Styles */
.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;
}

.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;
}

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

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

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

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

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

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

.form-group input.error,
.form-group textarea.error {
    border-color: #001428;
}

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

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

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

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

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .offer-content {
        flex-direction: column;
    }

    .offer-image-section {
        flex: 0 0 100%;
        margin-bottom: 10px;
    }

    .offer-header-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 15px;
    }

    .offer-logo {
        margin: 2px 0;
    }

    .offer-logo img {
        max-height: 80px;
    }

    .offer-header {
        width: 100%;
    }

    .offer-details {
        flex-direction: column;
    }

    .price-info {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .msrp, .sale-price {
        width: 100%;
        text-align: center;
    }

    .sale-price {
        font-size: 20px;  /* Slightly smaller on mobile */
    }

    /* Updated mobile separator styles */
    .separator {
        width: 100%;
        flex-direction: row;
        margin: 15px 0;
    }

    .separator::before,
    .separator::after {
        width: calc(50% - 30px);
        height: 2px;
        top: 50%;
        transform: translateY(-50%);
    }

    .separator::before {
        left: 0;
    }

    .separator::after {
        right: 0;
    }

    .separator-circle {
        margin: 0 10px;
    }

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

@media screen and (max-width: 768px) {
    .offer-header h2 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .price-info {
        font-size: 20px;
    }

    .msrp {
        Font-size: 24px;
    }

    .sale-price {
        Font-size: 32px;
}

    .offer-details h3 {
        font-size: 32px;
        margin-bottom: 2px;
    }

    .offer-details .price {
        font-size: 52px;
        margin-bottom: 0;
    }

    .offer-details .terms {
        font-size: 18px;
    }

    .lease-option, .cash-option, .finance-option {
        margin-bottom: 5px;
    }

    .modal-content {
        width: 90%;
    }
}

@media screen and (max-width: 480px) {
    .offer-header h2 {
        font-size: 20px;
    }

    .price-info {
        font-size: 14px;
    }

    .sale-price {
        font-size: 28px;  
    }

    .offer-details .price {
        font-size: 36px;
    }

    .offer-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
        margin-bottom: 10px;
    }
}

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

.lazy.loaded {
    opacity: 1;
}