/* ================================================================
   VISITOR CAPTURE POPUP - Dream Event
   ================================================================ */

.visitor-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10006;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 20px;
}

.visitor-popup.active {
    opacity: 1;
    visibility: visible;
}

/* Overlay */
.visitor-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 18, 8, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Content */
.visitor-content {
    position: relative;
    z-index: 1;
    background: var(--warm-white);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 24px;
    padding: 40px 35px 30px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 80px rgba(160, 120, 48, 0.25);
    transform: scale(0.85) translateY(30px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.visitor-popup.active .visitor-content {
    transform: scale(1) translateY(0);
}

/* Background pattern */
.visitor-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: radial-gradient(circle, rgba(201, 168, 76, 0.03) 1px, transparent 1px);
    background-size: 25px 25px;
    pointer-events: none;
}

/* Close button */
.visitor-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: var(--cream);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
    line-height: 1;
}

.visitor-close:hover {
    background: var(--cream-3);
    color: var(--text-primary);
    transform: rotate(90deg);
}

/* Top decoration */
.visitor-top-decor {
    margin-bottom: 20px;
}

.vtd-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 1.6rem;
    box-shadow: 0 10px 30px rgba(201, 168, 76, 0.35);
    position: relative;
    animation: vtdPulse 2.5s infinite ease-in-out;
}

.vtd-icon::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 2px solid rgba(201, 168, 76, 0.2);
    border-radius: 50%;
    animation: vtdRing 2.5s infinite ease-in-out;
}

@keyframes vtdPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 30px rgba(201, 168, 76, 0.35); }
    50% { transform: scale(1.08); box-shadow: 0 12px 40px rgba(201, 168, 76, 0.5); }
}

@keyframes vtdRing {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 1; }
}

/* Title */
.visitor-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    position: relative;
}

.visitor-content > p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 25px;
    position: relative;
}

/* Form */
.visitor-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
    position: relative;
}

.vf-group {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--cream);
    border: 1.5px solid rgba(201, 168, 76, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.vf-group:focus-within {
    border-color: var(--gold);
    background: var(--warm-white);
    box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.08);
}

.vf-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-dark);
    font-size: 0.85rem;
    flex-shrink: 0;
    background: rgba(201, 168, 76, 0.06);
    border-right: 1px solid rgba(201, 168, 76, 0.1);
}

.vf-group:focus-within .vf-icon {
    background: rgba(201, 168, 76, 0.12);
    color: var(--gold);
}

.vf-group input {
    flex: 1;
    padding: 13px 14px;
    border: none;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: var(--text-primary);
    outline: none;
}

.vf-group input::placeholder {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Submit button */
.visitor-submit {
    width: 100%;
    padding: 14px;
    font-size: 0.95rem;
    justify-content: center;
    border-radius: 12px;
    margin-top: 4px;
}

/* Skip link */
.visitor-skip {
    margin-bottom: 16px;
    position: relative;
}

.visitor-skip a {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.visitor-skip a:hover {
    color: var(--gold-dark);
}

/* Trust badge */
.visitor-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--text-muted);
    padding-top: 14px;
    border-top: 1px solid rgba(201, 168, 76, 0.1);
    position: relative;
}

.visitor-trust i {
    color: var(--gold);
    font-size: 0.7rem;
}

/* ===== SUCCESS STATE ===== */
.visitor-success {
    text-align: center;
    padding: 20px 0;
    animation: vSuccessFade 0.5s ease forwards;
}

.visitor-success .vs-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #22C55E, #16A34A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3);
    animation: vsBounce 0.6s 0.2s ease forwards;
    transform: scale(0);
}

@keyframes vsBounce {
    0% { transform: scale(0) rotate(-45deg); }
    60% { transform: scale(1.15) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes vSuccessFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.visitor-success h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.visitor-success p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .visitor-content {
        padding: 30px 22px 22px;
        border-radius: 18px;
    }

    .visitor-content h2 {
        font-size: 1.35rem;
    }

    .visitor-content > p {
        font-size: 0.82rem;
    }

    .vtd-icon {
        width: 58px;
        height: 58px;
        font-size: 1.3rem;
    }

    .vf-group input {
        padding: 11px 12px;
        font-size: 0.85rem;
    }

    .vf-icon {
        width: 40px;
        height: 40px;
    }
}