/**
 * Upgrade Modal - Rectangular Professional Layout
 * Wide, clean, corporate design
 */

/* MODAL OVERLAY */
body .cnc-acf-upgrade-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: var(--cnc-acf-z-modal);
    align-items: center;
    justify-content: center;
    font-family: var(--cnc-acf-font-family);
    padding: var(--cnc-acf-spacing-md);
}

body .cnc-acf-upgrade-modal-overlay.active {
    display: flex !important;
    animation: cncFadeIn 0.3s ease;
}

@keyframes cncFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* MODAL CONTAINER - Wide Rectangular */
body .cnc-acf-upgrade-modal-overlay .cnc-acf-upgrade-modal {
    background: var(--cnc-acf-white);
    border-radius: 16px;
    max-width: 680px;
    width: 100%;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    animation: cncSlideUp 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
    overflow: hidden;
}

@keyframes cncSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* HEADER - Brand Gradient */
body .cnc-acf-upgrade-modal-overlay .cnc-acf-upgrade-modal-header {
    padding: 28px var(--cnc-acf-spacing-xl);
    background: linear-gradient(135deg, #6167F8 0%, #9966FF 100%);
    position: relative;
    text-align: center;
}

body .cnc-acf-upgrade-modal-overlay .cnc-acf-upgrade-modal-header h2 {
    margin: 0 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--cnc-acf-text-white) !important;
    font-family: var(--cnc-acf-heading-font) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.4px;
}

/* Close Button */
body .cnc-acf-upgrade-modal-overlay .cnc-acf-upgrade-modal-close {
    position: absolute !important;
    top: 18px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15) !important;
    border: none !important;
    color: var(--cnc-acf-text-white) !important;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}

body .cnc-acf-upgrade-modal-overlay .cnc-acf-upgrade-modal-close:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: rotate(90deg);
}

/* BODY - Single Column Rectangular Layout */
body .cnc-acf-upgrade-modal-overlay .cnc-acf-upgrade-modal-body {
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: center;
}

/* Icon - Centered at Top */
body .cnc-acf-upgrade-modal-overlay .cnc-acf-upgrade-modal-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #AECFFF 0%, #9966FF 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(153, 102, 255, 0.3);
}

/* Content - Full Width */
body .cnc-acf-upgrade-modal-overlay .cnc-acf-upgrade-modal-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

body .cnc-acf-upgrade-modal-overlay .cnc-acf-upgrade-modal-message {
    text-align: center;
}

body .cnc-acf-upgrade-modal-overlay .cnc-acf-upgrade-modal-message h3 {
    margin: 0 0 12px 0 !important;
    font-size: 19px !important;
    color: var(--cnc-acf-text-black) !important;
    font-family: var(--cnc-acf-heading-font) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

body .cnc-acf-upgrade-modal-overlay .cnc-acf-upgrade-modal-message p {
    margin: 0 !important;
    font-size: 15px !important;
    color: rgba(0, 0, 0, 0.65) !important;
    line-height: 1.6 !important;
}

body .cnc-acf-upgrade-modal-overlay .cnc-acf-upgrade-field-type {
    display: inline-block;
    background: linear-gradient(135deg, #6167F8 0%, #9966FF 100%);
    color: var(--cnc-acf-text-white);
    padding: 4px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    margin: 0 3px;
}

/* FEATURES LIST - Clean Rectangular Card */
body .cnc-acf-upgrade-modal-overlay .cnc-acf-upgrade-features {
    background: linear-gradient(135deg, rgba(174, 207, 255, 0.06) 0%, rgba(153, 102, 255, 0.06) 100%);
    border: 1px solid rgba(97, 103, 248, 0.12);
    border-radius: 14px;
    padding: 28px 32px;
    margin: 0;
}

body .cnc-acf-upgrade-modal-overlay .cnc-acf-upgrade-features h4 {
    margin: 0 0 18px 0 !important;
    font-size: 11px !important;
    color: rgba(0, 0, 0, 0.5) !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700 !important;
    font-family: var(--cnc-acf-heading-font) !important;
    text-align: center;
}

body .cnc-acf-upgrade-modal-overlay .cnc-acf-upgrade-features ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

body .cnc-acf-upgrade-modal-overlay .cnc-acf-upgrade-features li {
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    font-size: 14px !important;
    color: var(--cnc-acf-text-black) !important;
    line-height: 1.5 !important;
    border-bottom: none !important;
    font-weight: 500;
}

body .cnc-acf-upgrade-modal-overlay .cnc-acf-upgrade-features li::before {
    content: "✓" !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--cnc-acf-success-color) !important;
    color: var(--cnc-acf-text-white) !important;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

/* FOOTER - Full Width Buttons */
body .cnc-acf-upgrade-modal-overlay .cnc-acf-upgrade-modal-footer {
    padding: 0 40px 36px;
    display: flex;
    gap: 14px;
}

/* BUTTONS - Modern & Clean */
body .cnc-acf-upgrade-modal-overlay .cnc-acf-btn {
    padding: 14px 32px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    font-family: var(--cnc-acf-font-family) !important;
    cursor: pointer;
    border: none !important;
    transition: all 0.25s;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1.4 !important;
    flex: 1;
    text-align: center;
}

body .cnc-acf-upgrade-modal-overlay .cnc-acf-btn-primary {
    background: linear-gradient(135deg, #6167F8 0%, #9966FF 100%) !important;
    color: var(--cnc-acf-text-white) !important;
    box-shadow: 0 6px 20px rgba(97, 103, 248, 0.35);
}

body .cnc-acf-upgrade-modal-overlay .cnc-acf-btn-primary:hover {
    background: linear-gradient(135deg, #5058E0 0%, #8855EE 100%) !important;
    box-shadow: 0 8px 24px rgba(97, 103, 248, 0.45);
    transform: translateY(-2px);
    color: var(--cnc-acf-text-white) !important;
}

body .cnc-acf-upgrade-modal-overlay .cnc-acf-btn-secondary {
    background: var(--cnc-acf-white) !important;
    color: rgba(0, 0, 0, 0.7) !important;
    border: 2px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body .cnc-acf-upgrade-modal-overlay .cnc-acf-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.03) !important;
    border-color: rgba(0, 0, 0, 0.18) !important;
    color: var(--cnc-acf-text-black) !important;
    transform: translateY(-1px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    body .cnc-acf-upgrade-modal-overlay .cnc-acf-upgrade-modal {
        max-width: 94%;
        border-radius: 14px;
    }

    body .cnc-acf-upgrade-modal-overlay .cnc-acf-upgrade-modal-body {
        padding: 32px 28px;
    }

    body .cnc-acf-upgrade-modal-overlay .cnc-acf-upgrade-modal-footer {
        flex-direction: column;
        padding: 0 28px 32px;
    }
}