/* 메인 컨테이너 */
.participation-create-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* 타이틀 섹션 */
.participation-create-title {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eaeaea;
}

.participation-create-title h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.participation-create-title p {
    color: #666;
    font-size: 1rem;
}

/* 폼 토글 버튼 */
.form-toggle {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.toggle-btn {
    padding: 0.625rem 1.25rem;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #666;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.toggle-btn:hover {
    background: #f8f9fa;
}

.toggle-btn.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* 폼 스타일링 */
.participation-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4a5568;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

/* 파일 업로드 스타일링 */
.form-group input[type="file"] {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.form-group input[type="file"] + label {
    width: 100%;
    padding: 1.5rem;
    background: #f8fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.form-group input[type="file"] + label:hover {
    border-color: #3182ce;
    background: #ebf8ff;
}

.form-group input[type="file"] + label::before {
    content: '📎';
    font-size: 1.5rem;
}

.form-group input[type="file"] + label::after {
    content: attr(data-label);
    font-size: 0.9rem;
    color: #4a5568;
}

/* 선택된 파일명 표시 */
.selected-file {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #4a5568;
    text-align: center;
}

/* 드래그 앤 드롭 관련 스타일 */
.form-group input[type="file"] + label.drag-active {
    border-color: #3182ce;
    background: #ebf8ff;
    transform: scale(1.01);
}

.form-group input[type="file"] + label.drag-error {
    border-color: #e53e3e;
    background: #fff5f5;
}

/* 애니메이션 효과 */
.form-group input[type="file"] + label {
    transform: scale(1);
    transition: all 0.2s ease;
}

/* 드래그 중인 상태 표시 */
.form-group input[type="file"] + label.drag-active::after {
    content: '파일을 여기에 놓으세요';
    color: #3182ce;
}

/* 에러 상태 */
.form-group input[type="file"] + label.drag-error {
    animation: shake 0.5s linear;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* 샘플 다운로드 버튼 */
.sample-download {
    margin: 2rem 0;
    text-align: center;
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.secondary-btn::before {
    content: '📥';
    font-size: 1.1rem;
}

/* 안내 메시지 */
.form-info {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.6;
}

.form-info p {
    margin: 0.5rem 0;
}

/* 폼 액션 버튼 */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-end;
}

.cancel-button {
    padding: 0.75rem 2rem;
    background: #e2e8f0;
    color: #4a5568;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.cancel-button:hover {
    background: #cbd5e0;
}

/* 도움말 텍스트 */
.form-text {
    color: #718096;
}

.form-text p {
    font-size: 13px;
    margin-top: 5px;
}

/* 반응형 디자인 수정 */
@media (max-width: 640px) {
    .participation-create-container {
        margin: 1rem auto;
        padding: 0;
    }
    
    .participation-create-title {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }
    
    .participation-create-title h1 {
        font-size: 1.25rem;
        margin-bottom: 0.2rem;
    }
    
    .participation-create-title p {
        font-size: 0.9rem;
    }
    
    .form-toggle {
        margin-bottom: 1rem;
        gap: 0.5rem;
    }
    
    .toggle-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .participation-form {
        padding: 1.25rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .submit-button,
    .cancel-button {
        width: 100%;
        text-align: center;
    }
    .form-group input[type="file"] + label {
        padding: 1rem;
    }

    .form-group input[type="file"] + label::after {
        font-size: 0.85rem;
        text-align: center;
    }

    .secondary-btn {
        width: 100%;
        justify-content: center;
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 500px) {
    .form-info {
        font-size: 13px;
    }
}

/* 앱솔루트 체크박스 스타일링 */
.absolute-field {
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--bg-heavy-light);
    transition: all 0.2s ease;
}

/* 기본 폼 스타일 */
.partner-section, .single-section {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.partner-section label, .single-section label {
    display: block;
    margin-bottom: 0.5rem;
}

.search-wrapper {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

@media (max-width: 640px) {
    .search-wrapper {
        flex-direction: column;
    }
}

.partner-search-help, .single-search-help {
    font-size: 0.875rem;
    color: #696969;
    margin-bottom: 1rem;
}

.partner-search-input, .single-search-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

@media (max-width: 640px) {
    .partner-search-input, .single-search-input {
        width: 100%;
        font-size: 0.75rem;
        padding: 0.5rem;
    }
}

#search-partner, #search-single {
    padding: 0.75rem 1.5rem;
    background: #e2e8f0;  /* 밝은 회색 배경으로 변경 */
    color: #4a5568;  /* 어두운 회색 텍스트로 변경 */
    border: 1px solid #cbd5e0;  /* 테두리 추가 */
    border-radius: 0.375rem;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.9rem;  /* 폰트 크기 약간 축소 */
    transition: background 0.2s ease;
}

#search-partner:hover, #search-single:hover {
    background: #cbd5e0;  /* 호버 효과 추가 */
}

@media (max-width: 640px) {
    #search-partner, #search-single {
        width: 100%;
        padding: 0.5rem;
    }
}

.submit-button {
    padding: 0.75rem 2rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}

.submit-button:hover {
    background: var(--primary-color);
}

/* 파트너 정보 표시 */
#partner-info, #single-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--bg-heavy-light);
}

.search-message {
    margin-top: 0.5rem;
    padding: 0.5rem;
    color: #e53e3e;
    background: #fff5f5;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* 초상권 동의 섹션 스타일링 */
.consent-section {
    border-radius: 6px;
    background: #f8fafc;
    margin-bottom: 1.5rem;
}

.consent-alert {
    padding: 1rem;
    background: #ebf8ff;
    border: 1px solid #bee3f8;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.consent-alert p {
    color: #2c5282;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.5rem 0;
}

.required-checkbox-wrapper, .absolute-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.absolute-field {
    background-color: var(--bg-light);
}

.required-checkbox-wrapper {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.required-checkbox, .absolute-checkbox {
    flex: 0 0 20px; /* 고정 크기 설정 */
    width: 1.25rem !important;
    height: 1.25rem !important;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    margin: 0;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    padding: 0 !important;
}

.required-label, .absolute-label {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-color) !important;
    cursor: pointer;
    margin: 0 !important;
    padding-top: 2px;
}

.required-checkbox:checked, .absolute-checkbox:checked {
    background-color: #3182ce;
    border-color: #3182ce;
}

.required-mark {
    color: #e53e3e;
    margin-left: 2px;
}

/* 모바일 반응형 스타일 */
@media (max-width: 640px) {    
    .consent-alert {
        padding: 0.75rem;
    }
    
    .consent-alert p {
        font-size: 0.85rem;
    }
    
    .required-checkbox-wrapper {
        padding: 0.5rem;
    }

    .required-checkbox {
        flex: 0 0 20px;
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        min-height: 20px !important;
    }
    
    .required-label {
        font-size: 0.9rem;
    }
}
