/**
 * Billboard Popup Styles
 */

/* Popup Overlay */
.bpcrm-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Popup Content */
.bpcrm-popup-content {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
}

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

/* Popup Header */
.bpcrm-popup-header {
    padding: 20px 25px 15px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bpcrm-popup-header h3 {
    margin: 0;
    font-size: 20px;
    color: #2c3338;
    font-weight: 600;
}

.bpcrm-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.bpcrm-popup-close:hover {
    background-color: #f8f9fa;
    color: #495057;
}

/* Popup Body */
.bpcrm-popup-body {
    padding: 25px;
}

.bpcrm-loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

/* Form Styles in Popup - WordPress Standard */
.bpcrm-popup-body .form-row {
    margin-bottom: 20px;
}

.bpcrm-popup-body .form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.bpcrm-popup-body .form-row input[type="text"],
.bpcrm-popup-body .form-row input[type="password"],
.bpcrm-popup-body .form-row input[type="email"],
.bpcrm-popup-body .form-row input[type="tel"] {
    width: 100%;
    box-sizing: border-box;
}

/* Use WordPress standard form field styles */
.bpcrm-popup-body input[type="text"],
.bpcrm-popup-body input[type="password"],
.bpcrm-popup-body input[type="email"],
.bpcrm-popup-body input[type="tel"] {
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 5px 10px;
    font-size: 14px;
}

.bpcrm-popup-body input[type="text"]:focus,
.bpcrm-popup-body input[type="password"]:focus,
.bpcrm-popup-body input[type="email"]:focus,
.bpcrm-popup-body input[type="tel"]:focus {
    border-color: #5b9dd9;
    box-shadow: 0 0 2px rgba(30, 140, 190, 0.8);
}

.bpcrm-popup-body .form-row.remember-me {
    display: flex;
    align-items: center;
}

.bpcrm-popup-body .form-row.remember-me input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
}

.bpcrm-popup-body .form-row.remember-me label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
    flex-grow: 1;
}

/* Form Actions */
.bpcrm-popup-body .form-actions {
    margin-top: 25px;
}

.bpcrm-popup-body .button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s ease;
}

/* WordPress standard button styles will be inherited */
.bpcrm-popup-body .button-primary:hover {
    transform: translateY(-1px);
}

.bpcrm-popup-body .button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Popup Switch Links */
.bpcrm-popup-switch {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
    text-align: center;
}

.bpcrm-popup-switch p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.bpcrm-popup-switch a {
    text-decoration: none;
    font-weight: 500;
}

.bpcrm-popup-switch a:hover {
    text-decoration: underline;
}

/* Popup Messages */
.bpcrm-popup-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
}

.bpcrm-popup-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.bpcrm-popup-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.bpcrm-popup-message.warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bpcrm-popup-content {
        width: 95%;
        margin: 10px;
        max-height: 95vh;
    }
    
    .bpcrm-popup-header {
        padding: 15px 20px 10px;
    }
    
    .bpcrm-popup-header h3 {
        font-size: 18px;
    }
    
    .bpcrm-popup-body {
        padding: 20px;
    }
    
    .bpcrm-popup-body .form-row {
        margin-bottom: 15px;
    }
    
    .bpcrm-popup-body .button {
        padding: 14px;
        font-size: 16px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .bpcrm-popup-content {
        background-color: #2c3338;
        color: #ffffff;
    }
    
    .bpcrm-popup-header {
        border-bottom-color: #495057;
    }
    
    .bpcrm-popup-header h3 {
        color: #ffffff;
    }
    
    .bpcrm-popup-close {
        color: #adb5bd;
    }
    
    .bpcrm-popup-close:hover {
        background-color: #495057;
        color: #ffffff;
    }
    
    .bpcrm-popup-body .form-row label {
        color: #e9ecef;
    }
    
    .bpcrm-popup-body .form-row input {
        background-color: #495057;
        border-color: #6c757d;
        color: #ffffff;
    }
    
    .bpcrm-popup-body .form-row input:focus {
        border-color: var(--bpcrm-primary-color, #007cba);
        background-color: #495057;
    }
    
    .bpcrm-popup-switch {
        border-top-color: #495057;
    }
    
    .bpcrm-popup-switch p {
        color: #adb5bd;
    }
} 