/* Booking.com Auto Fill Plugin Styles */

.booking-auto-fill-container {
    margin: 20px 0;
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.booking-field-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.booking-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.booking-url-input {
    flex: 1;
    min-width: 300px;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.booking-url-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.booking-load-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
}

.booking-load-btn:hover {
    background: linear-gradient(135deg, #005a87 0%, #004066 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.2);
}

.booking-load-btn:active {
    transform: translateY(0);
}

.booking-load-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.booking-status-message {
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 8px;
}

.booking-status-message.status-loading {
    display: flex;
    background: #e7f3ff;
    color: #0073aa;
    border: 1px solid #b3d9ff;
}

.booking-status-message.status-success {
    display: flex;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.booking-status-message.status-error {
    display: flex;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f1aeb5;
}

.status-icon::before {
    content: "";
    width: 16px;
    height: 16px;
    display: inline-block;
    border-radius: 50%;
}

.status-loading .status-icon::before {
    background: #0073aa;
    animation: booking-pulse 1.5s infinite;
}

.status-success .status-icon::before {
    background: #28a745;
    content: "✓";
    width: auto;
    height: auto;
    border-radius: 0;
    color: white;
    font-weight: bold;
    text-align: center;
    line-height: 16px;
}

.status-error .status-icon::before {
    background: #dc3545;
    content: "✕";
    width: auto;
    height: auto;
    border-radius: 0;
    color: white;
    font-weight: bold;
    text-align: center;
    line-height: 16px;
}

@keyframes booking-pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .booking-input-group {
        flex-direction: column;
    }
    
    .booking-url-input {
        min-width: 100%;
    }
    
    .booking-load-btn {
        width: 100%;
    }
}

/* Enhanced styling for better integration */
.frm_forms .booking-auto-fill-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #007cba;
    position: relative;
    overflow: hidden;
}

.frm_forms .booking-auto-fill-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007cba, #0073aa, #005a87);
}

.frm_forms .booking-field-group label {
    color: #0073aa;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .booking-auto-fill-container {
        background: #2c2c2c;
        border-color: #555;
        color: #fff;
    }
    
    .booking-field-group label {
        color: #4a9eff;
    }
    
    .booking-url-input {
        background: #333;
        border-color: #555;
        color: #fff;
    }
    
    .booking-url-input:focus {
        border-color: #4a9eff;
    }
}