/* ==========================================================================
   팝업 & 모달 스타일 (신규 플로우)
   ========================================================================== */

/* 모달 오버레이 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

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

/* 모달 컨텐츠 */
.modal-content {
    background: #141414;
    border: 2px solid #FFD700;
    border-radius: 15px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease-out;
}

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

.modal-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 10px;
    text-align: center;
}

.modal-subtitle {
    font-size: 16px;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #FFD700;
}

/* 인증 옵션 버튼 */
.auth-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.auth-option-btn {
    background: #222222;
    border: 2px solid #333333;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    position: relative;
}

.auth-option-btn:hover {
    border-color: #FFD700;
    background: #252525;
    transform: translateY(-2px);
}

.auth-option-btn i {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 10px;
    display: block;
}

.auth-option-btn strong {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    display: block;
    margin-bottom: 5px;
}

.auth-option-btn p {
    font-size: 14px;
    color: #999;
    margin: 0;
}

.badge-success {
    display: inline-block;
    background: #39FF14;
    color: #000;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 10px;
}

.badge-warning {
    display: inline-block;
    background: #ff9800;
    color: #000;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 10px;
}

.modal-note {
    font-size: 14px;
    color: #ff9800;
    text-align: center;
    margin-top: 20px;
    padding: 12px;
    background: rgba(255, 152, 0, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

/* 파일 업로드 영역 */
.upload-guide {
    background: #222222;
    border-left: 3px solid #FFD700;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.upload-guide p {
    font-size: 14px;
    color: #FFFFFF;
    margin: 5px 0;
}

.file-upload-area {
    border: 2px dashed #FFD700;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 20px;
    background: rgba(255, 215, 0, 0.03);
}

.btn-upload {
    background: #FFD700;
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-upload:hover {
    background: #FFE55C;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.btn-upload i {
    margin-right: 8px;
}

.file-note {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}

/* 파일 목록 */
.file-list {
    margin: 20px 0;
}

.file-item {
    background: #222222;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-item-info i {
    color: #FFD700;
    font-size: 18px;
}

.file-item-name {
    font-size: 14px;
    color: #FFFFFF;
    font-weight: 500;
}

.file-item-size {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
}

.file-item-remove {
    background: none;
    border: none;
    color: #ff4444;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s;
}

.file-item-remove:hover {
    color: #ff6666;
}

/* 일반 참가 안내 */
.general-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.info-item {
    background: #222222;
    border-left: 3px solid #FFD700;
    padding: 20px;
    border-radius: 8px;
}

.info-item i {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 10px;
    display: block;
}

.info-item strong {
    font-size: 16px;
    color: #FFFFFF;
    display: block;
    margin-bottom: 5px;
}

.info-item p {
    font-size: 14px;
    color: #999;
    margin: 0;
}

/* 모달 액션 버튼 */
.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: #FFD700;
    color: #000;
}

.btn-primary:hover:not(:disabled) {
    background: #FFE55C;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.btn-primary:disabled {
    background: #333333;
    color: #666;
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid #333333;
}

.btn-secondary:hover {
    border-color: #FFD700;
    color: #FFD700;
}

/* 일반 참가 옵션 스타일 */
.general-option {
    border: 2px dashed #444 !important;
}

.general-option:hover {
    border-color: #666 !important;
}

.general-option input:checked + .criteria-item-content {
    border-color: #666 !important;
}

/* 연락처 입력 폼 스타일 */
.contact-form {
    margin: 20px 0;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.popup-input {
    width: 100%;
    padding: 12px 16px;
    background: #222222;
    border: 2px solid #333333;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 15px;
    transition: border-color 0.3s;
}

.popup-input:focus {
    outline: none;
    border-color: #FFD700;
    background: #252525;
}

.popup-input::placeholder {
    color: #666;
}

.contact-form .form-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.contact-form .form-divider::before,
.contact-form .form-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #333;
}

.contact-form .form-divider span {
    padding: 0 15px;
    color: #666;
    font-size: 13px;
}

.contact-form .checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.contact-form .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.contact-form .checkbox-label span {
    font-size: 14px;
    color: #FFFFFF;
}

/* 버튼 액션 영역 */
.form-actions {
    margin-top: var(--spacing-2xl, 48px);
}

/* 버튼 스타일 개선 */
.btn-invitation {
    background: linear-gradient(135deg, #FFD700 0%, #FFE55C 100%);
    color: #000;
    font-size: 18px;
    padding: 18px 30px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-invitation:hover {
    background: linear-gradient(135deg, #FFE55C 0%, #FFD700 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

.btn-general {
    background: transparent;
    border: 2px solid #666;
    color: #FFFFFF;
    font-size: 16px;
    padding: 16px 30px;
    font-weight: 700;
    margin-top: 0;
}

.btn-general:hover {
    border-color: #999;
    background: rgba(153, 153, 153, 0.1);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.divider-or {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
}

.divider-or::before,
.divider-or::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #333;
}

.divider-or span {
    padding: 0 20px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.general-note {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

/* 반응형 */
@media (max-width: 768px) {
    .modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .modal-content h2 {
        font-size: 24px;
    }
    
    .modal-subtitle {
        font-size: 14px;
    }
    
    .auth-option-btn {
        padding: 15px;
    }
    
    .auth-option-btn strong {
        font-size: 16px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .general-info {
        gap: 15px;
    }
    
    .btn-invitation {
        font-size: 16px;
        padding: 16px 25px;
    }
    
    .btn-general {
        font-size: 14px;
        padding: 14px 25px;
    }
}
