/* ============================================
   Perfume Newsletter Popup — Valentine Profumeria
   Dark theme with gold accents
   ============================================ */

/* Overlay */
.perfnl-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.perfnl-overlay.perfnl-visible {
    opacity: 1;
}

/* Popup container */
.perfnl-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    z-index: 99999;
    display: flex;
    max-width: 680px;
    width: 92vw;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(193, 167, 118, 0.15);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.perfnl-popup.perfnl-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Close button */
.perfnl-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
}

.perfnl-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #c1a776;
    transform: rotate(90deg);
}

/* ============================================
   Left panel — dark with gold accents
   ============================================ */
.perfnl-left {
    width: 42%;
    flex-shrink: 0;
    background: #0a0a0a;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.perfnl-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(193, 167, 118, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(193, 167, 118, 0.06) 0%, transparent 55%);
    pointer-events: none;
}

.perfnl-left::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c1a776' fill-opacity='0.03'%3E%3Cpath d='M20 18v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Left border accent */
.perfnl-left .perfnl-left-content {
    position: relative;
    z-index: 2;
    text-align: center;
    border-right: 1px solid rgba(193, 167, 118, 0.12);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.perfnl-diamond {
    font-size: 80px;
    color: rgba(193, 167, 118, 0.12);
    line-height: 1;
    animation: perfnl-float 6s ease-in-out infinite;
}

@keyframes perfnl-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ============================================
   Right panel — dark background
   ============================================ */
.perfnl-right {
    flex: 1;
    background: #111111;
}

.perfnl-right-inner {
    padding: 36px 30px;
}

/* Badge */
.perfnl-badge {
    display: inline-block;
    background: transparent;
    color: #c1a776;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 5px 14px;
    border: 1px solid rgba(193, 167, 118, 0.35);
    border-radius: 2px;
    margin-bottom: 18px;
}

/* Title */
.perfnl-title {
    font-family: Georgia, 'Times New Roman', 'Noto Serif', serif !important;
    font-size: 22px !important;
    font-weight: 400 !important;
    color: #ffffff !important;
    line-height: 1.35 !important;
    margin: 0 0 10px 0 !important;
    letter-spacing: 0.3px !important;
}

/* Subtitle */
.perfnl-subtitle {
    font-size: 13px;
    color: #8a8a8a;
    line-height: 1.65;
    margin: 0 0 22px 0;
}

/* Email input */
.perfnl-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #333;
    border-radius: 2px;
    font-size: 14px;
    color: #e0e0e0;
    background: #1a1a1a;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
}

.perfnl-input:focus {
    border-color: #c1a776;
    box-shadow: 0 0 0 2px rgba(193, 167, 118, 0.1);
}

.perfnl-input::placeholder {
    color: #555;
    font-style: italic;
}

/* GDPR checkbox */
.perfnl-gdpr {
    margin: 12px 0 14px;
}

.perfnl-gdpr-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.perfnl-gdpr-check {
    margin-top: 2px;
    accent-color: #c1a776;
    flex-shrink: 0;
}

.perfnl-gdpr-text {
    font-size: 11px;
    color: #666;
    line-height: 1.5;
}

/* Submit button */
.perfnl-btn {
    width: 100%;
    padding: 13px 24px;
    background: #c1a776;
    color: #0a0a0a;
    border: none;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    font-family: inherit;
}

.perfnl-btn:hover {
    background: #d4b88a;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(193, 167, 118, 0.2);
}

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

.perfnl-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading spinner */
.perfnl-spinner {
    animation: perfnl-spin 0.8s linear infinite;
}

@keyframes perfnl-spin {
    to { transform: rotate(360deg); }
}

/* Message */
.perfnl-message {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 2px;
    font-size: 13px;
    line-height: 1.5;
}

.perfnl-message.perfnl-success {
    background: rgba(39, 103, 39, 0.15);
    color: #6abf6a;
    border: 1px solid rgba(39, 103, 39, 0.3);
}

.perfnl-message.perfnl-error {
    background: rgba(185, 28, 28, 0.1);
    color: #e57373;
    border: 1px solid rgba(185, 28, 28, 0.25);
}

/* Benefits */
.perfnl-benefits {
    list-style: none;
    margin: 20px 0 14px;
    padding: 16px 0 0;
    border-top: 1px solid #222;
}

.perfnl-benefits li {
    position: relative;
    padding-left: 20px;
    font-size: 12px;
    color: #777;
    margin-bottom: 6px;
    line-height: 1.5;
}

.perfnl-benefits li::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 0;
    color: #c1a776;
    font-size: 9px;
}

/* Don't show again */
.perfnl-noshow {
    margin-top: 4px;
}

.perfnl-noshow-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 11px;
    color: #555;
}

.perfnl-noshow-label input {
    accent-color: #c1a776;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 680px) {
    .perfnl-popup {
        flex-direction: column;
        max-height: 90vh;
        max-height: 90dvh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .perfnl-left {
        width: 100%;
        min-height: 100px;
    }

    .perfnl-diamond {
        font-size: 40px;
    }

    .perfnl-right-inner {
        padding: 24px 20px;
    }

    .perfnl-title {
        font-size: 19px !important;
    }
}

@media (max-width: 400px) {
    .perfnl-right-inner {
        padding: 20px 16px;
    }

    .perfnl-title {
        font-size: 17px !important;
    }

    .perfnl-subtitle {
        font-size: 12px;
    }
}
