/**
 * Direct Booking Deals Popup Styles
 */

/* Popup container */
.onbs-deals-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.onbs-deals-popup-visible {
    opacity: 1;
    visibility: visible;
}

/* Overlay */
.onbs-deals-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

/* Content box */
.onbs-deals-popup-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 440px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    animation: onbs-popup-slide-in 0.3s ease;
}

@keyframes onbs-popup-slide-in {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Close button */
.onbs-deals-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.onbs-deals-popup-close:hover {
    background: #e0e0e0;
    color: #333;
}

/* Body */
.onbs-deals-popup-body {
    padding: 40px 32px 32px;
    text-align: center;
}

/* Title */
.onbs-deals-popup-title {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

/* Description */
.onbs-deals-popup-description {
    margin: 0 0 24px;
    font-size: 15px;
    color: #666;
    line-height: 1.5;
}

/* Form */
.onbs-deals-popup-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.onbs-deals-popup-field input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.onbs-deals-popup-field input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.onbs-deals-popup-field input::placeholder {
    color: #999;
}

/* Name fields row */
.onbs-deals-popup-name-fields {
    display: flex;
    gap: 12px;
}

.onbs-deals-popup-name-fields input {
    flex: 1;
}

/* Submit button */
.onbs-deals-popup-submit {
    width: 100%;
    padding: 14px 24px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.onbs-deals-popup-submit:hover {
    background: #005a87;
}

.onbs-deals-popup-submit:active {
    transform: scale(0.98);
}

.onbs-deals-popup-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Messages */
.onbs-deals-popup-message {
    padding: 16px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
}

.onbs-deals-popup-success {
    background: #d4edda;
    color: #155724;
}

.onbs-deals-popup-error {
    background: #f8d7da;
    color: #721c24;
}

/* Body scroll lock */
body.onbs-deals-popup-open {
    overflow: hidden;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .onbs-deals-popup-content {
        width: 95%;
        margin: 16px;
    }

    .onbs-deals-popup-body {
        padding: 32px 20px 24px;
    }

    .onbs-deals-popup-title {
        font-size: 20px;
    }

    .onbs-deals-popup-description {
        font-size: 14px;
    }

    .onbs-deals-popup-name-fields {
        flex-direction: column;
    }

    .onbs-deals-popup-field input,
    .onbs-deals-popup-submit {
        padding: 12px 14px;
    }
}
