/* TattVibes Newsletter Popup v3 */

.tvnp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 16px;
}

.tvnp-overlay.tvnp-visible {
    opacity: 1;
    visibility: visible;
}

.tvnp-popup {
    position: relative;
    background: #0f0f0f;
    border-radius: 20px;
    max-width: 880px;
    width: 100%;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    transform: scale(0.9) translateY(25px);
    transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
    color: #fff;
}

.tvnp-overlay.tvnp-visible .tvnp-popup {
    transform: scale(1) translateY(0);
}

.tvnp-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.tvnp-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.tvnp-popup-inner {
    display: flex;
    min-height: 480px;
}

/* LEFT */
.tvnp-left {
    flex: 0 0 42%;
    position: relative;
    background: linear-gradient(160deg, #1a1a1a 0%, #0d0d0d 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.tvnp-photos {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 380px;
}

.tvnp-photo {
    position: absolute;
    background: #fff;
    padding: 8px 8px 22px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    border-radius: 4px;
}

.tvnp-photo img {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 2px;
}

.tvnp-photo-1 {
    width: 58%;
    top: 6%;
    left: 5%;
    transform: rotate(-7deg);
    z-index: 3;
}

.tvnp-photo-2 {
    width: 54%;
    top: 34%;
    right: 3%;
    transform: rotate(5deg);
    z-index: 2;
}

.tvnp-photo-3 {
    width: 56%;
    bottom: 5%;
    left: 10%;
    transform: rotate(-3deg);
    z-index: 1;
}

.tvnp-decor {
    position: absolute;
    pointer-events: none;
    opacity: 0.7;
}

.tvnp-decor-leaves::before,
.tvnp-decor-leaves::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 80px;
    border: 2px solid rgba(196, 92, 106, 0.45);
    border-radius: 50% 0 50% 50%;
    transform: rotate(-30deg);
}

.tvnp-decor-leaves::before {
    top: 20px;
    right: 20px;
}

.tvnp-decor-leaves::after {
    bottom: 40px;
    left: 15px;
    transform: rotate(140deg);
}

.tvnp-decor-hearts::before,
.tvnp-decor-hearts::after {
    content: '♥';
    position: absolute;
    color: rgba(196, 92, 106, 0.55);
    font-size: 18px;
}

.tvnp-decor-hearts::before {
    top: 55%;
    left: 8%;
}

.tvnp-decor-hearts::after {
    bottom: 18%;
    right: 12%;
    font-size: 14px;
}

/* RIGHT */
.tvnp-right {
    flex: 1;
    padding: 42px 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #111;
    position: relative;
}

.tvnp-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.tvnp-logo {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: -0.5px;
}

.tvnp-heart {
    color: #c45c6a;
    font-size: 20px;
}

.tvnp-tagline {
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 22px;
    font-weight: 500;
}

.tvnp-headline {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 14px;
}

.tvnp-headline span {
    display: block;
}

.tvnp-desc {
    font-size: 14.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 26px;
}

.tvnp-form {
    width: 100%;
}

.tvnp-field {
    position: relative;
    margin-bottom: 14px;
}

.tvnp-field input {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    outline: none;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.tvnp-field input:focus {
    box-shadow: 0 0 0 3px rgba(196, 92, 106, 0.4);
}

.tvnp-field input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.tvnp-submit {
    width: 100%;
    padding: 15px 24px;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 6px;
    letter-spacing: 0.3px;
}

.tvnp-submit:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(196, 92, 106, 0.4);
}

.tvnp-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.tvnp-privacy {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin: 14px 0 0;
}

.tvnp-message {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.tvnp-message.tvnp-error {
    background: rgba(220, 50, 50, 0.2);
    color: #ff8a8a;
}

.tvnp-success {
    text-align: center;
    padding: 20px 0;
}

.tvnp-success-icon {
    width: 64px;
    height: 64px;
    color: #fff;
    font-size: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 8px 24px rgba(196, 92, 106, 0.35);
}

.tvnp-success h3 {
    font-size: 24px;
    margin: 0 0 10px;
    color: #fff;
}

.tvnp-success p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
}

.tvnp-right::after {
    content: '✈';
    position: absolute;
    bottom: 30px;
    right: 30px;
    font-size: 22px;
    opacity: 0.25;
    transform: rotate(25deg);
}

@media (max-width: 760px) {
    .tvnp-popup-inner {
        flex-direction: column;
        min-height: auto;
    }
    .tvnp-left {
        flex: none;
        min-height: 220px;
        padding: 24px 16px;
    }
    .tvnp-photos {
        min-height: 200px;
    }
    .tvnp-photo-1 { width: 48%; top: 5%; left: 8%; }
    .tvnp-photo-2 { width: 44%; top: 25%; right: 6%; }
    .tvnp-photo-3 { width: 46%; bottom: 5%; left: 18%; }
    .tvnp-right {
        padding: 28px 24px 32px;
    }
    .tvnp-headline {
        font-size: 24px;
    }
    .tvnp-logo {
        font-size: 24px;
    }
}

body.tvnp-open {
    overflow: hidden;
}
