/* Base Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loading Message */
.loading-message {
    text-align: center;
    padding: 40px;
    color: #666;
}

a {
    text-decoration: none !important;
}

/* Offer Styles */
.offer {
    margin-bottom: 30px;
    background: #fff;
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #01095C;
}

/* Event Logo Styles */
.event-logo {
    position: absolute;
    top: 80px;
    left: 20px;
    z-index: 999;
    max-width: 150px;
    max-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
}

.event-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.callout-bar {
    background: #0064cd;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 28px;
    display: none;
}

.callout-bar.visible {
    display: block;
}

.offer-image-section {
    width: 100%;
}

.offer-image-section img {
    width: 100%;
    height: auto;
    display: block;
}

.vehicle-title {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 20px;
    color: #FFF; /* #666 */
}

/* Payment Sections Container */
.payment-sections {
    text-align: center;
    padding: 20px;
    background: rgba(245, 245, 245, 0.9);
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Lease and Finance Offer Styles */
.payment-section:not(.discount-section) {
    padding: 15px;
}

.payment-label {
    color: #666;
    font-size: 20px;
    margin-bottom: 5px;
}

.payment-amount {
    color: #0064cd;
    font-size: 42px;
    font-weight: bold;
    line-height: 1;
    margin: 5px 0;
}

.payment-period {
    color: #0064cd;
    font-size: 24px;
}

.payment-details {
    color: #666;
    font-size: 16px;
    margin-top: 10px;
}

/* Discount Offer Styles */
.discount-section {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 300px;
    margin: 0 auto;
}

.discount-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 4px 0;
}

.discount-label {
    color: #666;
    font-size: 16px;
    font-weight: 500;
    text-align: right;
}

.discount-amount {
    font-weight: bold;
    font-size: 20px;
    line-height: 1;
    text-align: right;
    min-width: 90px;
}

.discount-amount.msrp {
    color: #666;
    text-decoration: line-through;
    font-size: 18px;
}

.discount-amount.sale {
    color: #0064cd;
    font-size: 20px;
}

.discount-amount.savings {
    color: #28a745;
    font-size: 20px;
}

/* Button Styles */
.offer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.button {
    display: inline-block;
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.claim-special {
    background: #0064cd;
    color: #fff;
}

.claim-special:hover {
    background: #0056b3;
}

.view-inventory,
.apply-financing {
    background: #454545;
    color: #fff;
}

.view-inventory:hover,
.apply-financing:hover {
    background: #333;
    color: #FFFFFF;
}

/* Disclaimer */
.disclosure-link {
    display: block;
    text-align: center;
    color: #F5F5F5; /* #00064cd */
    margin: 15px 0;
    cursor: pointer;
    font-size: 14px;
}

.offer-disclaimer {
    display: none;
    font-size: 12px;
    line-height: 1.5;
    color: #666;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 4px;
}

/* Event Logo Position Modifiers */
.event-logo.top-left {
    top: 20px;
    left: 20px;
}

.event-logo.top-right {
    top: 20px;
    right: 20px;
    left: auto;
}

.event-logo.bottom-left {
    top: auto;
    bottom: 20px;
    left: 20px;
}

.event-logo.bottom-right {
    top: auto;
    bottom: 20px;
    right: 20px;
    left: auto;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .offer {
        padding: 30px;
    }
    
    .offer-main-content {
        display: grid;
        grid-template-columns: 50% auto;
        gap: 20px;
        align-items: start;
    }

    .offer-image-section {
        padding-right: 20px;
    }

    .offer-content {
        padding-right: 20px;
    }

    .vehicle-title {
        text-align: left;
        margin: 0 0 20px;
        font-size: 28px;
    }

    .offer-actions {
        width: 100%;
    }

    .button {
        font-size: 16px;
        padding: 12px 20px;
    }
    
    .payment-sections {
        margin-top: 20px;
    }


}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .callout-bar {
        font-size: 14px;    
    }
	
    .event-logo {
        top: 60px;
        max-width: 100px; 
        max-height: 50px;
    }
}
    
    .offer {
        padding: 15px;
    }
    
    .vehicle-title {
        font-size: 24px;
        text-align: center;
    }
    
    .payment-amount {
        font-size: 36px;
    }
    
    .payment-period {
        font-size: 20px;
    }
    
    .button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .offer-actions {
        max-width: 400px;
        margin: 0 auto;
    }

    .payment-label {
        font-size: 18px;
    }

    .payment-details {
        font-size: 14px;
    }

    .discount-label {
        font-size: 14px;
    }

    .discount-amount {
        font-size: 18px;
    }

    .discount-amount.msrp {
        font-size: 16px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    position: relative;
    border-radius: 8px;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0064cd;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
}

/* Lazy Loading */
.lazy {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Print Styles */
@media print {
    .offer-actions,
    .disclosure-link,
    .modal {
        display: none;
    }
    
    .offer-disclaimer {
        display: block;
        border: 1px solid #ddd;
    }
    
    .offer {
        break-inside: avoid;
    }
}