/* Minimal Luxury Newsletter Popup - light / luxe theme */

.cg-newsletter-popup-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.45); /* subtle dim */
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 220ms ease, visibility 220ms ease;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.cg-newsletter-popup-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Card */
.cg-newsletter-popup {
    width: 100%;
    max-width: 440px;
    background: #ffffff;                /* clean white */
    color: #0b0b0b;
    border-radius: 12px;
    padding: 28px 28px;
    box-shadow: 0 18px 40px rgba(10,10,10,0.15);
    border: 1px solid rgba(10,10,10,0.06);
    transform: translateY(6px) scale(.995);
    transition: transform 300ms cubic-bezier(.2,.9,.36,1), opacity 220ms ease;
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

/* when visible -> subtle pop */
.cg-newsletter-popup-overlay.visible .cg-newsletter-popup {
    transform: translateY(0) scale(1);
}

/* Close button - discreet */
.cg-close-popup {
    position: absolute;
    right: 14px;
    top: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b0b0b;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    border-radius: 6px;
}
.cg-close-popup:hover { background: rgba(0,0,0,0.03); }

/* Header */
.cg-popup-header {
    text-align: left;
    margin-bottom: 18px;
}
.cg-popup-logo {
    font-family: "Playfair Display", serif;
    font-size: 20px;
    letter-spacing: 2px;
    font-weight: 400;
    margin-bottom: 6px;
    color: #0b0b0b;
}
.cg-popup-title {
    font-size: 20px;
    margin: 0 0 6px 0;
    font-weight: 600;
    color: #0b0b0b;
}
.cg-popup-sub {
    margin: 0;
    font-size: 13px;
    color: #5a5a5a;
}

/* Minimal benefits line - tiny and elegant */
.cg-popup-benefits {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 18px;
    font-size: 12px;
    color: #7a7a7a;
    letter-spacing: 0.6px;
}

/* Form */
.cg-newsletter-form {
    display: grid;
    gap: 12px;
    margin-top: 4px;
}
.cg-form-group input[type="text"],
.cg-form-group input[type="email"] {
    width: 100%;
    padding: 12px 10px;
    border: none;
    border-bottom: 1px solid rgba(10,10,10,0.09);
    background: transparent;
    font-size: 14px;
    color: #0b0b0b;
    font-weight: 400;
    outline: none;
    border-radius: 0;
}
.cg-form-group input::placeholder { color: #b7b7b7; font-weight: 300; }

/* Consent small */
.cg-consent-group {
    font-size: 11px;
    color: #8a8a8a;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Primary CTA - quiet, confident */
.cg-subscribe-btn {
    display: inline-block;
    width: 100%;
    padding: 12px 14px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    border: 1px solid #0b0b0b;
    background: #0b0b0b;
    color: #ffffff;
    cursor: pointer;
    font-weight: 600;
    transition: transform 140ms ease, box-shadow 140ms ease;
}
.cg-subscribe-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(11,11,11,0.08);
}
.cg-subscribe-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Error and success subtle */
.cg-form-error {
    background: none;
    color: #c23b3b;
    font-size: 13px;
    padding: 0;
    margin-top: -6px;
}
.cg-success-message h4 { color: #0b0b0b; font-weight:600; font-size:16px; }
.cg-success-message p { color: #6b6b6b; font-size:13px; }

/* Small note */
.cg-privacy-note {
    font-size: 11px;
    color: #9b9b9b;
    text-align: left;
    margin-top: 8px;
}

/* Responsive */
@media (max-width:480px) {
    .cg-newsletter-popup { padding: 18px 16px; border-radius: 10px; max-width: 92%; }
    .cg-popup-logo { font-size: 18px; }
    .cg-popup-title { font-size: 18px; }
}
