/* 섹션 전환 이벤트 모달 - 모던하고 트렌디한 디자인 */
.section-event-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    animation: modalFadeIn 0.5s ease-out;
}

.section-event-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(20px);
    }
}

.event-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.event-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    max-width: 520px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 1;
    animation: modalSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(80px) scale(0.85);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

.event-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: #666;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    font-weight: 300;
}

.event-modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: scale(1.05);
    border-radius: 50%;
}

/* 선물 상자 컨테이너 */
.gift-box-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0 30px 0;
    position: relative;
}

/* 선물 상자 */
.gift-box {
    width: 120px;
    height: 120px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gift-box:hover {
    transform: scale(1.05);
}

.gift-box.opening .gift-lid {
    animation: lidOpen 0.8s ease-out forwards;
}

.gift-box.opening .gift-sparkles {
    animation: sparklesShow 0.8s ease-out forwards;
}

/* 선물 상자 뚜껑 */
.gift-lid {
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 30px;
    background: linear-gradient(135deg, #8e44ad 0%, #3498db 100%);
    border-radius: 8px 8px 0 0;
    z-index: 2;
    transform-origin: bottom center;
    box-shadow: 0 -2px 8px rgba(142, 68, 173, 0.3);
}

@keyframes lidOpen {
    0% {
        transform: rotateX(0deg) translateY(0);
    }
    50% {
        transform: rotateX(-120deg) translateY(-30px);
    }
    100% {
        transform: rotateX(-140deg) translateY(-40px);
    }
}

/* 리본 */
.gift-bow {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 22px;
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    border-radius: 50% 50% 0 0;
    box-shadow: 0 2px 6px rgba(243, 156, 18, 0.4);
}

.gift-bow::before,
.gift-bow::after {
    content: '';
    position: absolute;
    top: 11px;
    width: 22px;
    height: 16px;
    background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(243, 156, 18, 0.3);
}

.gift-bow::before {
    left: -20px;
}

.gift-bow::after {
    right: -20px;
}

/* 선물 상자 몸통 */
.gift-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: linear-gradient(135deg, #8e44ad 0%, #3498db 100%);
    border-radius: 0 0 8px 8px;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(142, 68, 173, 0.3);
}

.gift-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 100%;
    background: linear-gradient(180deg, #f39c12 0%, #e67e22 100%);
}

.gift-body::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 14px;
    background: linear-gradient(90deg, #f39c12 0%, #e67e22 50%, #f39c12 100%);
}

/* 반짝임 효과 */
.gift-sparkles {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

@keyframes sparklesShow {
    0% {
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #f1c40f 0%, #f39c12 100%);
    border-radius: 50%;
    animation: sparkleFloat 1.5s ease-out infinite;
    box-shadow: 0 0 8px rgba(243, 156, 18, 0.8);
}

.sparkle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.sparkle:nth-child(2) {
    top: 15%;
    right: 25%;
    animation-delay: 0.2s;
}

.sparkle:nth-child(3) {
    top: 30%;
    left: 50%;
    animation-delay: 0.4s;
}

.sparkle:nth-child(4) {
    top: 25%;
    right: 15%;
    animation-delay: 0.6s;
}

.sparkle:nth-child(5) {
    top: 40%;
    left: 30%;
    animation-delay: 0.8s;
}

@keyframes sparkleFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-80px) scale(0);
        opacity: 0;
    }
}

/* 이벤트 내용 */
.event-content {
    text-align: center;
    padding: 56px 40px 40px;
    overflow-y: auto;
    flex: 1;
    background: #ffffff;
}

/* 이벤트 메인 메시지 */
.event-main-message {
    margin-bottom: 40px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

/* 이벤트 상단 뱃지 */
.event-badge-top {
    margin-bottom: 20px;
}

.badge-special {
    display: inline-block;
    padding: 8px 20px;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    letter-spacing: -0.2px;
}

.event-intro {
    font-size: 13px;
    color: #999;
    margin-bottom: 16px;
    font-weight: 400;
    letter-spacing: 0;
}

.event-highlight-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 32px;
    letter-spacing: -1px;
    line-height: 1.4;
}

.event-gift-amount {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.amount-number {
    font-size: 64px;
    font-weight: 800;
    color: #004e50;
    line-height: 1;
    letter-spacing: -3px;
}

.amount-text {
    font-size: 24px;
    font-weight: 600;
    color: #004e50;
}

/* 무조건 증정 뱃지 */
.event-guarantee {
    margin-bottom: 20px;
}

.guarantee-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #004e50;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.3px;
}

.guarantee-badge::before {
    content: '✓';
    font-size: 18px;
    font-weight: 700;
}

.event-note {
    font-size: 12px;
    color: #aaa;
    margin-top: 20px;
    line-height: 1.7;
}

/* 구분선 */
.event-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 40px 0;
    position: relative;
}

/* 이벤트 폼 */
.event-form {
    background: #ffffff;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.event-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.event-form-group {
    margin-bottom: 16px;
}

.event-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #004e50;
    margin-bottom: 8px;
    text-align: left;
}

.event-form-group input,
.event-form-group select,
.event-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
    background: #ffffff;
}

.event-form-group input:focus,
.event-form-group select:focus,
.event-form-group textarea:focus {
    outline: none;
    border-color: #004e50;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(26, 92, 58, 0.06);
}

.event-form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.event-submit-btn {
    width: 100%;
    padding: 18px 32px;
    background: #004e50;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.5px;
}

.event-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.event-submit-btn:hover {
    background: #155030;
    transform: translateY(-1px);
}

.event-submit-btn:hover::before {
    opacity: 1;
}

.event-submit-btn:active {
    transform: translateY(0);
}

.submit-icon {
    font-size: 18px;
}

.submit-text {
    letter-spacing: -0.3px;
    font-size: 16px;
    font-weight: 700;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .event-modal-content {
        max-height: 95vh;
    }
    
    .event-content {
        padding: 30px 20px;
    }
    
    .gift-box-container {
        padding: 30px 0 20px 0;
    }
    
    .gift-box {
        width: 100px;
        height: 100px;
    }
    
    .event-title {
        font-size: 24px;
    }
    
    .event-description {
        font-size: 15px;
    }
    
    .event-highlight {
        font-size: 20px;
    }
    
    .event-form {
        padding: 24px 20px;
    }
    
    .event-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .event-modal-content {
        padding: 16px;
        border-radius: 16px;
        max-height: 88vh;
    }
    
    .event-modal-close {
        width: 32px;
        height: 32px;
        font-size: 18px;
        top: 12px;
        right: 12px;
    }
    
    .event-content {
        padding: 40px 16px 20px;
    }
    
    .gift-box-container {
        padding: 10px 0 10px 0;
    }
    
    .gift-box {
        width: 60px;
        height: 60px;
    }
    
    .gift-lid {
        height: 18px;
    }
    
    .gift-body {
        height: 42px;
    }
    
    .event-badge-top {
        margin-bottom: 12px;
    }
    
    .badge-special {
        padding: 6px 14px;
        font-size: 11px;
    }
    
    .event-intro {
        font-size: 11px;
        margin-bottom: 10px;
    }
    
    .event-highlight-title {
        font-size: 18px;
        margin-bottom: 16px;
        line-height: 1.3;
    }
    
    .event-gift-amount {
        margin-bottom: 10px;
        gap: 4px;
        justify-content: center;
    }
    
    .amount-number {
        font-size: 32px;
        letter-spacing: -1.5px;
    }
    
    .amount-text {
        font-size: 14px;
    }
    
    .event-guarantee {
        margin-bottom: 12px;
    }
    
    .guarantee-badge {
        padding: 8px 18px;
        font-size: 12px;
        gap: 6px;
    }
    
    .guarantee-badge::before {
        font-size: 14px;
    }
    
    .event-note {
        font-size: 10px;
        margin-top: 12px;
        line-height: 1.5;
    }
    
    .event-divider {
        margin: 20px 0;
    }
    
    .event-form {
        padding: 0;
    }
    
    .event-form-row {
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .event-form-group {
        margin-bottom: 10px;
    }
    
    .event-form-group label {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .event-form-group input,
    .event-form-group textarea {
        padding: 10px 12px;
        font-size: 13px;
        border-radius: 8px;
    }
    
    .event-form-group textarea {
        min-height: 60px;
    }
    
    .event-submit-btn {
        font-size: 14px;
        padding: 12px 20px;
    }
    
    .submit-icon {
        font-size: 16px;
    }
    
    .submit-text {
        font-size: 14px;
    }
}

