/* ============================================
   CruiseBookUSA - Popup Styles
   Location: /pop/popup.css
   Fully responsive + 5s delayed
============================================ */

/* Popup Overlay */
#cb-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 77, 140, 0.85);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#cb-popup-overlay.show {
    display: flex;
    opacity: 1;
}

/* Popup Container */
#cb-popup {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    overflow: hidden;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

#cb-popup-overlay.show #cb-popup {
    transform: translateY(0);
}

/* Mobile adjustments */
@media (max-width: 640px) {
    #cb-popup {
        max-width: 100%;
        border-radius: 16px;
    }
}

/* Header */
.cb-popup-header {
    background: linear-gradient(135deg, #0A4D8C 0%, #1E3A8A 100%);
    color: white;
    padding: 20px 24px 16px;
    text-align: center;
    position: relative;
}

.cb-popup-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.cb-popup-header p {
    font-size: 14px;
    margin: 6px 0 0;
    opacity: 0.9;
}

/* Close Button */
#cb-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

#cb-popup-close:hover {
    background: rgba(255,255,255,0.35);
}

/* Body */
.cb-popup-body {
    padding: 24px;
}

.cb-popup-body p {
    font-size: 15px;
    color: #475569;
    margin: 0 0 16px;
    line-height: 1.5;
}

/* Phone CTA */
.cb-phone-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.cb-phone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #0A4D8C;
    color: white;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
}

.cb-phone-btn:hover {
    background: #083A6A;
    transform: translateY(-1px);
}

.cb-phone-btn.secondary {
    background: #f1f5f9;
    color: #0A4D8C;
    border: 1px solid #cbd5e1;
}

.cb-phone-btn.secondary:hover {
    background: #e2e8f0;
}

/* Form */
.cb-popup-form {
    margin-top: 8px;
}

.cb-popup-form input {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 15px;
    margin-bottom: 10px;
    outline: none;
}

.cb-popup-form input:focus {
    border-color: #0A4D8C;
}

.cb-popup-form button {
    width: 100%;
    background: #0A4D8C;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.cb-popup-form button:hover {
    background: #083A6A;
}

/* Footer */
.cb-popup-footer {
    padding: 12px 24px 20px;
    text-align: center;
    font-size: 12px;
    color: #64748b;
    background: #f8fafc;
}

.cb-popup-footer a {
    color: #0A4D8C;
    text-decoration: underline;
}

/* Mobile specific */
@media (max-width: 480px) {
    .cb-popup-header {
        padding: 18px 16px 14px;
    }
    
    .cb-popup-header h2 {
        font-size: 19px;
    }
    
    .cb-popup-body {
        padding: 20px 16px;
    }
    
    .cb-phone-btn {
        padding: 13px 16px;
        font-size: 14px;
    }
}