/* 訊息區塊 */
.message {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05em;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.message-icon {
    font-size: 1.3em;
    font-weight: bold;
}

/* 回饋卡片 */
.feedback-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border: 2px solid #f0f0f0;
}

/* 表單群組 */
.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.05em;
}

.required {
    color: #e74c3c;
    font-weight: 700;
}

.optional {
    color: #7f8c8d;
    font-size: 0.9em;
    font-weight: 400;
}

/* 選擇框 */
.form-select {
    width: 100%;
    padding: 14px 18px;
    font-size: 1em;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    color: #2c3e50;
    font-family: 'Microsoft JhengHei', 'PingFang TC', sans-serif;
    transition: all 0.3s ease;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    padding-right: 45px;
}

.form-select:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.form-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* 文字輸入框 */
.form-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 1em;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Microsoft JhengHei', 'PingFang TC', sans-serif;
    transition: all 0.3s ease;
}

.form-input:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* 文字區域 */
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 1em;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Microsoft JhengHei', 'PingFang TC', sans-serif;
    resize: vertical;
    min-height: 150px;
    transition: all 0.3s ease;
    line-height: 1.6;
}

.form-textarea:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* 字數計數器 */
.char-counter {
    text-align: right;
    margin-top: 8px;
    font-size: 0.9em;
    color: #7f8c8d;
}

#char_count {
    font-weight: 600;
    color: #667eea;
}

/* 提交按鈕 */
.submit-button {
    width: 100%;
    padding: 16px 32px;
    font-size: 1.1em;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Microsoft JhengHei', 'PingFang TC', sans-serif;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    margin-top: 10px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.submit-button:active {
    transform: translateY(0);
}