/**
 * ICS Popup Styles
 */

/* Overlay */
.ics-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ics-popup-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Container */
.ics-popup-container {
    position: relative;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.ics-popup-overlay.active .ics-popup-container {
    transform: scale(1);
}

/* Content */
.ics-popup-content {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Logo */
.ics-popup-logo {
    text-align: center;
    margin-bottom: 25px;
}

.ics-popup-logo img {
    max-width: 100%;
    height: auto;
    max-height: 150px;
    display: inline-block;
}

/* Close Button */
.ics-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.ics-popup-close:hover {
    color: #333;
}

.ics-popup-close:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Header */
.ics-popup-header {
    margin-bottom: 20px;
    padding-right: 30px;
}

.ics-popup-header h2 {
    margin: 0;
    font-size: 28px;
    color: #333;
    font-weight: 600;
}

/* Body */
.ics-popup-body {
    margin-bottom: 25px;
    color: #555;
    line-height: 1.6;
}

.ics-popup-body p {
    margin: 0 0 15px;
}

.ics-popup-body p:last-child {
    margin-bottom: 0;
}

/* Footer */
.ics-popup-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Buttons */
.ics-popup-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.ics-popup-btn-primary {
    background-color: #0073aa;
    color: #ffffff;
}

.ics-popup-btn-primary:hover {
    background-color: #005a87;
}

.ics-popup-btn-primary:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.ics-popup-btn-secondary {
    background-color: #f0f0f1;
    color: #2c3338;
    border: 1px solid #c3c4c7;
}

.ics-popup-btn-secondary:hover {
    background-color: #e0e0e1;
    border-color: #8c8f94;
}

.ics-popup-btn-secondary:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .ics-popup-content {
        padding: 20px;
    }
    
    .ics-popup-header h2 {
        font-size: 24px;
    }
    
    .ics-popup-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Animation for fade in */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.7);
    }
    to {
        transform: scale(1);
    }
}

/* Body lock when popup is open */
body.ics-popup-open {
    overflow: hidden;
}
