/* 基本重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft JhengHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 頁首樣式 */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.logo {
    height: 40px;
    width: 40px;
}

.camp-title {
    font-size: 2.5rem;
    color: #4a5568;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* 主要內容 */
.main-content {
    padding: 40px 0;
}

/* 營隊介紹區塊 */
.camp-intro {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.camp-poster {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.camp-poster:hover {
    transform: scale(1.02);
}

.camp-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.info-item i {
    color: #667eea;
    font-size: 1.2rem;
    margin-top: 2px;
    min-width: 20px;
}

.info-label {
    font-weight: bold;
    color: #4a5568;
    min-width: 100px;
}

.info-content {
    color: #2d3748;
    flex: 1;
}

/* 報名表單 */
.registration-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.registration-form h2 {
    color: #4a5568;
    margin-bottom: 30px;
    font-size: 2rem;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.form-section {
    margin-bottom: 40px;
}

.form-section h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.5rem;
    padding-left: 10px;
    border-left: 4px solid #667eea;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: bold;
    color: #4a5568;
    font-size: 1rem;
}

.required {
    color: #e53e3e;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold !important;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.radio-label:hover {
    background-color: #f7fafc;
}

.radio-label input[type="radio"] {
    margin: 0;
    width: 20px;
	height: 20px;
}

#otherRelationship {
    margin-top: 10px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

#otherRelationship:not(:disabled) {
    opacity: 1;
}

.error-message {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 5px;
    display: none;
}

/* 學生表單 */
.student-form {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.student-form:hover {
    border-color: #667eea;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.1);
}

.student-form h4 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.student-form h4 i {
    color: #667eea;
}

/* 個資聲明 */
.privacy-agreement {
    background: #f7fafc;
    border-radius: 12px;
    padding: 25px;
    border: 2px solid #e2e8f0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: bold;
    color: #4a5568;
    cursor: pointer;
    margin-bottom: 15px;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    transform: scale(1.2);
}

.privacy-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.privacy-content p {
    margin-bottom: 10px;
    color: #2d3748;
    line-height: 1.6;
}

/* 送出按鈕 */
.form-actions {
    text-align: center;
    margin-top: 40px;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* 主辦單位資訊 */
.organizer-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.organizer-info h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.organizer-info p {
    color: #4a5568;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.organizer-info i {
    color: #667eea;
    width: 16px;
}

/* 頁尾 */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 20px 0;
    backdrop-filter: blur(10px);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .camp-title {
        font-size: 1.8rem;
    }

	.logo {
		height: 30px;
		width: 30px;
	}
    
    .logo-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .camp-intro {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .organizer-info {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 25px;
    }
    
    .registration-form {
        padding: 25px;
    }
    
    .radio-group {
        gap: 8px;
    }
    
    .info-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .info-label {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .camp-title {
        font-size: 1.5rem;
    }
    
    .camp-intro,
    .registration-form,
    .organizer-info {
        padding: 20px;
    }
    
    .form-section h3 {
        font-size: 1.3rem;
    }
    
    .registration-form h2 {
        font-size: 1.6rem;
    }
}

/* 動畫效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.camp-intro,
.registration-form,
.organizer-info {
    animation: fadeInUp 0.6s ease-out;
}

/* 表單驗證樣式 */
.form-group input.error,
.form-group select.error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.form-group input.success,
.form-group select.success {
    border-color: #38a169;
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.1);
}

/* Loading 狀態 */
.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-btn.loading {
    position: relative;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}
