.offer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    /* align-items: flex-start;
    padding: 20px 0; */
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.offer-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 20px;
    max-width: 500px;
    /* max-height: 90vh; */
    /* overflow-y: auto; */
    width: 90%;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid #e9ecef;
    animation: scaleInUpWithBounce 0.5s ease-out;
    /* animation: slideInUp 0.5s ease-out; */
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleInUpWithBounce {
    0% {
        transform: scale(0.4);
        opacity: 0;
    }
    60% {
        transform: scale(1.1);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}


.best-price-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: linear-gradient(45deg, #ffb308, #ffd574);
    /* color: black; */
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(255, 179, 8, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.offer-header {
    text-align: center;
    margin-bottom: 30px;
}

.offer-title {
    font-size: 24px;
    font-weight: bold;
    color: #212529;
    margin-bottom: 10px;
}

.offer-subtitle {
    font-size: 16px;
    color: #6c757d;
    margin: 0;
}

.company-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    border: 1px solid #dee2e6;
}

.company-initial {
    font-size: 32px;
    font-weight: bold;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.company-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #e9ecef;
    overflow: hidden;
}

.company-logo img {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

.company-name {
    font-size: 20px;
    font-weight: bold;
    color: #212529;
    margin-bottom: 5px;
}

.company-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
}

.stars {
    color: #ffc107;
    font-size: 16px;
}

.rating-text {
    color: #6c757d;
    font-size: 14px;
}

.price-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px solid #3498db;
}

.price-label {
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 5px;
}

.price-amount {
    font-size: 42px;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 10px;
}

.price-details {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.4;
}

.features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #495057;
}

.features-list li::before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    margin-right: 10px;
    font-size: 16px;
}

.action-buttons {
    flex-direction: column;
    display: flex;
    flex: 1;
    gap: 5px;
    justify-content: center;
}

.btn-book {
    /* background: linear-gradient(45deg, #3498db, #5dade2); */
    background: #3498db;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    /* transition: all 0.3s ease; */
    /* box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3); */
}

.btn-book:hover,
.btn-book:focus {
    /* transform: translateY(-2px); */
    /* box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4); */
    background: #ffb308;
    /* box-shadow: 0 6px 20px rgba(255, 179, 8, 0.3); */
}

.btn-compare {
    background: white;
    color: #6c757d;
    padding: 15px 25px;
    border: 2px solid #dee2e6;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-compare:hover {
    background-color: white;
    border-color: #28a745;
    color: #28a745;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: #f8f9fa;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 18px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.urgency-text {
    text-align: center;
    font-size: 12px;
    color: #dc3545;
    margin-top: 10px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .offer-card {
        padding: 15px;
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    .offer-header {
        margin-bottom: 15px;
    }
    
    .offer-title {
        font-size: 18px;
        margin-bottom: 5px;
    }
    
    .offer-subtitle {
        font-size: 14px;
    }
    
    .company-section {
        margin-bottom: 15px;
        padding: 12px;
    }
    
    .company-logo {
        width: 60px;
        height: 60px;
        margin: 0 auto 10px;
    }
    
    .company-name {
        font-size: 16px;
        margin-bottom: 3px;
    }
    
    .price-section {
        margin-bottom: 15px;
        padding: 12px;
    }
    
    .price-amount {
        font-size: 28px;
        margin-bottom: 5px;
    }
    
    .price-details {
        font-size: 12px;
    }
    
    .features-list {
        margin-bottom: 15px;
    }
    
    .features-list li {
        margin-bottom: 5px;
        font-size: 13px;
    }
    
    .btn-book {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .urgency-text {
        margin-top: 8px;
        font-size: 11px;
    }
}

@media (max-height: 930px) and (min-width: 769px) {
    .offer-overlay {
        /* align-items: flex-start; */
        padding: 10px 20px;
    }

    .offer-card {
        max-height: calc(100vh - 10px);
        max-width: calc(75vw - 10px);
        /* padding: 10px 15px; */
        /* border-radius: 10px; */
    }
    .offer-header {
        margin-bottom: 5px;
    }

    .offer-title {
        margin-bottom: 2px;
    }

    /* Side-by-side layout for company and price with desktop styling */
    .company-price-container {
        display: flex;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .company-section,
    .price-section {
        flex: 1;
        margin-bottom: 0;
        align-content: center;
    }
    
    
    /* Features and action in same row with desktop styling */
    .features-action-container {
        display: flex;
        gap: 15px;
        align-items: flex-start;
    }
    
    .features-list {
        flex: 1;
        margin-bottom: 0;
    }
    
    .action-buttons {
        /* flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 140px; */
        gap: 10px;
    }
    
    .urgency-text {
        margin-top: 0;
        text-align: center;
    }
}

@media (max-height: 500px) {
    .offer-overlay {
        /* align-items: flex-start; */
        padding: 10px 20px;
    }
    
    .offer-card {
        max-height: calc(100vh - 10px);
        max-width: calc(75vw - 10px);
        padding: 10px 15px;
        border-radius: 10px;
    }
    
    /* More compact header */
    .offer-header {
        margin-bottom: 5px;
    }
    
    .offer-title {
        font-size: 18px;
        margin-bottom: 2px;
    }
    
    .offer-subtitle {
        font-size: 14px;
    }
    
    /* Smaller badge */
    .best-price-badge {
        padding: 10px 20px;
        font-size: 16px;
        top: -8px;
    }
    
    /* Side-by-side layout with minimal spacing */
    .company-price-container {
        display: flex;
        gap: 10px;
        margin-bottom: 5px;
    }
    
    .company-section,
    .price-section {
        flex: 1;
        margin-bottom: 0;
        padding: 5px;
        align-content: center;
    }
    
    .company-logo {
        width: 40px;
        height: 40px;
        margin: 0 auto 3px;
    }
    
    .company-name {
        font-size: 16px;
        margin-bottom: 1px;
    }
    
    .company-rating {
        margin-bottom: 2px;
    }
    
    .stars {
        font-size: 14px;
    }
    .rating-text {
        font-size: 12px;
    }
    
    .price-amount {
        font-size: 28px;
        margin-bottom: 2px;
    }
    
    .price-label, .price-details {
        font-size: 12px;
    }

    /* Features and action in same row */
    .features-action-container {
        display: flex;
        gap: 5px;
        align-items: flex-end;
    }
    
    .features-list {
        /* flex: 1; */
        margin-bottom: 0;
    }
    
    .features-list li {
        margin-bottom: 1px;
        font-size: 12px;
    }
    
    .action-section {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 100px;
    }

    .action-buttons {
        /* flex-direction: column; */
        gap: 5px;
        /* flex: 1; */
    }
    
    .urgency-text {
        margin-top: 0;
        font-size: 10px;
        text-align: center;
    }
}