/* Naturalie Popup Content - Modern Frontend Styles */

.npc-popup-wrapper {
    --npc-primary: #468664;
    --npc-primary-dark: #3a7354;
    --npc-primary-light: #e8f5e9;
    --npc-accent: #f4a261;
    --npc-surface: #ffffff;
    --npc-text: #1a1a2e;
    --npc-text-muted: #5a5a6e;
    --npc-border: #e8e8ec;
    --npc-radius: 16px;
    --npc-radius-sm: 12px;
    --npc-radius-xs: 8px;
    --npc-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --npc-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --npc-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --npc-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);

    font-family: inherit;
    font-size: 15px;
    color: var(--npc-text);
    line-height: 1.6;
    animation: npc-fade-in 0.4s ease;
}

@keyframes npc-fade-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== HEADER ========== */
.npc-popup-header {
    text-align: center;
    margin-bottom: 24px;
}

.npc-popup-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--npc-primary-light);
    color: var(--npc-primary);
    font-size: 26px;
    margin-bottom: 16px;
    animation: npc-pop-in 0.5s ease 0.1s both;
}

@keyframes npc-pop-in {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.npc-popup-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--npc-text);
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.npc-popup-description {
    font-size: 15px;
    color: var(--npc-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ========== NEWSLETTER ========== */
.npc-popup-newsletter {
    margin-top: 4px;
}

.npc-popup-newsletter .fluentform {
    margin-bottom: 0;
}

/* Fluent Forms modern overrides */
.npc-popup-wrapper .fluentform .ff-el-group {
    margin-bottom: 14px;
}

.npc-popup-wrapper .fluentform input[type="text"],
.npc-popup-wrapper .fluentform input[type="email"],
.npc-popup-wrapper .fluentform input[type="tel"] {
    border: 1.5px solid var(--npc-border) !important;
    border-radius: var(--npc-radius-xs) !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    transition: border-color var(--npc-transition), box-shadow var(--npc-transition) !important;
    background: #fafafa !important;
}

.npc-popup-wrapper .fluentform input:focus {
    border-color: var(--npc-primary) !important;
    box-shadow: 0 0 0 3px rgba(70, 134, 100, 0.12) !important;
    background: var(--npc-surface) !important;
    outline: none !important;
}

.npc-popup-wrapper .fluentform .ff-submit-btn {
    display: block !important;
    width: 100% !important;
    padding: 14px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #fff !important;
    background: var(--npc-primary) !important;
    border: none !important;
    border-radius: var(--npc-radius-xs) !important;
    cursor: pointer !important;
    transition: background var(--npc-transition), transform 0.15s ease, box-shadow var(--npc-transition) !important;
    box-shadow: var(--npc-shadow-sm) !important;
}

.npc-popup-wrapper .fluentform .ff-submit-btn:hover {
    background: var(--npc-primary-dark) !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--npc-shadow) !important;
}

.npc-popup-wrapper .fluentform .ff-submit-btn:active {
    transform: translateY(0) !important;
}

/* Checkbox / GDPR styling */
.npc-popup-wrapper .fluentform .ff-checkable-grp input[type="checkbox"] {
    accent-color: var(--npc-primary);
}

/* ========== COUPON ========== */
.npc-coupon-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    margin-top: 8px;
}

/* Ticket-style coupon code */
.npc-coupon-code-wrap {
    position: relative;
    background: linear-gradient(135deg, var(--npc-primary-light) 0%, #f0f7f2 100%);
    border-radius: var(--npc-radius-sm);
    padding: 20px 24px;
    text-align: center;
    border: 2px dashed var(--npc-primary);
}

.npc-coupon-code-wrap::before,
.npc-coupon-code-wrap::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: var(--npc-surface);
    border-radius: 50%;
}

.npc-coupon-code-wrap::before {
    left: -8px;
}

.npc-coupon-code-wrap::after {
    right: -8px;
}

.npc-coupon-label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--npc-primary);
    margin-bottom: 8px;
    opacity: 0.8;
}

.npc-coupon-code {
    font-family: 'SF Mono', Monaco, 'Fira Code', monospace;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--npc-primary);
    user-select: all;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Apply Button */
.npc-apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: var(--npc-primary);
    border: none;
    border-radius: var(--npc-radius-xs);
    cursor: pointer;
    transition: background var(--npc-transition), transform 0.15s ease, box-shadow var(--npc-transition);
    text-decoration: none;
    box-shadow: var(--npc-shadow-sm);
    position: relative;
    overflow: hidden;
}

.npc-apply-btn::before {
    content: '\2713';
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.npc-apply-btn:hover {
    background: var(--npc-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--npc-shadow);
}

.npc-apply-btn:active {
    transform: translateY(0);
}

.npc-apply-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.npc-apply-btn--success {
    background: #2e7d32;
    pointer-events: none;
}

.npc-apply-btn--success::before {
    opacity: 1;
}

/* Coupon Message */
.npc-coupon-message {
    margin-top: 4px;
    padding: 12px 16px;
    border-radius: var(--npc-radius-xs);
    font-size: 14px;
    text-align: center;
    animation: npc-fade-in 0.3s ease;
}

.npc-coupon-message--success {
    background: var(--npc-primary-light);
    color: var(--npc-primary-dark);
    border: 1px solid rgba(70, 134, 100, 0.2);
}

.npc-coupon-message--error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid rgba(198, 40, 40, 0.15);
}

/* ========== CUSTOM HTML ========== */
.npc-popup-custom {
    margin-top: 8px;
}

.npc-popup-custom a,
.npc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: var(--npc-primary);
    border: none;
    border-radius: var(--npc-radius-xs);
    cursor: pointer;
    transition: background var(--npc-transition), transform 0.15s ease, box-shadow var(--npc-transition);
    text-decoration: none;
    box-shadow: var(--npc-shadow-sm);
}

.npc-popup-custom a:hover,
.npc-btn:hover {
    background: var(--npc-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--npc-shadow);
    text-decoration: none;
}

/* ========== TRUST BADGES ========== */
.npc-trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--npc-border);
    font-size: 13px;
    color: var(--npc-text-muted);
}

.npc-trust-badges span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.npc-trust-badges span::before {
    content: '\2713';
    color: var(--npc-primary);
    font-weight: 700;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {
    .npc-popup-wrapper {
        font-size: 14px;
    }

    .npc-popup-title {
        font-size: 20px;
    }

    .npc-popup-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    .npc-coupon-code {
        font-size: 20px;
        letter-spacing: 1px;
    }

    .npc-coupon-code-wrap {
        padding: 16px 20px;
    }
}
