/* 이벤트 쿠폰 모달 스타일 */
.event-coupon-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999999999999999999999999999999999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.event-coupon-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 모달 컨텐츠 */
.event-modal-content {
    position: relative;
    background: linear-gradient(135deg, #1a1f3a 0%, #0a0e27 100%);
    border-radius: 30px;
    padding: 50px 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(139, 92, 246, 0.3);
    animation: modalSlideUp 0.5s ease;
}

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

/* 닫기 버튼 */
.event-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000000000000000000000000000000000;
}

.event-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* 축하 효과 */
.congrats-animation {
    text-align: center;
    margin-bottom: 30px;
}

.congrats-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.congrats-title {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.congrats-subtitle {
    font-size: 18px;
    color: #a78bfa;
    margin-bottom: 10px;
    font-weight: 600;
}

.congrats-message {
    font-size: 16px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* 쿠폰 정보 */
.coupon-info {
    background: rgba(139, 92, 246, 0.1);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.coupon-amount {
    font-size: 48px;
    font-weight: 800;
    color: #ffd700;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.coupon-description {
    font-size: 16px;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 20px;
}

.coupon-notice {
    background: rgba(255, 87, 87, 0.1);
    border: 1px solid rgba(255, 87, 87, 0.3);
    border-radius: 12px;
    padding: 15px;
    font-size: 14px;
    color: #ff8787;
    line-height: 1.5;
}

.coupon-notice strong {
    color: #ff5757;
    font-weight: 700;
}

/* 폼메일 섹션 */
.event-form-section {
    margin-top: 30px;
}

.event-form-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
}

.event-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #a78bfa;
}

.event-form-group input,
.event-form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.event-form-group input:focus,
.event-form-group textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.event-form-group textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.event-submit-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
    margin-top: 10px;
}

.event-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.6);
}

.event-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 꽃가루 효과 */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #ffd700;
    position: absolute;
    animation: confettiFall 3s linear infinite;
}

@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* 실패 모달 */
.event-fail-content {
    text-align: center;
}

.fail-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.fail-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
}

.fail-message {
    font-size: 16px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 30px;
}

.fail-retry-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.fail-retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

/* 이벤트 안내 모달 특별 스타일 */
.event-info-modal .congrats-title {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.event-info-modal .coupon-amount {
    color: #a78bfa;
    text-shadow: 0 0 20px rgba(167, 139, 246, 0.5);
}

.event-info-modal .coupon-description {
    font-size: 15px;
    color: #e2e8f0;
    line-height: 1.6;
}

.event-info-modal .coupon-info {
    background: rgba(167, 139, 246, 0.1);
    border: 2px solid rgba(167, 139, 246, 0.3);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .event-coupon-modal {
        z-index: 9999999999999999999999999999999999 !important;
        padding: 15px !important;
    }
    
    .event-modal-content {
        padding: 40px 25px !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
    
    .event-modal-close {
        z-index: 10000000000000000000000000000000000 !important;
        top: 20px !important;
    }
    
    .congrats-icon {
        font-size: 60px;
    }
    
    .congrats-title {
        font-size: 28px;
    }
    
    .congrats-subtitle {
        font-size: 16px;
    }
    
    .congrats-message {
        font-size: 14px;
    }
    
    .coupon-info {
        background: rgba(139, 92, 246, 0.1) !important;
        border: 2px solid rgba(139, 92, 246, 0.3) !important;
        border-radius: 20px !important;
        padding: 20px !important;
        margin-bottom: 30px !important;
        text-align: center !important;
    }
    
    .coupon-amount {
        font-size: 32px !important;
    }
    
    .coupon-description {
        font-size: 13px !important;
    }
    
    .event-form-title {
        font-size: 20px !important;
    }
    
    .fail-retry-btn {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: #ffffff !important;
        border: none !important;
        border-radius: 12px !important;
        padding: 16px 20px !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4) !important;
    }
}

@media (max-width: 480px) {
    .event-modal-content {
        padding: 30px 20px;
    }
    
    .congrats-title {
        font-size: 24px;
    }
    
    .coupon-amount {
        font-size: 32px;
    }
}

